# Secrets management

> Where secrets live, who can read them, and how they reach running apps.

- Canonical: https://starkslab.com/learn/secrets-management
- Notes: 7 · Updated: 2026-11-24

## Read in this order

1. [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)
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. [Claude Code Sandbox: Can It Still Read Your Secrets?](https://starkslab.com/notes/claude-code-sandbox-secrets-access-boundaries.md): The Claude Code sandbox covers shell commands; the Read tool, inherited variables, hooks and MCP follow other controls. Tested on Claude Code 2.1.318 with dummy canaries: what denyRead, Read deny rules and credential entries actually blocked. (Guide; tested; 2026-11-15)
4. [Claude Code Headless Authentication on a VPS: Codex and Hosting Access](https://starkslab.com/notes/claude-code-headless-authentication-codex-vps.md): Choose a supported login for a coding agent on a browserless Linux server, keep model access separate from Vercel and Railway access, find where each CLI keeps credentials, and release with a script whose evidence a credential-free agent can review. Includes real captures of the Claude Code, Codex, Railway and Vercel CLIs on fresh headless runners. (Guide; tested; 2026-11-07)
5. [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)
6. [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)
7. [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)

## Tools in these notes

- [Claude Code](https://starkslab.com/tools/claude-code.md)
- [Codex](https://starkslab.com/tools/codex.md)
- [Infisical](https://starkslab.com/tools/infisical.md)
- [Railway](https://starkslab.com/tools/railway.md)
- [Vercel](https://starkslab.com/tools/vercel.md)

---

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