const aesCBCTransformerPrefixV1 …
const aesGCMTransformerPrefixV1 …
const secretboxTransformerPrefixV1 …
const kmsTransformerPrefixV1 …
const kmsTransformerPrefixV2 …
const kmsv2PluginHealthzPositiveInterval …
const kmsv2PluginHealthzNegativeInterval …
const kmsv2PluginWriteDEKSourceMaxTTL …
const kmsPluginHealthzNegativeTTL …
const kmsPluginHealthzPositiveTTL …
const kmsAPIVersionV1 …
const kmsAPIVersionV2 …
const kmsReloadHealthCheckName …
var codecs …
var kdfEnabledPerKMS …
func SetKDFForTests(kmsName string, b bool) func() { … }
func GetKDF(kmsName string) bool { … }
func init() { … }
type kmsPluginHealthzResponse …
type kmsPluginProbe …
type kmsv2PluginProbe …
type kmsHealthChecker …
func (k kmsHealthChecker) Name() string { … }
func (k kmsHealthChecker) Check(req *http.Request) error { … }
func (h *kmsPluginProbe) toHealthzCheck(idx int) healthz.HealthChecker { … }
func (h *kmsv2PluginProbe) toHealthzCheck(idx int) healthz.HealthChecker { … }
type EncryptionConfiguration …
func LoadEncryptionConfig(ctx context.Context, filepath string, reload bool, apiServerID string) (*EncryptionConfiguration, error) { … }
func getTransformerOverridesAndKMSPluginHealthzCheckers(ctx context.Context, config *apiserver.EncryptionConfiguration, apiServerID string) (map[schema.GroupResource]storagevalue.Transformer, []healthz.HealthChecker, *kmsState, error) { … }
type healthChecker …
func getTransformerOverridesAndKMSPluginProbes(ctx context.Context, config *apiserver.EncryptionConfiguration, apiServerID string) (map[schema.GroupResource]storagevalue.Transformer, []healthChecker, *kmsState, error) { … }
func (h *kmsPluginProbe) check() error { … }
func (h *kmsv2PluginProbe) check(ctx context.Context) error { … }
func (h *kmsv2PluginProbe) rotateDEKOnKeyIDChange(ctx context.Context, statusKeyID, uid string) error { … }
func (h *kmsv2PluginProbe) getCurrentState() (envelopekmsv2.State, error) { … }
func (h *kmsv2PluginProbe) isKMSv2ProviderHealthyAndMaybeRotateDEK(ctx context.Context, response *kmsservice.StatusResponse) error { … }
func loadConfig(filepath string, reload bool) (*apiserver.EncryptionConfiguration, string, error) { … }
func loadDataAndHash(filepath string) ([]byte, string, error) { … }
func GetEncryptionConfigHash(filepath string) (string, error) { … }
func prefixTransformersAndProbes(ctx context.Context, config apiserver.ResourceConfiguration, apiServerID string) ([]storagevalue.PrefixTransformer, []healthChecker, *kmsState, error) { … }
type blockTransformerFunc …
func aesPrefixTransformer(config *apiserver.AESConfiguration, fn blockTransformerFunc, prefix string) (storagevalue.PrefixTransformer, error) { … }
func secretboxPrefixTransformer(config *apiserver.SecretboxConfiguration) (storagevalue.PrefixTransformer, error) { … }
var envelopeServiceFactory …
var EnvelopeKMSv2ServiceFactory …
type kmsState …
func (s *kmsState) accumulate(other *kmsState) { … }
func kmsPrefixTransformer(ctx context.Context, config *apiserver.KMSConfiguration, apiServerID string) (storagevalue.PrefixTransformer, healthChecker, *kmsState, error) { … }
func primeAndProbeKMSv2(ctx context.Context, probe *kmsv2PluginProbe, kmsName string) { … }
func envelopePrefixTransformer(config *apiserver.KMSConfiguration, envelopeService envelope.Service, prefix string) storagevalue.PrefixTransformer { … }
type unionTransformers …
func (u unionTransformers) TransformFromStorage(ctx context.Context, data []byte, dataCtx storagevalue.Context) (out []byte, stale bool, err error) { … }
func (u unionTransformers) TransformToStorage(ctx context.Context, data []byte, dataCtx storagevalue.Context) (out []byte, err error) { … }
func computeEncryptionConfigHash(data []byte) string { … }
var _ …
var _ …
type DynamicTransformers …
type transformTracker …
func NewDynamicTransformers(
transformerOverrides map[schema.GroupResource]storagevalue.Transformer,
kmsPluginHealthzCheck healthz.HealthChecker,
closeTransformers context.CancelFunc,
kmsCloseGracePeriod time.Duration,
) *DynamicTransformers { … }
func (d *DynamicTransformers) Check(req *http.Request) error { … }
func (d *DynamicTransformers) Name() string { … }
func (d *DynamicTransformers) TransformerForResource(resource schema.GroupResource) storagevalue.Transformer { … }
func (d *DynamicTransformers) Set(
transformerOverrides map[schema.GroupResource]storagevalue.Transformer,
closeTransformers context.CancelFunc,
kmsPluginHealthzCheck healthz.HealthChecker,
kmsCloseGracePeriod time.Duration,
) { … }
var _ …
type resourceTransformer …
func (r *resourceTransformer) TransformFromStorage(ctx context.Context, data []byte, dataCtx storagevalue.Context) ([]byte, bool, error) { … }
func (r *resourceTransformer) TransformToStorage(ctx context.Context, data []byte, dataCtx storagevalue.Context) ([]byte, error) { … }
func (r *resourceTransformer) transformer() storagevalue.Transformer { … }
var _ …
type StaticTransformers …
func (s StaticTransformers) TransformerForResource(resource schema.GroupResource) storagevalue.Transformer { … }
var anyGroupAnyResource …
func transformerFromOverrides(transformerOverrides map[schema.GroupResource]storagevalue.Transformer, resource schema.GroupResource) (out storagevalue.Transformer) { … }
func grYAMLString(gr schema.GroupResource) string { … }
var _ …
type requestInfoTransformer …
func newRequestInfoTransformer(resource schema.GroupResource, delegate storagevalue.Transformer) *requestInfoTransformer { … }
func (l *requestInfoTransformer) TransformFromStorage(ctx context.Context, data []byte, dataCtx storagevalue.Context) ([]byte, bool, error) { … }
func (l *requestInfoTransformer) TransformToStorage(ctx context.Context, data []byte, dataCtx storagevalue.Context) ([]byte, error) { … }
func (l *requestInfoTransformer) withBaseValueCtx(ctx context.Context) context.Context { … }
type joinValueContext …
func (j *joinValueContext) Value(key any) any { … }