Repository navigation
fix(snp): support online AMD KDS vcek source for SNP verifier #43
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
Merged
butler54
merged 2 commits into
validatedpatterns:main
from
gurvinder:fix/snp-online-kds-attestation
Nov 25, 2026
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,17 +74,26 @@ kbs: | |
|
|
||
| # AMD SEV-SNP bare metal attestation configuration | ||
| snp: | ||
| # Enable SNP offline attestation (VCEK certificate cache) | ||
| # When enabled, adds snp_verifier with OfflineStore to KBS config | ||
| # and mounts VCEK secrets into the KBS pod via kbsLocalCertCacheSpec. | ||
| # Enable SNP attestation (VCEK certificate verification) | ||
| # When enabled, adds snp_verifier to the KBS config with one or more | ||
| # vcek_sources, driven by vcekSecrets (offline) and/or vcekKdsUrl (online). | ||
| enabled: false | ||
| # VCEK secrets list — populated by `make snp-gen-overrides` in coco-pattern. | ||
| # Each entry maps a node's hardware ID to a K8s secret containing vcek.der. | ||
| # Collected via: make snp-collect-vcek-urls (cluster) + make snp-download-vcek (internet) | ||
| # When non-empty, adds an OfflineStore vcek_source to the SNP verifier config | ||
| # and mounts the VCEK secrets into the KBS pod via kbsLocalCertCacheSpec. | ||
| vcekSecrets: [] | ||
| # Example: | ||
| # - hwid: "abc123def456..." | ||
| # secretName: "snp-vcek-abc123def456" | ||
| # Online AMD Key Distribution Service (KDS) base URL for fetching VCEK | ||
| # certificates on connected clusters, e.g. "https://kdsintf.amd.com". | ||
| # When set, adds a KDS vcek_source to the SNP verifier config. May be | ||
| # combined with vcekSecrets (OfflineStore is tried first, KDS is the | ||
| # fallback) or used on its own for fully online attestation. Empty by | ||
| # default, which preserves the original offline-only (OfflineStore) behavior. | ||
| vcekKdsUrl: "" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't we code in |
||
|
|
||
| # SPIRE Delegated Identity plugin configuration | ||
| # Requires a KBS image built with the spire-plugin cargo feature | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
A larger posture change, however, I think given that trustee is happy to run with both TDX & SEV-SNP in parallel we should be able to enable by default.
Actually I think with this approach we can probably even completely remove the on/off flag for SEV-SNP at this stage. WDYT?