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

Container launcher prints signature details instead of signature object #374

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

yawangwang
Copy link
Collaborator

From https://github.com/google/go-tpm-tools/blob/main/launcher/agent/agent.go#L105 https://screenshot.googleplex.com/7wxmTBPQubwZLoB, the launcher prints golang objects for any found signatures, we should print signature details instead.

@yawangwang yawangwang force-pushed the print-signature-details branch 3 times, most recently from a42c20c to 8683300 Compare October 13, 2023 19:38
@yawangwang yawangwang marked this pull request as ready for review October 13, 2023 19:57
@yawangwang yawangwang requested review from alexmwu and jkl73 October 13, 2023 20:35
@@ -68,3 +70,12 @@ func (s Sig) PublicKey() ([]byte, error) {
func (s Sig) SigningAlgorithm() (oci.SigningAlgorithm, error) {
return "", fmt.Errorf("not implemented")
}

// String returns signature details
func (s Sig) String() string {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a unit test.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@yawangwang yawangwang force-pushed the print-signature-details branch from 8683300 to a956ebc Compare October 13, 2023 20:59
@yawangwang yawangwang requested a review from alexmwu October 13, 2023 21:00
Copy link
Contributor

@jkl73 jkl73 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@yawangwang yawangwang merged commit 44e8925 into google:main Oct 13, 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
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