Create a key
- Open API Keys in Mission Control Portal and sign in.
- Select Create API Key.
- Add a descriptive label that identifies the environment and application.
- Under Expiration, select No Expiration or Set Expiration Date.
- Create the key.
- Copy the value immediately.
The key value is displayed onceStore the new value before leaving the creation dialog. If the value is lost, create a replacement key. Do not send the key in email, tickets, or chat.
Store the key
Use a secret manager for deployed applications. For local development, export a protected environment variable:- Keep
.envand local secret files out of Git. - Restrict secret-manager access to required application runtimes and operators.
- Redact
Authorizationheaders from application and proxy logs. - Use separate keys for development, staging, and production.
Validate a key
Rotate a key
For a key with an expiration date, deploy a replacement before the date shown in the Expires column in Mission Control Portal.- Create and store a replacement key.
- Deploy the replacement to every runtime that uses the old key.
- Confirm a read-only authenticated request succeeds from the updated runtime.
- Revoke the old key from API Keys in Mission Control Portal.
- Monitor authentication failures for workloads that still reference the old value.