secrets

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSecretJSON added in v0.0.2

func GetSecretJSON(i GetSecretJSONInput, log *zerolog.Logger) (string, error)

GetSecretJSON returns the secret JSON document as a string

func LookupJSONKey added in v0.0.2

func LookupJSONKey(key, JSONDoc string) (string, error)

LookupJSONKey Given a key and a JSONDoc string that is amap, return the value

func Sha256sum

func Sha256sum(s string) string

Types

type GetRemoteCredentialsInput

type GetRemoteCredentialsInput struct {
	// The AWS SecretManager secret identifier. ex: /path/to/y/secret
	AWSSMSecretID string
	// The JSON key to look up
	JSONKey string
}

type GetRemoteCredentialsOutput

type GetRemoteCredentialsOutput struct {
	//The sha256sum of the AWS SM secret json document
	SecretSha256sum string
	// Value retrieved using the JSON key
	JSONValue string
	// Sha256sum of the  retrieved using the JSON key
	JSONValueSha256sum string
}

GetRemoteCredentialsOutput The output includes the credentiols and the sha256 some of the username, toke and the AWS SM secret document. the sha256sum makes it easier to test and troubleshoot bad values without compromising the secure data

func GetRemoteCredentials

GetRemoteCredentials returns the remote credentials and sha256sums

type GetSecretJSONInput added in v0.0.2

type GetSecretJSONInput struct {
	// The AWS SecretManager secret identifier. ex: /path/to/my/secret
	AWSSMSecretID string
}

Jump to

Keyboard shortcuts

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