Repository navigation
chore(mobile): load Android upload key from Actions secrets - #14632
dylanjeffers wants to merge 1 commit into
Conversation
The Play upload keystore and its passwords were committed. Remove them and have the Android CI jobs decode the keystore from ANDROID_UPLOAD_KEYSTORE_BASE64 and pass the alias and passwords to Gradle as ORG_GRADLE_PROJECT_MYAPP_UPLOAD_* env vars. Local release builds without the key fall back to the debug key. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
Dependency limit exceeded — report not shown. This pull request scan exceeded the 10,000-dependency limit applied to this scan, so the results are incomplete and may be inaccurate. To avoid reporting false positives, Socket has not posted a report. Upgrade your plan to raise the dependency limit and get complete reports, or view the partial scan in the dashboard. Socket is always free for open source. If this is a non-commercial open source project, contact us to request a free Team account. |
Do not merge until Google has approved the upload key reset and the new key's secrets are set. Merging earlier breaks Android uploads.
Why
The Play upload keystore and its passwords are committed to this public repo. Play App Signing is on for
co.audius.app(CI uploads AABs, and the fingerprint inassetlinks.jsondoesn't match any key in the committed keystore), so this is the upload key and Google can reset it. Deleting the files doesn't remove them from history, so the key is being rotated through Play Console. History is not being rewritten.What changed
packages/mobile/android/app/my-upload-key.keystoreand the fourMYAPP_UPLOAD_*lines fromgradle.properties.debug.keystorestays.mobile-build-upload-releasecandidate-android,mobile-build-upload-production-android-main) decode the keystore from a secret into$RUNNER_TEMPand pass the alias and passwords to Gradle asORG_GRADLE_PROJECT_MYAPP_UPLOAD_*env vars. The setup step fails if any secret is missing.build.gradle: release builds without the upload key (localandroid:release) are signed with the debug key instead of failing.*.keystoreis now gitignored inpackages/mobile(exceptdebug.keystore).Required repo secrets (set before merging)
ANDROID_UPLOAD_KEYSTORE_BASE64ANDROID_UPLOAD_KEY_ALIASANDROID_UPLOAD_STORE_PASSWORDANDROID_UPLOAD_KEY_PASSWORDMerge order
chore/mobile-android-sdk-36also edits the end ofgradle.properties, so this PR needs a rebase after it lands.Solana dApp Store
The dApp Store APK is signed locally with this same key, and its fingerprint is pinned in
dapp-store/config.yaml. There's no Google layer there, so for that channel this is the app signing key and a Play reset doesn't cover it. Rotating it needs APK signature v3 key rotation (or keeping the old key for that channel only). That's tracked separately and isn't part of this PR.Testing
Not run end to end. The Android jobs only run on
main, so the first real check is the next Android build after merge.🤖 Generated with Claude Code