Skip to content

Category

Cybersecurity

Published posts in this category.

API key rotation without downtime in four steps: store a SHA-256 hash and a prefix, keep the old and new key valid during an overlap, wait until last_used_at shows the old key is unused, then set revoked_at so the old key gets 401

10/25/2026

API Key Rotation: How to Rotate Keys Without Downtime

A leaked GPS gateway key had to be rotated the same day without blanking our fleet map. Here is the overlap-and-revoke process we used, with PostgreSQL, Node and Laravel lab output for inbound and outbound keys.

By Muhammad Wilayat Shah

Read

Page 1 of 1