forge
Explore
Log in

Don't you dare go Hollow

Withdrawn keys are deleted, not guaranteed erased from free pages

Browse files at this commit

e9d46870dc832a09a7710386d76b2b1bad58f989Ahmet Kaan GümüşParent: 08d6e47
  • docs
    • withdrawn keys are deleted, not guaranteed erased from free pages
Show full message
📝 docs: withdrawn keys are deleted, not guaranteed erased from free pages
README.mdmodified+3 -1
@@ -139,7 +139,9 @@ im --config /etc/im/im.toml keys rotate
139 139
140 A manual rotation is immediate. The new key signs from that moment. The previous signing key, any key still140 A manual rotation is immediate. The new key signs from that moment. The previous signing key, any key still
141 waiting to sign, and any retired key still published are withdrawn at once: they leave the published keys,141 waiting to sign, and any retired key still published are withdrawn at once: they leave the published keys,
142-their private seeds are erased, and they never sign or verify again. Treat them as compromised. The result is142+their rows are deleted, and they never sign or verify again. Treat them as compromised. Deleted bytes can
143+linger in free database pages until they are reused, so a copy of the whole data directory (database and
144+`im.key`) may still yield a withdrawn seed; no relying party trusts it any more. The result is
143 exactly one published key. The admin Keys page offers the same rotation. Both are audited (`keys.rotated`,145 exactly one published key. The admin Keys page offers the same rotation. Both are audited (`keys.rotated`,
144 listing the withdrawn key ids).146 listing the withdrawn key ids).
145 147
docs/contracts.mdmodified+1 -1
@@ -61,7 +61,7 @@ Clients fetch discovery once at boot and cache it. They may hard-code the paths
61 - `im` rotates the signing key every 90 days. A new key is published 24 hours before it signs anything.61 - `im` rotates the signing key every 90 days. A new key is published 24 hours before it signs anything.
62 - On admin demand (`im keys rotate`, or the admin Keys page) the rotation is immediate: the new key signs from62 - On admin demand (`im keys rotate`, or the admin Keys page) the rotation is immediate: the new key signs from
63 that moment, and every other key (pending, current or retired) is withdrawn at once. A withdrawn key is no63 that moment, and every other key (pending, current or retired) is withdrawn at once. A withdrawn key is no
64- longer in `jwks.json`, its seed is erased, and `im` never signs or verifies with it again. This is the64+ longer in `jwks.json`, its row is deleted, and `im` never signs or verifies with it again. This is the
65 emergency action after a suspected leak.65 emergency action after a suspected leak.
66 - Clients cache the JWKS for 10 minutes, and refetch at most once a minute when a token names an unknown `kid`.66 - Clients cache the JWKS for 10 minutes, and refetch at most once a minute when a token names an unknown `kid`.
67 67