Strait supports API key rotation with grace periods.Documentation Index
Fetch the complete documentation index at: https://docs.strait.dev/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
POST /v1/api-keys/{keyID}/rotate
CLI parity is supported via
strait api-keys rotate --grace-period-minutes <n> which uses the same API rotation endpoint.Request
Behavior
- New key is created and returned once.
- Previous key is marked with:
replaced_by_key_idgrace_expires_at
- Old key remains temporarily valid until grace expires.
- After grace expiry, old key authentication fails.
Recommended Rotation Flow
- Rotate key with a grace window.
- Roll out new key to all clients.
- Verify traffic uses the new key.
- Let grace expire (or revoke old key explicitly).
Security Notes
- Store only the returned raw key in your secret manager.
- Never log raw keys.
- Keep grace windows short.