Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ In order to use this chart, you will need to:
| kbs.secretResources[1].key | string | `"secret/data/hub/passphrase"` | |
| kbs.secretResources[1].name | string | `"passphrase"` | |
| kbs.snp.enabled | bool | `false` | |
| kbs.snp.vcekKdsUrl | string | `""` | |
| kbs.snp.vcekSecrets | list | `[]` | |
| kbs.spire.enabled | bool | `false` | |
| kbs.spire.adminSocketPath | string | `"/run/spire/sockets/admin.sock"` | |
Expand Down
12 changes: 11 additions & 1 deletion templates/kbs-config-map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,17 @@ data:
{{- if .Values.kbs.snp.enabled }}

[attestation_service.verifier_config.snp_verifier]
vcek_sources = [{ type = "OfflineStore" }]
{{- $vcekSources := list }}
{{- if .Values.kbs.snp.vcekSecrets }}
{{- $vcekSources = append $vcekSources "{ type = \"OfflineStore\" }" }}
{{- end }}
{{- if .Values.kbs.snp.vcekKdsUrl }}
{{- $vcekSources = append $vcekSources (printf "{ type = \"KDS\", base_url = \"%s\" }" .Values.kbs.snp.vcekKdsUrl) }}
{{- end }}
{{- if not $vcekSources }}
{{- $vcekSources = list "{ type = \"OfflineStore\" }" }}
{{- end }}
vcek_sources = [{{ join ", " $vcekSources }}]
{{- end }}

[[plugins]]
Expand Down
15 changes: 12 additions & 3 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Copy link
Copy Markdown
Collaborator

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?

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: ""

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we code in https://kdsintf.amd.com as the default value? I'm not aware when it can be different today.


# SPIRE Delegated Identity plugin configuration
# Requires a KBS image built with the spire-plugin cargo feature
Expand Down