-
Notifications
You must be signed in to change notification settings - Fork 71
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
Refactor verifier for issue #418 #419
Conversation
/gcbrun |
/gcbrun |
23ed48a
to
9ac26cb
Compare
/gcbrun |
Hi @alexmwu ! Could you take a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR description should mention what changes are breaking.
Hi @alexmwu , I have added the description. Thanks for the comment! |
9ac26cb
to
5105340
Compare
e4d7865
to
b8e1ce8
Compare
/gcbrun |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also have @jkl73 approve before submitting
Breaking Changes: [launcher/cmd] Refactor verifier for issue google#419 * Unexport `cmd.Instance`, `cmd.MetadataServer`, `cmd.NewMetadataServer`. * Move package `verifier` from launcher to go-tpm-tools. * `verifier.Client`, `verifier.Challenge`, etc. * Move package `fake` from launcher to go-tpm-tools. * `fake.Claims`, `fake.NewClient`, etc. * Move package `rest` from launcher to go-tpm-tools. * `rest.NewClient`, `rest.BadRegionError`, etc. New Features: [cmd] Add new command token in the CLI tool google#375 [cmd] add records to cloud logging when fetching token from attestation verifier google#417 Bug Fixes: Statically link binaries built by goreleaser google#425 Other Changes: Update readme to include the instruction to use the prebuilt gotpm tool. google#424 New Contributors: @Ruide in google#375 @qinkunbao in google#424
Breaking Changes: [launcher/cmd] Refactor verifier for issue google#419 * Unexport `cmd.Instance`, `cmd.MetadataServer`, `cmd.NewMetadataServer`. * Move package `verifier` from launcher to go-tpm-tools. * `verifier.Client`, `verifier.Challenge`, etc. * Move package `fake` from launcher to go-tpm-tools. * `fake.Claims`, `fake.NewClient`, etc. * Move package `rest` from launcher to go-tpm-tools. * `rest.NewClient`, `rest.BadRegionError`, etc. New Features: [cmd] Add new command token in the CLI tool google#375 [cmd] add records to cloud logging when fetching token from attestation verifier google#417 Bug Fixes: Statically link binaries built by goreleaser google#425 Other Changes: Update readme to gotpm CLi instructions. google#424, google#426 New Contributors: @Ruide in google#375 @qinkunbao in google#424
The CEL getting dropped in the attestation was missed as part of google#419. This PR adds it back for the launcher and adds a unit test that ensures the CEL is verified when available.
The CEL getting dropped in the attestation was missed as part of google#419. This PR adds it back for the launcher and adds a unit test that ensures the CEL is verified when available.
The CEL getting dropped in the attestation was missed as part of google#419. This PR adds it back for the launcher and adds a unit test that ensures the CEL is verified when available.
The CEL getting dropped in the attestation was missed as part of google#419. This PR adds it back for the launcher and adds a unit test that ensures the CEL is verified when available.
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.
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.
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.
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.
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.
This should remove the large increase in dependencies due to google#419. We temporarily include replace directives in cmd/go.mod and launcher/go.mod for now while we work on moving the package to a submodule.
This should remove the large increase in dependencies due to google#419. We temporarily include replace directives in cmd/go.mod and launcher/go.mod for now while we work on moving the package to a submodule.
This should remove the large increase in dependencies due to google#419. We temporarily include replace directives in cmd/go.mod and launcher/go.mod for now while we work on moving the package to a submodule.
This should remove the large increase in dependencies due to google#419. We temporarily include replace directives in cmd/go.mod and launcher/go.mod for now while we work on moving the package to a submodule.
This should remove the large increase in dependencies due to google#419. We temporarily include replace directives in cmd/go.mod and launcher/go.mod for now while we work on moving the package to a submodule.
This should remove the large increase in dependencies due to google#419. We temporarily include replace directives in cmd/go.mod and launcher/go.mod for now while we work on moving the package to a submodule.
This should remove the large increase in dependencies due to google#419. We temporarily include replace directives in cmd/go.mod and launcher/go.mod for now while we work on moving the package to a submodule.
This should remove the large increase in dependencies due to google#419. We temporarily include replace directives in cmd/go.mod and launcher/go.mod for now while we work on moving the package to a submodule.
This should remove the large increase in dependencies due to google#419. We temporarily include replace directives in cmd/go.mod and launcher/go.mod for now while we work on moving the package to a submodule.
This should remove the large increase in dependencies due to google#419. We temporarily include replace directives in cmd/go.mod and launcher/go.mod for now while we work on moving the package to a submodule. We also remove some unnecessary utilities like FetchAttestation and tests that won't work except on GCE. Breaking Changes * Move package `verifier` from go-tpm-tools to a new submodule github.com/google/go-tpm-tools/verifier * `verifier.Client`, `verifier.Challenge`, etc. * Move package `fake` from go-tpm-tools to a new submodule github.com/google/go-tpm-tools/verifier. * `fake.Claims`, `fake.NewClient`, etc. * Move package `oci` and `cosign` from go-tpm-tools to a new submodule github.com/google/go-tpm-tools/verifier. * `oci.Signature`, `cosign.Sig`, etc. * Move package `rest` from go-tpm-tools to a new submodule github.com/google/go-tpm-tools/verifier. * `rest.NewClient`, `rest.BadRegionError`, etc. * Move package `util` from go-tpm-tools to a new submodule github.com/google/go-tpm-tools/verifier. * `util.Instance`, `util.MetadataServer`, `util.NewMetadataServer`, etc.
This should remove the large increase in dependencies due to google#419. We temporarily include replace directives in cmd/go.mod and launcher/go.mod for now while we work on moving the package to a submodule. We also remove some unnecessary utilities like FetchAttestation and tests that won't work except on GCE. Breaking Changes * Move package `verifier` from go-tpm-tools to a new submodule github.com/google/go-tpm-tools/verifier * `verifier.Client`, `verifier.Challenge`, etc. * Move package `fake` from go-tpm-tools to a new submodule github.com/google/go-tpm-tools/verifier. * `fake.Claims`, `fake.NewClient`, etc. * Move package `oci` and `cosign` from go-tpm-tools to a new submodule github.com/google/go-tpm-tools/verifier. * `oci.Signature`, `cosign.Sig`, etc. * Move package `rest` from go-tpm-tools to a new submodule github.com/google/go-tpm-tools/verifier. * `rest.NewClient`, `rest.BadRegionError`, etc. * Move package `util` from go-tpm-tools to a new submodule github.com/google/go-tpm-tools/verifier. * `util.Instance`, `util.MetadataServer`, `util.NewMetadataServer`, etc.
This should remove the large increase in dependencies due to #419. We temporarily include replace directives in cmd/go.mod and launcher/go.mod for now while we work on moving the package to a submodule. We also remove some unnecessary utilities like FetchAttestation and tests that won't work except on GCE. Breaking Changes * Move package `verifier` from go-tpm-tools to a new submodule github.com/google/go-tpm-tools/verifier * `verifier.Client`, `verifier.Challenge`, etc. * Move package `fake` from go-tpm-tools to a new submodule github.com/google/go-tpm-tools/verifier. * `fake.Claims`, `fake.NewClient`, etc. * Move package `oci` and `cosign` from go-tpm-tools to a new submodule github.com/google/go-tpm-tools/verifier. * `oci.Signature`, `cosign.Sig`, etc. * Move package `rest` from go-tpm-tools to a new submodule github.com/google/go-tpm-tools/verifier. * `rest.NewClient`, `rest.BadRegionError`, etc. * Move package `util` from go-tpm-tools to a new submodule github.com/google/go-tpm-tools/verifier. * `util.Instance`, `util.MetadataServer`, `util.NewMetadataServer`, etc.
See Issue #418
This PR makes the following changes: