certcache

package
v2.16.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package certcache implements an in-cluster SEV-SNP certificate cache.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedCerts

type CachedCerts struct {
	// contains filtered or unexported fields
}

CachedCerts contains the cached certificates.

func (*CachedCerts) SevSnpCerts

func (c *CachedCerts) SevSnpCerts() (ask, ark *x509.Certificate)

SevSnpCerts returns the cached SEV-SNP ASK and ARK certificates.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a client for interacting with the certificate chain cache.

func NewClient

func NewClient(log *slog.Logger, kubeClient kubeClient, attVariant variant.Variant) *Client

NewClient creates a new CertCacheClient.

func (*Client) CreateCertChainCache

func (c *Client) CreateCertChainCache(ctx context.Context) (*CachedCerts, error)

CreateCertChainCache creates a certificate chain cache for the given attestation variant and returns the cached certificates, if applicable. If the certificate chain cache already exists, nothing is done.

Directories

Path Synopsis
The AMDKDS package implements interaction with the AMD KDS (Key Distribution Service).
The AMDKDS package implements interaction with the AMD KDS (Key Distribution Service).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL