k8ssecretsstorage

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sProvider

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

K8sProvider is the secret provider to be used for K8s Secrets mode. It makes secrets available to applications by:

  • Retrieving a list of required K8s Secrets
  • Retrieving all Conjur secrets that are referenced (via variable ID, a.k.a. policy path) by those K8s Secrets.
  • Updating the K8s Secrets by replacing each Conjur variable ID with the corresponding secret value that was retrieved from Conjur.

func NewProvider

func NewProvider(
	traceContext context.Context,
	retrieveConjurSecrets conjur.RetrieveSecretsFunc,
	sanitizeEnabled bool,
	config K8sProviderConfig,
) K8sProvider

NewProvider creates a new secret provider for K8s Secrets mode.

func (K8sProvider) Provide

func (p K8sProvider) Provide() (bool, error)

Provide implements a ProviderFunc to retrieve and push secrets to K8s secrets.

type K8sProviderConfig

type K8sProviderConfig struct {
	PodNamespace       string
	RequiredK8sSecrets []string
}

K8sProviderConfig provides config specific to Kubernetes Secrets provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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