apiserverk8s.io/apiserver/pkg/server/options/encryptionconfig Index | Files

package encryptionconfig

import "k8s.io/apiserver/pkg/server/options/encryptionconfig"

Index

Functions

func GetAESPrefixTransformer

func GetAESPrefixTransformer(config *apiserverconfig.AESConfiguration, fn BlockTransformerFunc, prefix string) (value.PrefixTransformer, error)

GetAESPrefixTransformer returns a prefix transformer from the provided configuration. Returns an AES transformer based on the provided prefix and block transformer.

func GetKMSPluginHealthzCheckers

func GetKMSPluginHealthzCheckers(filepath string) ([]healthz.HealthChecker, error)

GetKMSPluginHealthzCheckers extracts KMSPluginProbes from the EncryptionConfig.

func GetPrefixTransformers

func GetPrefixTransformers(config *apiserverconfig.ResourceConfiguration) ([]value.PrefixTransformer, error)

GetPrefixTransformers constructs and returns the appropriate prefix transformers for the passed resource using its configuration.

func GetSecretboxPrefixTransformer

func GetSecretboxPrefixTransformer(config *apiserverconfig.SecretboxConfiguration) (value.PrefixTransformer, error)

GetSecretboxPrefixTransformer returns a prefix transformer from the provided configuration

func GetTransformerOverrides

func GetTransformerOverrides(filepath string) (map[schema.GroupResource]value.Transformer, error)

GetTransformerOverrides returns the transformer overrides by reading and parsing the encryption provider configuration file

func ParseEncryptionConfiguration

func ParseEncryptionConfiguration(f io.Reader) (map[schema.GroupResource]value.Transformer, error)

ParseEncryptionConfiguration parses configuration data and returns the transformer overrides

Types

type BlockTransformerFunc

type BlockTransformerFunc func(cipher.Block) value.Transformer

BlockTransformerFunc takes an AES cipher block and returns a value transformer.

Source Files

config.go

Version
v0.17.10-rc.0
Published
Jul 15, 2020
Platform
js/wasm
Imports
21 packages
Last checked
now

Tools for package owners.