-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
attestation: use
go-sev-guest
library (#2269)
* wip: switch to attestation * add extra comments Signed-off-by: Moritz Sanft <[email protected]> * MAA checks Signed-off-by: Moritz Sanft <[email protected]> * use provided functions to parse report / cert chain Signed-off-by: Moritz Sanft <[email protected]> * replace `CommitedTCB` check with `LaunchTCB` check Signed-off-by: Moritz Sanft <[email protected]> * remove debug check Signed-off-by: Moritz Sanft <[email protected]> * remove `LaunchTCB` == `CommitedTCB` check Signed-off-by: Moritz Sanft <[email protected]> * custom IdKeyDigests check Signed-off-by: Moritz Sanft <[email protected]> * basic test of report parsing from instance info Signed-off-by: Moritz Sanft <[email protected]> * retrieve VCEK from AMD KDS Signed-off-by: Moritz Sanft <[email protected]> * remove VCEK from `azureInstanceInfo` Signed-off-by: Moritz Sanft <[email protected]> * use `go-sev-guest` TCB version type Signed-off-by: Moritz Sanft <[email protected]> * fix validation parsing test Signed-off-by: Moritz Sanft <[email protected]> * fix error message * fix comment Signed-off-by: Moritz Sanft <[email protected]> * remove certificate chain from `instanceInfo` Signed-off-by: Moritz Sanft <[email protected]> * add test for idkeydigest check Signed-off-by: Moritz Sanft <[email protected]> * update buildfiles Signed-off-by: Moritz Sanft <[email protected]> * wip: update tests Signed-off-by: Moritz Sanft <[email protected]> * update buildfiles Signed-off-by: Moritz Sanft <[email protected]> * [remove] debug prints Signed-off-by: Moritz Sanft <[email protected]> * wip: fix tests Signed-off-by: Moritz Sanft <[email protected]> * wip: fix tests Signed-off-by: Moritz Sanft <[email protected]> * fix tests, do some clean-up Signed-off-by: Moritz Sanft <[email protected]> * add test case for fetching error Signed-off-by: Moritz Sanft <[email protected]> * Update internal/attestation/azure/snp/validator.go Co-authored-by: Daniel Weiße <[email protected]> * correct `hack` dependency Signed-off-by: Moritz Sanft <[email protected]> * fix id key check Signed-off-by: Moritz Sanft <[email protected]> * [remove] comment out wip unit tests Signed-off-by: Moritz Sanft <[email protected]> * add missing newline Signed-off-by: Moritz Sanft <[email protected]> * switch to released version of `go-sev-guest` Signed-off-by: Moritz Sanft <[email protected]> * add constructor test Signed-off-by: Moritz Sanft <[email protected]> * add VMPL check Signed-off-by: Moritz Sanft <[email protected]> * add test assertions Signed-off-by: Moritz Sanft <[email protected]> * update buildfiles Signed-off-by: Moritz Sanft <[email protected]> * switch to pseudoversion Signed-off-by: Moritz Sanft <[email protected]> * use fork with windows fix Signed-off-by: Moritz Sanft <[email protected]> * fix linter checks Signed-off-by: Moritz Sanft <[email protected]> * use data from THIM Signed-off-by: Moritz Sanft <[email protected]> * update embeds Signed-off-by: Moritz Sanft <[email protected]> * verify against ARK in config Signed-off-by: Moritz Sanft <[email protected]> * invalid ASK Signed-off-by: Moritz Sanft <[email protected]> * Update internal/attestation/azure/snp/validator.go Co-authored-by: Thomas Tendyck <[email protected]> * Update internal/attestation/azure/snp/validator.go Co-authored-by: Thomas Tendyck <[email protected]> * Update internal/attestation/azure/snp/validator.go Co-authored-by: 3u13r <[email protected]> * Update internal/attestation/azure/snp/validator.go Co-authored-by: 3u13r <[email protected]> * nits Signed-off-by: Moritz Sanft <[email protected]> * remove unnecessary checks Signed-off-by: Moritz Sanft <[email protected]> * refactoring Signed-off-by: Moritz Sanft <[email protected]> * Update internal/attestation/azure/snp/validator.go Co-authored-by: Thomas Tendyck <[email protected]> * Update internal/attestation/azure/snp/validator.go Co-authored-by: Thomas Tendyck <[email protected]> * Update internal/attestation/azure/snp/validator.go Co-authored-by: Thomas Tendyck <[email protected]> * use upstream library with pseudoversion Signed-off-by: Moritz Sanft <[email protected]> * Update internal/attestation/azure/snp/validator.go Co-authored-by: Paul Meyer <[email protected]> * Update internal/attestation/azure/snp/validator.go Co-authored-by: Paul Meyer <[email protected]> * Update internal/attestation/azure/snp/validator.go Co-authored-by: Paul Meyer <[email protected]> * simplify control flow Signed-off-by: Moritz Sanft <[email protected]> * fix return error Signed-off-by: Moritz Sanft <[email protected]> * fix VCEK test Signed-off-by: Moritz Sanft <[email protected]> * tidy Signed-off-by: Moritz Sanft <[email protected]> * revert unintentional changes Signed-off-by: Moritz Sanft <[email protected]> * use new upstream release Signed-off-by: Moritz Sanft <[email protected]> * fix removed AuthorKeyEn field Signed-off-by: Moritz Sanft <[email protected]> * fix verification report printing Signed-off-by: Moritz Sanft <[email protected]> --------- Signed-off-by: Moritz Sanft <[email protected]> Co-authored-by: Daniel Weiße <[email protected]> Co-authored-by: Thomas Tendyck <[email protected]> Co-authored-by: 3u13r <[email protected]> Co-authored-by: Paul Meyer <[email protected]>
- Loading branch information
Showing
21 changed files
with
1,345 additions
and
598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.