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

Fix bug dropping CEL in launcher attestations #438

Merged
merged 1 commit into from
Apr 13, 2024
Merged

Conversation

alexmwu
Copy link
Contributor

@alexmwu alexmwu commented Apr 12, 2024

We inadvertently dropped the launcher's canonical event log when refactoring in #419. This fix adds back the launcher CEL and adds a unit test that checks for CEL measurements in the MachineState.

Failing Unit Test Before Fix:

2024/04/12 18:01:17 Refreshed container image signature cache: [0xc00030e260 0xc00030e280]
2024/04/12 18:01:17 Found container image signatures: [0xc00030e260 0xc00030e280]
--- FAIL: TestAttest (0.00s)
--- FAIL: TestAttest/all_experiment_flags_disabled (0.17s)
/Users/wuale/Projects/go-tpm-tools/launcher/agent/agent_test.go:389: got image ref , want image ref gcr.io/fakeRepo/fakeTestImage:latest
/Users/wuale/Projects/go-tpm-tools/launcher/agent/agent_test.go:392: got image digest , want image digest sha256:adb591795f9e9047f9117163b83c2ebcd5edc4503644d59a98cf911aef0367f8
/Users/wuale/Projects/go-tpm-tools/launcher/agent/agent_test.go:398: got args [], want length 1
--- FAIL: TestAttest/enable_signed_container (0.40s)
/Users/wuale/Projects/go-tpm-tools/launcher/agent/agent_test.go:389: got image ref , want image ref gcr.io/fakeRepo/fakeTestImage:latest
/Users/wuale/Projects/go-tpm-tools/launcher/agent/agent_test.go:392: got image digest , want image digest sha256:adb591795f9e9047f9117163b83c2ebcd5edc4503644d59a98cf911aef0367f8
/Users/wuale/Projects/go-tpm-tools/launcher/agent/agent_test.go:398: got args [], want length 1
FAIL
FAIL github.com/google/go-tpm-tools/launcher/agent 0.926s
FAIL

@alexmwu
Copy link
Contributor Author

alexmwu commented Apr 12, 2024

/gcbrun

@alexmwu
Copy link
Contributor Author

alexmwu commented Apr 13, 2024

/gcbrun

@alexmwu alexmwu marked this pull request as ready for review April 13, 2024 00:02
We inadvertently dropped the launcher's canonical event log when
refactoring in google#419. This fix adds back the launcher CEL and adds a unit
test that checks for CEL measurements in the MachineState.
@alexmwu
Copy link
Contributor Author

alexmwu commented Apr 13, 2024

/gcbrun

@alexmwu alexmwu merged commit 7309492 into google:main Apr 13, 2024
11 checks passed
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.

None yet

2 participants