Repository navigation
Commit bd19d3d
committed
feat!: replace dead key-rotation machinery with keyring decrypt helper (LAB-683)
Deletes the rotation dead code the LAB-275 audit flagged as a trust bug and
implements the cachekit-core half of the keyring decision
(protocol/decisions/key-rotation.md, merged via protocol#34):
- Remove ZeroKnowledgeEncryptor::rotate_key() NotImplemented stub and the
EncryptionError::NotImplemented variant
- Delete src/encryption/key_rotation.rs whole (KeyRotationState,
RotationAwareHeader) and the EncryptionHeader alias + re-exports
- Add encryption::keyring::Keyring: one current master key + at most 3
decrypt-only keys; sequential decrypt current-first with identical AAD per
attempt; per-entry HKDF-derived encryption-key fingerprints for
fingerprint-based selection; cap and forward-only self-collision rejected at
construction; all key material zeroized on drop
BREAKING CHANGE: public items EncryptionHeader, KeyRotationState,
RotationAwareHeader, and ZeroKnowledgeEncryptor::rotate_key() are removed
(EncryptionError::NotImplemented variant included). Use Keyring for
master-key rotation.1 parent daf3459 commit bd19d3d
7 files changed
Lines changed: 425 additions & 359 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
159 | 170 | | |
160 | 171 | | |
161 | 172 | | |
| |||
480 | 491 | | |
481 | 492 | | |
482 | 493 | | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | 494 | | |
500 | 495 | | |
501 | 496 | | |
| |||
This file was deleted.
0 commit comments