1. List what the provider holds
Before you revoke anything, write down every secret the provider stores and every place that also uses it. On Bitrise, secrets are under Workflow Editor > Secrets and Workspace settings > Shared resources, and the review mentions a masked view that shows the last 4 characters of each value to help you match them. That view doesn’t rotate anything. A list with one row per secret (name, where it came from, who can issue a new one, what else uses it) saves you from revoking something a second pipeline still needs.2. Rotate in this order
Start with what an attacker could use without your involvement, and leave the slow, release-blocking items for last.- Git access. Personal access tokens, deploy keys and app installations that let CI read or write your repositories. A leaked write token can change code before any build runs.
- App Store Connect API key. It can upload builds and change app metadata. Generate a new key first, store it in CI, run one upload, then revoke the old key. Apple’s App Store Connect API page says a revoked key can’t be reinstated, so switch over before you revoke.
- Store and service credentials. Google Play service account keys, Firebase tokens, crash-reporting upload tokens, Slack or chat webhooks. These are quick to reissue and rarely break a release.
- Apple Distribution certificate. Revoke it last and on purpose (see the next section).
3. Replace the Apple Distribution certificate without surprises
Apple’s certificates page spells out what revoking an iOS distribution certificate does:- Apps already on the App Store aren’t affected while your developer membership is valid.
- You can’t upload new builds signed with the revoked certificate.
- Builds already uploaded but not yet submitted for review may be marked Invalid Binary.
- For in-house (enterprise) distribution, apps signed with it stop running, so plan a re-signed release first.
- Submit or discard any uploaded build that is waiting for review.
- Create the new certificate and export it with its private key as a
.p12. - Edit each provisioning profile to use the new certificate and download them again.
- Store the new
.p12, its password and the profiles as CI secrets, then run one signed build and upload. - Revoke the old certificate.
4. Reconnect Git integrations
Providers often revoke their own tokens during an incident, which breaks the connection on your side. Bitrise’s review lists three things to redo if they apply to you:- Authorize the Bitrise GitHub App again if enabling GitHub Checks or linking repositories fails with a 422 error.
- Reconnect your GitHub account in Bitrise if your projects use the OAuth connection instead of the GitHub App.
- Re-add the project’s SSH key if a build can’t clone. GitHub removed the deploy keys that Bitrise had added through OAuth. Keys you added yourself weren’t affected.
5. Check that nothing uses the old values
- Run every pipeline once, including release and nightly jobs that don’t run on each push.
- In App Store Connect, confirm only the new API key shows recent use, then revoke anything left over.
- Search your repositories and other CI systems for the old key IDs, certificate serial numbers and token prefixes.
Where box fits
box doesn’t rotate anything for you, and it doesn’t create Apple certificates or profiles. If you run your jobs on box,box secrets set seals each value with your account key on your own computer before it’s uploaded. The server keeps only bytes it can’t open, and a value is decrypted only by your CLI when it starts a job. After you rotate a value, run box secrets set NAME again with the new one, or box secrets rm NAME to stop sending it to jobs. See Build, Exec and GitHub Actions.
Try it now: paste this line into Claude Code, Codex or Cursor. It installs box, signs you in with GitHub and runs your first build:Your first sign-in adds $10 of credit, about 200 Mac minutes (once per GitHub account).