Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add experiment support #352

Merged
merged 1 commit into from
Sep 17, 2023
Merged

Add experiment support #352

merged 1 commit into from
Sep 17, 2023

Conversation

JoshuaKrstic
Copy link
Contributor

@JoshuaKrstic JoshuaKrstic commented Sep 6, 2023

Add experiment support.
This change:

  • pulls the experiment binary from a GCS bucket (not open-sourceable code)
  • gets metadata from the MDS for the experiment binary (image family, image version, git commit hash for presubmit images)
  • calls experiment binary with metadata fetched
    • the binary fetches the project id + vm instance ID from the metadata server
  • provides experiment data as a map in the launch spec
  • provides helper functions to make the launch spec map type-safe

internal/experiments/experiments.go Outdated Show resolved Hide resolved
launcher/image/sync_experiments.sh Outdated Show resolved Hide resolved
internal/experiments/experiments.go Outdated Show resolved Hide resolved
launcher/image/sync_experiments.sh Outdated Show resolved Hide resolved
launcher/launcher/main.go Outdated Show resolved Hide resolved
internal/experiments/experiments.go Outdated Show resolved Hide resolved
internal/experiments/experiments_test.go Outdated Show resolved Hide resolved
internal/experiments/experiments.go Outdated Show resolved Hide resolved
internal/experiments/experiments.go Outdated Show resolved Hide resolved
launcher/image/preload.sh Outdated Show resolved Hide resolved
launcher/launcher/main.go Outdated Show resolved Hide resolved
@JoshuaKrstic JoshuaKrstic force-pushed the experiments branch 6 times, most recently from 2f13c5d to cdc01da Compare September 15, 2023 10:00
launcher/internal/experiments/experiments.go Outdated Show resolved Hide resolved
launcher/image/preload.sh Outdated Show resolved Hide resolved
launcher/launcher/main.go Outdated Show resolved Hide resolved
launcher/launcher/main.go Outdated Show resolved Hide resolved
launcher/launcher/main.go Outdated Show resolved Hide resolved
@alexmwu alexmwu merged commit c2f108f into google:master Sep 17, 2023
11 checks passed
alexmwu added a commit to alexmwu/go-tpm-tools that referenced this pull request Oct 27, 2023
New Features:
[launcher] Add experiment support google#352
[launcher] Integrate signature discovery client into attestation agent google#343

Bug Fixes:
Make launcher host tmp directory before experiment fetch google#363

Other Changes:
[launcher] Print kernel cmdline on builds google#268
Import latest version of go-tdx-guest google#373
[launcher] Print signature details instead of signature object google#374
[launcher] Add image tests for the experiments binary google#378
Update go-sev-guest to v0.9.3 google#381
@alexmwu alexmwu mentioned this pull request Oct 27, 2023
alexmwu added a commit that referenced this pull request Oct 27, 2023
New Features:
[launcher] Add experiment support #352
[launcher] Integrate signature discovery client into attestation agent #343

Bug Fixes:
Make launcher host tmp directory before experiment fetch #363

Other Changes:
[launcher] Print kernel cmdline on builds #268
Import latest version of go-tdx-guest #373
[launcher] Print signature details instead of signature object #374
[launcher] Add image tests for the experiments binary #378
Update go-sev-guest to v0.9.3 #381
meetrajvala added a commit to meetrajvala/go-tpm-tools that referenced this pull request Mar 13, 2024
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.

3 participants