Skip to content

fix: wire offline SNP VCEK certs into trustee overrides - #160

Merged
butler54 merged 1 commit into
validatedpatterns:mainfrom
gurvinder:fix/wire-offline-snp-vcek-override
Oct 7, 2026
Merged

butler54 merged 1 commit into
validatedpatterns:mainfrom
gurvinder:fix/wire-offline-snp-vcek-override

Conversation

@gurvinder

Copy link
Copy Markdown
Contributor

Changes

  • values-baremetal.yaml — add /overrides/values-snp-vcek.yaml to the
    trustee application's extraValueFiles, alongside the existing
    /overrides/values-trustee.yaml. Helm natively deep-merges both files'
    kbs.* maps — no custom merge logic needed.
  • overrides/values-snp-vcek.yaml (new) — committed as a placeholder
    (kbs.snp.enabled: true, kbs.snp.vcekSecrets: []) so a fresh checkout
    always resolves the extraValueFiles reference.
  • scripts/gen-snp-vcek-overrides.sh — regenerates this file with a
    plain heredoc overwrite.

overrides/values-snp-vcek.yaml (generated by `make snp-gen-overrides`,
which sets kbs.snp.vcekSecrets so the trustee chart mounts each node's
VCEK certificate for offline SNP attestation) was never referenced by
the baremetal clustergroup's trustee application. The KBS SNP verifier
therefore had no VCEK and attestation failed with a 401 ("Failed to
fetch VCEK from any configured source").

- Add overrides/values-snp-vcek.yaml to the trustee application's
  extraValueFiles in values-baremetal.yaml, alongside the existing
  values-trustee.yaml. Helm natively deep-merges both files' kbs.* maps,
  so no custom merge logic is needed.
- Commit overrides/values-snp-vcek.yaml as a placeholder
  (kbs.snp.enabled: true, kbs.snp.vcekSecrets: []) so a fresh checkout
  resolves cleanly.
- scripts/gen-snp-vcek-overrides.sh regenerates this file with a plain
  heredoc overwrite (no awk/parsing needed, since the file is wholly
  owned by the generator and contains nothing hand-written).

Fixes validatedpatterns#156
@gurvinder
gurvinder requested a review from a team October 6, 2026 18:48

@butler54 butler54 left a comment

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.

LGTM thank you for this.

@butler54
butler54 merged commit aa04a09 into validatedpatterns:main Oct 7, 2026
5 checks passed
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.

2 participants