Public Documentation

Lawie Docs

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

  1. Create a new API key in Lawie Admin.
  2. Deploy the new key alongside the old key.
  3. Remove the old key after confirming traffic.

API Calls Referenced

  • POST /auth/keys
  • DELETE /auth/keys/{id}

Troubleshooting

  • 401 → Update services to use the new key.