Allow up to 2 API Keys per account - or an overlap during regenerate/replacement
Currently API Key rotation means a period of time where the old key is revoked and the new key is not yet added to systems which require it.
Option 1: Have up to 2 keys per account with both functioning at all times. Rotation is then a case of moving all systems to one key, revoking/regenerating the other key and moving all systems to that.
Option 2: An optional overlap of the existing key and the new key when you regenerate. An hour is probably enough, and the default would be immediate, but this gives a period of time where both the old and new keys are accepted and ensures there is no panic to put the new key into env variables etc.
Now implemented for Pro and RPM plans
-
We've just added this to all Pro and High RPM plans - primary and secondary keys, rotated independently for zero-downtime key rotation.