pkg

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsKmsProvider

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

AwsKmsProvider is an implementation of the K8 KMS provider specification https://kubernetes.io/docs/tasks/administer-cluster/kms-provider/

In this implemenation we are using AWS KMS's encryption functionality to convert the plaintext into a ciphertext that is capable of being stored securely.

func NewAwsKmsProvider

func NewAwsKmsProvider(cfg *AwsKmsProviderConfiguration) (*AwsKmsProvider, error)

NewAwsKmsProvider is a helper for generating a new KMS Key proxy that provide sensible defaults

func (AwsKmsProvider) Decrypt

Decrypt is responsible for converting the *v1beta1.DecryptRequest.Cipher into a plaintext representation K8 itself.

func (AwsKmsProvider) Encrypt

Encrypt is responsible for taking the plaintext from *v1beta1.EncryptRequest.Plain and transparently encrypting the value for K8.

func (AwsKmsProvider) Version

Version returns API information to consumers (primarily just the K8 masters themselves )

type AwsKmsProviderConfiguration

type AwsKmsProviderConfiguration struct {
	// KeyId is the identifier for KMS key to use for encryption.
	// Can be either the Key ARN or the Key ID.
	// NOTE: Key Alias support is currently not implemented with the existing
	// validation logic
	KeyId *string

	// AwsRegion is the specifier on which AWS Region the KMS key resides in.
	AwsRegion *string
}

AwsKmsProviderConfiguration allows for the customization of the KMS provider with some sensible defaults

Jump to

Keyboard shortcuts

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