Skip to content
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

snp: cache amd kds requests #29

Merged
merged 1 commit into from
Jan 2, 2024
Merged

snp: cache amd kds requests #29

merged 1 commit into from
Jan 2, 2024

Conversation

3u13r
Copy link
Member

@3u13r 3u13r commented Dec 29, 2023

  • The go-sev-guest library takes a http.Getter Interface in the verify options.
  • Wrap the default http getter from the library and cache URLs for 5 minutes

From non-scientific observation, this greatly improves start-up time of workloads. This also mitigates "unnecessary" KDS requests when there is no manifest set.

With this (simplest) implementation, we currently cache all requests made by the library during verify. We should discuss reducing that to the /vcek/ endpoint or even the first endpoint mentioned in Chapter 4 Table 10 here: https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/specifications/57230.pdf.

@3u13r 3u13r requested a review from katexochen as a code owner December 29, 2023 16:05
internal/attestation/snp/validator.go Outdated Show resolved Hide resolved
internal/attestation/snp/validator.go Outdated Show resolved Hide resolved
internal/attestation/snp/validator.go Outdated Show resolved Hide resolved
@3u13r 3u13r force-pushed the feat/snp/cache-kds branch from d8ca043 to f38078f Compare January 2, 2024 14:22
@3u13r 3u13r requested a review from katexochen January 2, 2024 14:37
@3u13r 3u13r requested a review from katexochen January 2, 2024 15:21
@3u13r 3u13r force-pushed the feat/snp/cache-kds branch from a94b0e6 to e6552f7 Compare January 2, 2024 15:28
@3u13r 3u13r merged commit ae5a52d into main Jan 2, 2024
2 checks passed
@3u13r 3u13r deleted the feat/snp/cache-kds branch January 2, 2024 15:29
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