lambdaconf

package
v0.0.0-...-3bdb644 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareNewSecretFormatted

func PrepareNewSecretFormatted(now time.Time, lambdaConf LambdaConf) func(ctx context.Context, secretARN string, secretOld string) (secretNew string, _ error)

PrepareNewSecretFormatted returns the signature used in lambda to change a secret.

Based on LambdaConf, it will check if this secret entry is registered and what to rotate

func RandStringBytesRmndr

func RandStringBytesRmndr(source string, n int) string

RandStringBytesRmndr generates a password

Types

type JSONSecretRotationConf

type JSONSecretRotationConf struct {
	//By JSON key
	Keys map[string]JSONSecretRotationKeyConf
}

type JSONSecretRotationKeyConf

type JSONSecretRotationKeyConf struct {
	Constraint     constraint.Constraint
	Prefix         string `json:",omitempty"`
	WithTime       bool   `json:",omitempty"`
	AlphaNumLength uint8
}

type LambdaConf

type LambdaConf struct {
	//By secretARN
	Secrets map[string]JSONSecretRotationConf
}

LambdaConf is set in the lambda env var configuration. This is designed for JSON secrets where we want to rotate some of the values.

func (LambdaConf) Validate

func (c LambdaConf) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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