Skip to content

feat(snp): default vcekKdsUrl to reference AMD KDS URL - #48

Merged
butler54 merged 1 commit into
validatedpatterns:mainfrom
butler54:feat/snp-default-amd-kds
Nov 25, 2026
Merged

butler54 merged 1 commit into
validatedpatterns:mainfrom
butler54:feat/snp-default-amd-kds

Conversation

@butler54

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #43, which introduced kbs.snp.vcekKdsUrl for online AMD KDS
VCEK fetching but left it empty by default, forcing connected clusters to
opt in to online attestation.

This changes the default so bare-metal SNP attestation includes the online
AMD KDS out of the box, using the reference KDS URL
https://kdsintf.amd.com — the same default base_url trustee uses
upstream for KDS vcek sources
(attestation-service/docs/config.md).

The values file now documents that completely offline/air-gapped clusters
should provide an empty string for kbs.snp.vcekKdsUrl to keep the
offline-only (OfflineStore) behavior.

Changes

  • values.yaml: kbs.snp.vcekKdsUrl defaults to https://kdsintf.amd.com;
    comments updated to explain the default and the "" override for
    completely offline clusters.
  • README.md: helm-docs values table updated to match.
  • No template changes needed — the logic from fix(snp): support online AMD KDS vcek source for SNP verifier #43 already renders a KDS
    vcek_source whenever the URL is non-empty.

Behavior with kbs.snp.enabled=true:

Configuration Rendered vcek_sources
Defaults (no overrides) [{ type = "KDS", base_url = "https://kdsintf.amd.com" }]
vcekSecrets set [{ type = "OfflineStore" }, { type = "KDS", base_url = "..." }]
vcekKdsUrl: "" (completely offline) [{ type = "OfflineStore" }]

Validation

Rendered templates/kbs-config-map.yaml with helm template across the
three scenarios in the table above and confirmed the resulting
vcek_sources content in each case. helm lint . passes.

The KBS SNP verifier's vcekKdsUrl was empty by default, so connected
clusters had to opt in to online VCEK fetching even though online KDS
is trustee's upstream default for the SNP verifier.

Default vcekKdsUrl to the reference AMD KDS URL
(https://kdsintf.amd.com) so bare-metal SNP attestation fetches VCEK
certificates online out of the box. This matches the trustee upstream
default base_url for KDS vcek sources.

Completely offline/air-gapped clusters should set vcekKdsUrl to an
empty string ("") to keep the offline-only (OfflineStore) behavior.
When combined with vcekSecrets, OfflineStore is tried first with KDS
as the fallback.

Follow-up to validatedpatterns#43.
@butler54
butler54 merged commit 51c7ba0 into validatedpatterns:main Nov 25, 2026
4 checks passed
@butler54 butler54 mentioned this pull request Nov 25, 2026
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.

1 participant