keymanager

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyID = "root"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyManager

type KeyManager interface {
	// Returns a wrapping.Wrapper which can be used to perform key-related operations.
	Wrapper() wrapping.Wrapper
	// RetrievalToken is the material returned which can be used to source back the
	// encryption key. Depending on the implementation, the token can be the
	// encryption key itself or a token/identifier used to exchange the token.
	RetrievalToken() ([]byte, error)
}

type PassthroughKeyManager

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

func NewPassthroughKeyManager

func NewPassthroughKeyManager(key []byte) (*PassthroughKeyManager, error)

NewPassthroughKeyManager returns a new instance of the Kube encryption key. If a key is provided, it will be used as the encryption key for the wrapper, otherwise one will be generated.

func (*PassthroughKeyManager) RetrievalToken

func (w *PassthroughKeyManager) RetrievalToken() ([]byte, error)

RetrievalToken returns the key that was used on the wrapper since this key manager is simply a passthrough and does not provide a mechanism to abstract this key.

func (*PassthroughKeyManager) Wrapper

func (w *PassthroughKeyManager) Wrapper() wrapping.Wrapper

Wrapper returns the manager's wrapper for key operations.

Jump to

Keyboard shortcuts

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