Rotating gave the tool a new key but left the old one working. The old key was refused only after the issuer was told to revoke it.
Example. Key: sched-api, the pass scheduler's API key, two years old. Leaked in: A .env file on the USB drive, and the tool's code history. Test: Nyx sends one request with the old key. Events in order: 11:02, Kael rotates: a new key goes to the tool. 11:05, Nyx sends a request with the old key. 11:06, Kael tells the issuer to revoke the old key. 11:07, Nyx sends the same request again.
- At 11:02 Kael rotates the key. The tool switches to the new one and keeps working. Now: 11:02, Kael rotates: a new key goes to the tool. The tool works on the new key (good).
- At 11:05 Nyx sends a request with the old key. sched-api accepts it, because nothing has told it to refuse that key. Now: 11:05, Nyx sends a request with the old key. Accepted (bad).
- At 11:06 Kael revokes the old key at the issuer. The tool notices nothing, because it already uses the new key. Now: 11:06, Kael tells the issuer to revoke the old key. The issuer marks it revoked.
- At 11:07 the same request with the old key is refused. Only now is the leaked key useless. Now: 11:07, Nyx sends the same request again. Refused (the right outcome).
One key and one test request, and the axis is not to scale. The log search is not shown. Some issuers revoke the old key as part of rotation. This one did not.