Integrity envelopes do not survive root key rotation #65
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Info
Severity: MEDIUM
Attack vector: offline
Impact
Can cause integrity verification failures after root key rotation, potentially locking operators out or preventing safe recovery from root-key compromise.
Description
Integrity signing and verification use
root_key_history_idas the key version. After root key rotation, existing envelopes fail verification because their key version no longer matches the current root key history identifier. There is no migration or re-signing mechanism for existing records.Example flow
Mitigation
Implement a re-signing migration for existing envelopes and allow verification against retained historical keys during a rotation window.