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 ¶
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
Click to show internal directories.
Click to hide internal directories.