guideDifficulty: beginnerTime: 20mVersion: v1Services: authSDK: lawie-cliReviewed: 2025-01-21Reviewer: Docs PlatformTags: security, keys
Rotate API Keys Safely
Rotate Lawie API keys without downtime.
Overview
Use overlapping keys and staged rollout to prevent downtime.
Prerequisites
- Admin access to Lawie Admin
- Secrets manager for storing keys
Architecture Diagram
Keys rotate in Lawie Admin and propagate through your secret manager.
Steps
- Create a new API key in Lawie Admin.
- Deploy the new key alongside the old key.
- Remove the old key after confirming traffic.
API Calls Referenced
POST /auth/keysDELETE /auth/keys/{id}
Troubleshooting
401→ Update services to use the new key.