Skip to content

Use a hard-coded string for virtual measurement#6802

Merged
achamayou merged 2 commits into
microsoft:mainfrom
eddyashton:hardcoded_virtual_measurement
Feb 4, 2025
Merged

Use a hard-coded string for virtual measurement#6802
achamayou merged 2 commits into
microsoft:mainfrom
eddyashton:hardcoded_virtual_measurement

Conversation

@eddyashton

Copy link
Copy Markdown
Member

We were previously calling uname -a, which includes node name, which obviously differs across real networked/containerised nodes.

We could call something that will be common across nodes (uname -s -r), but I think this is an unnecessary risk - it still means we may get virtual nodes refusing to join because they are running in different environments, and doesn't actually get us any benefit. This call to uname was used so that we could add a shim to modify it without using a custom envvar/additional config value, but we don't actually have a use for modifying it. We test that measurement policy is applied by removing the trusted measurement, rather than starting a node with an alternative measurement. Shipping anything that modifies it (a uname bash script shim, or some separate script to be called) alongside cchost is awkward even within our test infra.

If we ever have a use case for modifying the measurement, we can revisit.

@eddyashton eddyashton requested a review from a team as a code owner February 4, 2025 12:03
@achamayou achamayou enabled auto-merge February 4, 2025 13:31
@achamayou achamayou added this pull request to the merge queue Feb 4, 2025
Merged via the queue into microsoft:main with commit a072769 Feb 4, 2025
@achamayou achamayou deleted the hardcoded_virtual_measurement branch February 4, 2025 14:25
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.

2 participants