Skip to content

feat(guest): stop migrating data disks across key epochs by default - #1657

Open
kvinwang wants to merge 1 commit into
nextfrom
feat/disk-migration-opt-in
Open

kvinwang wants to merge 1 commit into
nextfrom
feat/disk-migration-opt-in

Conversation

@kvinwang

@kvinwang kvinwang commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

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 (default false, strongly discouraged) restores migration, set in a measured, whitelisted compose. Env migration, resumed migrations and fresh disks are unaffected.

  • Rust types, guest check, Go/Python/JS SDKs and the shared compose-hash fixture (a false value is omitted, so existing hashes are unchanged)
  • Docs: CHANGELOG (breaking), cvm-boundaries.md, app key epochs, emergency rotation protocol and runbook

A safe migration (volume-key reencryption with quarantined old data) will follow separately.

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
kvinwang force-pushed the feat/disk-migration-opt-in branch from 0c34a0d to 3071a7b Compare November 27, 2026 05:27
@kvinwang kvinwang changed the title feat(guest): require opt-in to migrate data disks across key epochs feat(guest): stop migrating data disks across key epochs by default Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant