Store keys safely
- Keep keys in a server-side secret manager.
- Never commit keys to source control.
- Never expose keys through
NEXT_PUBLIC_or another browser-visible variable. - Never write the full
Authorizationheader to logs.
Rotate a key
- Create a replacement key in the same environment.
- Add it to your deployment secret manager.
- Deploy and verify a test request.
- Revoke the old key in Dashboard > API keys.