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

# Runbooks

> Step-by-step procedures for incidents, key rotation and the failures the API is built to survive.

These pages are the procedures a maintainer follows when something goes wrong, or when a key has to change. Each one lists the steps in order, the blast radius, and how to confirm the fix, with the command to run and the result to expect.

| Runbook | Use it when |
| - | - |
| [Incident response](https://docs.lumenwipe.com/runbooks/incident-response.md) | Anything is wrong: how bad it is, who acts, what to post on GitHub and the status page |
| [Rotate the relay account](https://docs.lumenwipe.com/runbooks/rotate-relay-account.md) | The relay account (mediator) key may be exposed, or a planned rotation is due |
| [Rotate the fee sponsor](https://docs.lumenwipe.com/runbooks/rotate-fee-sponsor.md) | The fee sponsor key may be exposed, or a planned rotation is due |
| [Rotate operator secrets](https://docs.lumenwipe.com/runbooks/rotate-secrets.md) | The admin token, the integrator secret, a static API key or a provider key has to change |
| [Provider outage](https://docs.lumenwipe.com/runbooks/provider-outage.md) | An RPC or Horizon-compatible provider is failing or rate limiting |
| [Provider quotas](https://docs.lumenwipe.com/runbooks/provider-quotas.md) | An upstream passed 70 percent of its monthly request budget, or a provider is added |
| [Firestore outage](https://docs.lumenwipe.com/runbooks/firestore-outage.md) | Self-serve keys, usage or the merge counter fail |
| [Restore API keys](https://docs.lumenwipe.com/runbooks/restore-api-keys.md) | The API key store is lost or corrupted, or a restore drill is due |
| [Migration check](https://docs.lumenwipe.com/runbooks/restore-api-keys.md#migration-check) | After any project or organization move, or an IAM, policy or service change: required |
| [Bad deploy](https://docs.lumenwipe.com/runbooks/bad-deploy.md) | A revision that reached traffic misbehaves |
| [Drained fee sponsor](https://docs.lumenwipe.com/runbooks/drained-sponsor.md) | The sponsor balance alert fired, or sponsored closes fail |
| [Registry expiry](https://docs.lumenwipe.com/runbooks/registry-expiry.md) | The exchange or contract registry is near or past its `validUntil` date |
| [Close stuck mid-flow](https://docs.lumenwipe.com/runbooks/stuck-close.md) | A user or integrator reports a close that stopped partway |

## Conventions

* Commands run from the repository root with the Google Cloud CLI signed in to the project that hosts the API. `lumenwipe-api` in `us-central1` is the Cloud Run service; the deploy and the kill switches in [RELEASING.md](https://github.com/LumenWipe/lumenwipe/blob/main/RELEASING.md#appsapi) use the same names.
* Values in angle brackets are placeholders. Secret names, account identifiers and where secrets are kept are not written here; they live in the team's internal tooling.
* `$API` is the API's base URL and `$KEY` an API key allowed on the network you test.
* After every configuration change, read the value back. A failed update leaves the previous revision serving with the previous value.
* While traffic is pinned to one revision, a configuration update does not reach users. Check this first, as [RELEASING.md describes](https://github.com/LumenWipe/lumenwipe/blob/main/RELEASING.md#how-a-deploy-moves-traffic):

```bash theme={null}
gcloud run services describe lumenwipe-api --region us-central1 --format='value(status.traffic)'
```

Expected: a single entry with `latestRevision: true` and `percent: 100`.


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