For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

  1. Admin → API Keys → Create New API Key.

  2. Copy the new key value.

  3. Update the new value in your secret store / env vars / CI secrets.

  4. Once every consumer uses the new key, disable the old key from its row in Admin → API Keys.

  5. 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?