Repository navigation
Conversation
A key rotation implies the old root may have leaked. Re-keying a disk keeps its volume key, which the old root and any copy of the old LUKS header reveal; the header is plaintext and every host or snapshot that saw the disk has one. Whoever holds both can read and modify a migrated disk at any time, so migration leaves the disk exposed to the leaked root for good. The guest now refuses a data disk at older epochs. The strongly discouraged requirements.unsafe_allow_disk_migration restores migration, set in a measured, whitelisted compose. Env migration and resumed migrations are unaffected. Signed-off-by: Kevin Wang <wy721@qq.com>
kvinwang
force-pushed
the
feat/disk-migration-opt-in
branch
from
November 27, 2026 05:27
0c34a0d to
3071a7b
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After a KMS root or app key rotation, the guest re-keys a data disk left at older epochs automatically. Re-keying keeps the volume key, which the old root and any copy of the old LUKS header reveal. The header is plaintext, so every host or snapshot that saw the disk has one. Whoever holds the leaked root can therefore read and modify a migrated disk at any time, before or after the migration.
The guest now refuses such a disk; apps start from a fresh data disk after a rotation.
requirements.unsafe_allow_disk_migration(defaultfalse, strongly discouraged) restores migration, set in a measured, whitelisted compose. Env migration, resumed migrations and fresh disks are unaffected.cvm-boundaries.md, app key epochs, emergency rotation protocol and runbookA safe migration (volume-key reencryption with quarantined old data) will follow separately.