Rotate API key
Guide — rotate a LayerLens API key without downtime.
Replace a key by creating a new one before you remove the old one.
Steps
Admin → API Keys → Create New API Key.
Copy the new key value.
Update the new value in your secret store / env vars / CI secrets.
Once every consumer uses the new key, disable the old key from its row in Admin → API Keys.
When nothing breaks, delete the old key.
When to rotate
Compromise suspected
Quarterly hygiene
Departing team member had access
Switching CI runners
After rotation
Verify the new key works in a non-production runner first
See also
Last updated
Was this helpful?