diff --git a/README.md b/README.md index 9e0045d..84aee94 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,9 @@ im --config /etc/im/im.toml keys rotate A manual rotation is immediate. The new key signs from that moment. The previous signing key, any key still waiting to sign, and any retired key still published are withdrawn at once: they leave the published keys, -their private seeds are erased, and they never sign or verify again. Treat them as compromised. The result is +their rows are deleted, and they never sign or verify again. Treat them as compromised. Deleted bytes can +linger in free database pages until they are reused, so a copy of the whole data directory (database and +`im.key`) may still yield a withdrawn seed; no relying party trusts it any more. The result is exactly one published key. The admin Keys page offers the same rotation. Both are audited (`keys.rotated`, listing the withdrawn key ids). diff --git a/docs/contracts.md b/docs/contracts.md index 8e85380..9fe1ada 100644 --- a/docs/contracts.md +++ b/docs/contracts.md @@ -61,7 +61,7 @@ Clients fetch discovery once at boot and cache it. They may hard-code the paths - `im` rotates the signing key every 90 days. A new key is published 24 hours before it signs anything. - On admin demand (`im keys rotate`, or the admin Keys page) the rotation is immediate: the new key signs from that moment, and every other key (pending, current or retired) is withdrawn at once. A withdrawn key is no - longer in `jwks.json`, its seed is erased, and `im` never signs or verifies with it again. This is the + longer in `jwks.json`, its row is deleted, and `im` never signs or verifies with it again. This is the emergency action after a suspected leak. - Clients cache the JWKS for 10 minutes, and refetch at most once a minute when a token names an unknown `kid`.