secretmanager

package
v0.0.0-...-ebb33e4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const VersionID = "version_id"

Variables

This section is empty.

Functions

func NewSecreteManager

func NewSecreteManager(logger logger.Logger) secretstores.SecretStore

NewSecreteManager returns new instance of `SecretManagerStore`.

Types

type GcpSecretManagerMetadata

type GcpSecretManagerMetadata struct {
	Type                string `mapstructure:"type" json:"type"`
	ProjectID           string `mapstructure:"project_id" json:"project_id"`
	PrivateKey          string `mapstructure:"private_key" json:"private_key"`
	ClientEmail         string `mapstructure:"client_email" json:"client_email"`
	PrivateKeyID        string `mapstructure:"private_key_id" json:"private_key_id"`
	ClientID            string `mapstructure:"client_id" json:"client_id"`
	AuthURI             string `mapstructure:"auth_uri" json:"auth_uri"`
	TokenURI            string `mapstructure:"token_uri" json:"token_uri"`
	AuthProviderCertURL string `mapstructure:"auth_provider_x509_cert_url" json:"auth_provider_x509_cert_url"`
	ClientCertURL       string `mapstructure:"client_x509_cert_url" json:"client_x509_cert_url"`
}

type Store

type Store struct {
	ProjectID string
	// contains filtered or unexported fields
}

Store contains and GCP secret manager client and project id.

func (*Store) BulkGetSecret

BulkGetSecret retrieves all secrets in the store and returns a map of decrypted string/string values.

func (*Store) Close

func (s *Store) Close() error

func (*Store) Features

func (s *Store) Features() []secretstores.Feature

Features returns the features available in this secret store.

func (*Store) GetComponentMetadata

func (s *Store) GetComponentMetadata() map[string]string

func (*Store) GetSecret

GetSecret retrieves a secret using a key and returns a map of decrypted string.

func (*Store) Init

func (s *Store) Init(ctx context.Context, metadataRaw secretstores.Metadata) error

Init creates a GCP secret manager client.

Jump to

Keyboard shortcuts

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