# API key rotation

> Replace a key without breaking the apps that use it.

- Canonical: https://starkslab.com/learn/api-key-rotation
- Notes: 5 · Updated: 2026-11-18

## Read in this order

1. [API Key Rotation After the Railway Incident: My Apps Still Had the Old Keys](https://starkslab.com/notes/api-key-rotation-railway-security-incident-recovery.md): On 21 October 2026, app-hosting platform Railway disclosed a security incident and advised users to replace credentials. I did—but parts of my web application and background jobs still had the old keys. Here is what I changed to get those replacements into the software that needed them. (Guide; tested; 2026-10-28)
2. [API Key Inventory: Who Uses This Key Before You Revoke It?](https://starkslab.com/notes/api-key-inventory-map-consumers-before-revocation.md): A practical non-secret consumer map for deciding which applications may break when an API key is revoked and how each consumer would adopt a replacement. Includes a fictional web/worker/job example, evidence confidence labels and explicit limits. (Guide; documented; 2026-11-18)
3. [How to Rotate API Keys: A Checklist for Application Recovery](https://starkslab.com/notes/rotate-api-keys-checklist.md): To rotate an application's API key, you need to update every program that uses it and check the results. This checklist includes a non-secret tracking register, a routine rotation sequence and a separate path for urgent exposure. (Checklist; tested; 2026-10-29)
4. [After Credential Rotation: Load Infisical Secrets at Startup](https://starkslab.com/notes/credential-rotation-infisical-worker-startup.md): Replacing a credential does not update an already running worker. This walkthrough explains how an Infisical startup script can deliver selected secrets, shows a runnable offline exercise, and identifies the host and identity permissions it still trusts. (Guide; tested; 2026-11-03)
5. [Infisical Secrets Management Explained: Agent Vault, Certificates, Keys and Access](https://starkslab.com/notes/infisical-secrets-management-platform-guide.md): Infisical raised $40M at a $600M valuation. This extended guide explains what its platform offers, how secret delivery differs from Agent Vault brokering, what pricing and self-hosting involve, and what a technical operator still needs to verify. (Explainer; documented; 2026-10-28)

## Tools in these notes

- [Infisical](https://starkslab.com/tools/infisical.md)
- [Railway](https://starkslab.com/tools/railway.md)

---

Starkslab index for agents: https://starkslab.com/llms.txt lists every page with its Markdown link.
