Guides
Security best practices
A key acts as the agency owner. Treat it like a password.
- Server only. Never ship a key in a browser, mobile app or any client you do not control.
- Secret store. Keep keys in a secrets manager or environment variables of your server, not in source code, tickets or chat.
- One key per system. Name keys after the system that uses them, so you can revoke one without breaking the others.
- Set an expiry. Prefer 30 or 90 days and rotate before it ends.
- Rotate. Create the new key, deploy it, check that it works, then revoke the old one.
- Revoke on doubt. Revoke at once if a key may have leaked. Revocation is immediate.
- Keep keys out of logs and URLs. Never send a key as a query parameter. Mask the
X-API-Keyheader in your logging.
Secret scanning
Every key starts with fnv_live_. Add this prefix to the custom patterns of your secret scanner
(for example in your repository host or CI) so leaked keys are caught.
Last modified on