Skip to content

fix(pm-stack): sign.sh reads the keystore password once - #12422

Merged
dezren39 merged 1 commit into
mainfrom
claude/pm-console-sign-fix
Nov 22, 2026
Merged

dezren39 merged 1 commit into
mainfrom
claude/pm-console-sign-fix

Conversation

@dezren39

@dezren39 dezren39 commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

What

pm-stack/console/android/sign.sh named the keystore password file for both --ks-pass and --key-pass. apksigner reads one line of a password file per use, so the second read hit end of file and the first real signing run failed:

Failed to read Key "pmconsole" password for signer #1 : end of file reached in .../keystore-password

The script now passes the file once. With no --key-pass, apksigner uses the keystore password for the key, which is how a PKCS#12 keystore is protected.

Evidence

Workflow run 44988192986 built the unsigned APK from main. The script as merged in #12412 failed on it on the host with the error above. The signed result from this version is recorded on this PR after the merge, since the host runs the script from its checkout of main.

Undo

Revert this PR.

Refs #12412.


Generated by Claude Code


Get evidence
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

apksigner takes one line from a password file each time the file is
named. Passing the same file for --ks-pass and --key-pass made the
second read hit end of file, so the first real signing run failed
("Failed to read Key password ... end of file reached"). The key in a
PKCS#12 keystore uses the keystore password, which is apksigner's
default when --key-pass is absent.

Found by running it: workflow run 44988192986 built the unsigned APK,
and this script failed on it on the host.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF
@dezren39
dezren39 requested a review from a team as a code owner November 22, 2026 05:42
@dezren39
dezren39 merged commit 34adb52 into main Nov 22, 2026
@dezren39
dezren39 deleted the claude/pm-console-sign-fix branch November 22, 2026 05:42
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 51 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8dac21eb-16fe-451f-a33e-3fbb3798eb9d
Commits

Reviewing files that changed from the base of the PR and between b032840 and 64502d7.

Files selected for processing: 1

  • pm-stack/console/android/sign.sh
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T05:43:21.039920Z 64502d7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copy link
Copy Markdown
Member Author

Result after the merge, on the host, with the script from main at 34adb52c84:

sign.sh: /tmp/pm-apk/pm-console.apk signed by 8B:82:C4:70:18:15:C1:5C:92:C3:51:1D:2F:32:51:B3:FC:27:3D:F2:1D:1E:44:2C:F0:CF:41:74:78:35:FC:12

That is the certificate in signing-fingerprint.txt and in the live https://pm.security.cab/.well-known/assetlinks.json. The signed file (424,996 bytes, sha256 624fa12f…d49e15) carries an APK signing block and is the build the console now serves to the owner (#12423). It has not been run on a phone.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants