Skip to content

Releases: Clever/stealth

v0.2.0

15 Jul 15:17
9516a45
Compare
Choose a tag to compare

v0.1.3

08 Feb 19:42
Compare
Choose a tag to compare

v0.1.3

v0.1.2

06 Jan 22:41
79e4ebc
Compare
Choose a tag to compare

v0.1.2

v0.1.1

10 Dec 00:23
4981911
Compare
Choose a tag to compare

v0.1.1

v0.1.0

09 Dec 04:52
1e15dd0
Compare
Choose a tag to compare

Added a secret store that implements the following based on AWS SSM Parameter store.

type SecretStore interface {
	// Creates a Secret in the secret store. Version is guaranteed to be zero if no error is returned.
	Create(id SecretIdentifier, value string) error

	// Read a Secret from the store. Returns the lastest version of the secret.
	Read(id SecretIdentifier) (Secret, error)

	// ReadVersion reads a specific version of a secret from the store.
	// Version is 0-indexed
	ReadVersion(id SecretIdentifier, version int) (Secret, error)

	// Updates a Secret from the store and increments version number.
	Update(id SecretIdentifier, value string) (Secret, error)

	// List gets secrets within a namespace (env/service)>
	List(env Environment, service string) ([]SecretIdentifier, error)

	// ListAll gets all secrets within a environment (env)>
	ListAll(env Environment) ([]SecretIdentifier, error)

	// History gets history for a secret, returning all versions from the store.
	History(id SecretIdentifier) ([]SecretMeta, error)

	// Delete deletes all versions of a secret
	Delete(id SecretIdentifier) error
}