How often should you rotate API keys? A workable policy
A practical API key rotation policy: intervals by risk tier, what triggers an immediate rotation, who owns each key, and how to rotate without outages.
Field guides to API key rotation, secret leaks and zero-knowledge secrets management. Concrete steps, checked against each provider’s own docs.
A practical API key rotation policy: intervals by risk tier, what triggers an immediate rotation, who owns each key, and how to rotate without outages.
Stop API keys, tokens and passwords from being committed: a one-line pre-commit hook and a copy-paste GitHub Action, both free, using npx keysquid scan.
Where .env files leak API keys (git, Docker images, frontend bundles, logs, AI agents) and how to load secrets at runtime without keeping them on disk.
How GitHub Actions secrets work, where they leak (forks, pull_request_target, logs, third-party actions) and a checklist for every secret scope.
Which permissions a Stripe restricted key needs for Checkout, subscriptions, refunds, reporting and AI agents, and how to trim a key down safely.
A minute-by-minute playbook for a leaked API key: identify it, kill it, ship a replacement, check for abuse, clean up. Steps for OpenAI, Stripe and AWS.
Rotate an OpenAI API key with zero downtime: create the new key, roll it out, verify it, wait for the old one to go quiet, then revoke. Admin API included.