secretsmanager

package
v6.7.3-0...-1f455d7 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPipelineSecretTemplate = "/concourse/{{.Team}}/{{.Pipeline}}/{{.Secret}}"
View Source
const DefaultTeamSecretTemplate = "/concourse/{{.Team}}/{{.Secret}}"

Variables

This section is empty.

Functions

func NewManagerFactory

func NewManagerFactory() creds.ManagerFactory

func NewSecretsManagerFactory

func NewSecretsManagerFactory(log lager.Logger, session *session.Session, secretTemplates []*creds.SecretTemplate) *secretsManagerFactory

Types

type Manager

type Manager struct {
	AwsAccessKeyID         string `long:"access-key" description:"AWS Access key ID"`
	AwsSecretAccessKey     string `long:"secret-key" description:"AWS Secret Access Key"`
	AwsSessionToken        string `long:"session-token" description:"AWS Session Token"`
	AwsRegion              string `long:"region" description:"AWS region to send requests to"`
	PipelineSecretTemplate string `` /* 186-byte string literal not displayed */
	TeamSecretTemplate     string `` /* 165-byte string literal not displayed */
	SecretManager          *SecretsManager
}

func (Manager) Close

func (manager Manager) Close(logger lager.Logger)

func (*Manager) Health

func (manager *Manager) Health() (*creds.HealthResponse, error)

func (*Manager) Init

func (manager *Manager) Init(log lager.Logger) error

func (*Manager) IsConfigured

func (manager *Manager) IsConfigured() bool

func (*Manager) MarshalJSON

func (manager *Manager) MarshalJSON() ([]byte, error)

func (*Manager) NewSecretsFactory

func (manager *Manager) NewSecretsFactory(log lager.Logger) (creds.SecretsFactory, error)

func (*Manager) Validate

func (manager *Manager) Validate() error

type SecretsManager

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

func NewSecretsManager

func NewSecretsManager(log lager.Logger, api secretsmanageriface.SecretsManagerAPI, secretTemplates []*creds.SecretTemplate) *SecretsManager

func (*SecretsManager) Get

func (s *SecretsManager) Get(secretPath string) (interface{}, *time.Time, bool, error)

Get retrieves the value and expiration of an individual secret

func (*SecretsManager) NewSecretLookupPaths

func (s *SecretsManager) NewSecretLookupPaths(teamName string, pipelineName string, allowRootPath bool) []creds.SecretLookupPath

NewSecretLookupPaths defines how variables will be searched in the underlying secret manager

Jump to

Keyboard shortcuts

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