Skip to content

fix(dstack-util): check an omitted MrConfig instance_id as empty - #1323

Merged
kvinwang merged 1 commit into
nextfrom
fix/guest-identity-checks
Sep 23, 2026
Merged

kvinwang merged 1 commit into
nextfrom
fix/guest-identity-checks

Conversation

@kvinwang

@kvinwang kvinwang commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

verify_mr_config_v3_document skipped the instance_id check when the host-written document omitted the field. Verifiers read an omitted instance_id as empty, which is indistinguishable from no_instance_id; on SEV-SNP this document is its only carrier, so the KMS would derive the disk key from app_id alone.

Treat an omitted instance_id as empty, so it is accepted only when the guest also has none (no_instance_id, the one case where the VMM omits it). This restores the strict check that 7bf644a loosened when it made the field optional.

app_id is left optional on purpose (6a71d79): an omitted app_id is attested as empty, which the KMS already rejects, so it cannot be mistaken for a real identity.

@kvinwang
kvinwang force-pushed the fix/guest-identity-checks branch from d9feeca to ef9fa3e Compare September 23, 2026 02:27
@kvinwang kvinwang changed the title fix(dstack-util): tighten gateway app id, MrConfig and storage measurement checks fix(dstack-util): require the MrConfig document to pin app and instance Sep 23, 2026
@kvinwang
kvinwang force-pushed the fix/guest-identity-checks branch from ef9fa3e to e6806db Compare September 23, 2026 02:41
A relying party cannot tell an omitted instance_id from no_instance_id, so the guest must not skip the check when the host leaves the field out.
@kvinwang kvinwang changed the title fix(dstack-util): require the MrConfig document to pin app and instance fix(dstack-util): check an omitted MrConfig instance_id as empty Sep 23, 2026
@kvinwang
kvinwang force-pushed the fix/guest-identity-checks branch from e6806db to e1b4324 Compare September 23, 2026 03:33
@kvinwang
kvinwang merged commit 593879b into next Sep 23, 2026
11 checks passed
@kvinwang
kvinwang deleted the fix/guest-identity-checks branch September 23, 2026 04:22
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