Withdrawn keys are deleted, not guaranteed erased from free pages
Browse files at this commite9d46870dc832a09a7710386d76b2b1bad58f989Parent: 08d6e47- docs
- withdrawn keys are deleted, not guaranteed erased from free pages
2 changed files +4 -2
- README.md +3 -1
- docs/contracts.md +1 -1
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 still | 140 | 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 is | 142 | +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 from | 62 | - 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 no | 63 | 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 the | 64 | + 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 | ||