Part 10 / Topic 5 of 6
Secrets management
Where the API token actually lives, in descending order of preference: the customer's secret manager (Vault, AWS Secrets Manager, Azure Key Vault — fetched at startup or injected by the platform), platform-injected environment variables (fine for a pilot), and never: images, git, logs, tickets, chat. Two habits complete the story — rotation (secrets change; your service re-reads at restart and nothing hard-codes them) and scoping (the pilot's token should reach the pilot's data, nothing else; least privilege again).
🧪 Quick quiz
- Which of these is a secret: the log level, the API base URL, the API token, the page size?
Show the answer
The API token. Secrets go in a secret manager or injected environment variables — never in images, repositories or logs.
Done here? The practice set for Part 10 — 4 exercises with solutions — is on the part page.