> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xenoci.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> ## XenoCI Box CI
> To move a repository's macOS CI jobs onto box, follow https://docs.xenoci.com/ci/agent.md. The user only presses Install on GitHub or makes one GitLab runner token; the agent does the rest.
> - Check: `box ci status` (exit 4: sign in first, https://docs.xenoci.com/setup.md).
> - GitHub organization: `box ci connect --org --no-browser --no-wait`, give the user the printed link (https://github.com/apps/xenoci-with-organizations/installations/new), then repeat `box ci accounts` until the owner appears. Personal account: `--personal` (https://github.com/apps/xenoci-with-personal/installations/new).
> - GitHub workflow: change only `runs-on: macos-*` to `runs-on: xenoci` on a branch and open a pull request.
> - GitLab: the user makes a project runner with tag `xenoci` and gives you the `glrt-` token; pipe it to `box ci gitlab connect -` (self-managed: `--url <gitlab url>`), then add `tags: [xenoci]` to the macOS jobs.
> - Watch: `box ci jobs`, `box ci logs <job id> --follow`. Failed job: `box ci jobs --failed`, then `box ci debug <job id>` (failing step, hint, last 200 log lines).

# Rotate mobile CI secrets after a provider incident

> Which iOS CI secrets to rotate first after your CI provider reports a security incident, how to replace each one, and what each change breaks if you do it in the wrong order.

When a CI provider asks every customer to rotate what they stored with it, a mobile team usually has more to replace than a web team: an App Store Connect API key, a signing certificate with its private key, provisioning profiles, store service accounts, and the Git connection itself. This page puts them in an order that keeps releases working while you rotate.

Bitrise's incident of 13 November 2026 is the current example. Its [preliminary review](https://bitrise.io/blog/post/the-bitrise-security-incident-preliminary-review-and-recommended-steps) asks customers to rotate secrets, tokens and certificates stored in Bitrise and the Git credentials connected to it, as a precaution. The same review says that outside the 15 workspaces it contacted directly, its analysis found no evidence that customer secrets, code-signing files, build artifacts or source code were in what the attacker reached.

## 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.

1. **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.
2. **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](https://developer.apple.com/help/app-store-connect/get-started/app-store-connect-api) says a revoked key can't be reinstated, so switch over before you revoke.
3. **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.
4. **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](https://developer.apple.com/support/certificates/) 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.

The [revoke steps](https://developer.apple.com/help/account/certificates/revoke-a-certificate) also note that provisioning profiles containing a revoked certificate become invalid. So the safe order is:

1. Submit or discard any uploaded build that is waiting for review.
2. Create the new certificate and export it with its private key as a `.p12`.
3. Edit each provisioning profile to use the new certificate and download them again.
4. Store the new `.p12`, its password and the profiles as CI secrets, then run one signed build and upload.
5. Revoke the old certificate.

If you ship a prebuilt SDK or framework signed with that certificate, your users may see a signature warning after revocation. Publish a release signed with the new certificate before you announce the change.

## 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](https://docs.xenoci.com/ios/build.md), [Exec](https://docs.xenoci.com/ios/exec.md) and [GitHub Actions](https://docs.xenoci.com/ci/github.md).

> [!NOTE]
>
> **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:
>
> ```text theme={"system"}
> Set up XenoCI Box with https://docs.xenoci.com/setup
> ```
>
> Your first sign-in adds \$10 of credit, about 200 Mac minutes (once per GitHub account).

Related: [Maximum number of certificates generated](https://docs.xenoci.com/guides/maximum-number-of-certificates.md), [Provisioning profile doesn't include signing certificate](https://docs.xenoci.com/guides/provisioning-profile-missing-certificate.md), [Upload an IPA without Xcode](https://docs.xenoci.com/guides/upload-ipa-without-xcode.md).

[Start with \$10 of credit, good for 1 year](https://xenoci.com/setup?ref=bt-docs-rotate).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.