-
Notifications
You must be signed in to change notification settings - Fork 53
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
attestation: add awsSEVSNP
as new variant
#1900
Conversation
✅ Deploy Preview for constellation-docs canceled.
|
internal/attestation/aws/snp/snp.go
Outdated
/* | ||
--------- WARNING! --------- | ||
THIS PACKAGE DOES CURRENTLY NOT IMPLEMENT ANY SNP ATTESTATION. | ||
It exists to implement required interfaces while implementing other parts of the AWS SNP attestation variant within Constellation. | ||
---------------------------- | ||
|
||
# SNP |
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.
/* | |
--------- WARNING! --------- | |
THIS PACKAGE DOES CURRENTLY NOT IMPLEMENT ANY SNP ATTESTATION. | |
It exists to implement required interfaces while implementing other parts of the AWS SNP attestation variant within Constellation. | |
---------------------------- | |
# SNP | |
/* | |
--------- WARNING! --------- | |
THIS PACKAGE DOES CURRENTLY NOT IMPLEMENT ANY SNP ATTESTATION. | |
It exists to implement required interfaces while implementing other parts of the AWS SNP attestation variant within Constellation. | |
---------------------------- | |
# SNP |
Otherwise the formatting looks weird on the docs site.
This doc comment also still contains a lot of Azure specific information which should be updated for AWS
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.
I removed some Azure specific abbreviation from the bottom. Not sure what else you mean. Would be great if you could highlight that on your next pass if you still see something.
This makes the pkg's purpose more visible through it's import path.
This is preparation for adding snp attesation.
For now the implementations in aws/nitrotpm and aws/snp are identical. They both contain the aws/nitrotpm impl. A separate commit will add the actual attestation logic.
fix readme link
fix config_test.go
add image measurements
* do not extend debugLogger interface * use cmd.PrintErr to print warnings * adapt comments * do not use log.fatalf
f6b83e9
to
de3ce70
Compare
* variant: move into internal/attestation * attesation: move aws attesation into subfolder nitrotpm * config: add aws-sev-snp variant * cli: add tf option to enable AWS SNP For now the implementations in aws/nitrotpm and aws/snp are identical. They both contain the aws/nitrotpm impl. A separate commit will add the actual attestation logic.
Proposed change(s)
awsSEVSNP
as attestation variant. This does not include the attestation implementation. Instead, the standard awsNitroTPM attestation is used. A warning is printed during init and the config includes a warning comment.awsSEVSNP
as value forattestation
.internal/variant
tointernal/attestation/variant
Additional info
ref/feat-aws-snp-attestation/stream/debug/v2.8.0-pre.0.20230608071806-582d3a0b5009
Checklist