Skip to content

chore(mobile): load Android upload key from Actions secrets - #14632

Draft
dylanjeffers wants to merge 1 commit into
mainfrom
chore/android-upload-key-from-secrets
Draft

dylanjeffers wants to merge 1 commit into
mainfrom
chore/android-upload-key-from-secrets

Conversation

@dylanjeffers

Copy link
Copy Markdown
Contributor

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 in assetlinks.json doesn'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

  • Removed packages/mobile/android/app/my-upload-key.keystore and the four MYAPP_UPLOAD_* lines from gradle.properties. debug.keystore stays.
  • Both Android jobs (mobile-build-upload-releasecandidate-android, mobile-build-upload-production-android-main) decode the keystore from a secret into $RUNNER_TEMP and pass the alias and passwords to Gradle as ORG_GRADLE_PROJECT_MYAPP_UPLOAD_* env vars. The setup step fails if any secret is missing.
  • build.gradle: release builds without the upload key (local android:release) are signed with the debug key instead of failing.
  • *.keystore is now gitignored in packages/mobile (except debug.keystore).
  • dApp Store README: how to provide the key locally.

Required repo secrets (set before merging)

  • ANDROID_UPLOAD_KEYSTORE_BASE64
  • ANDROID_UPLOAD_KEY_ALIAS
  • ANDROID_UPLOAD_STORE_PASSWORD
  • ANDROID_UPLOAD_KEY_PASSWORD

Merge order

  1. Ship the targetSdk 36 fix and the in-flight Android release on the current key first. chore/mobile-android-sdk-36 also edits the end of gradle.properties, so this PR needs a rebase after it lands.
  2. Request the upload key reset in Play Console and wait for Google's approval email.
  3. Set the four secrets to the new key, then merge.

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

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>
@changeset-bot

changeset-bot Bot commented Oct 6, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ad35f88

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@socket-security

Copy link
Copy Markdown

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.

This branch has not been deployed

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant