runner.secrets

Tools to deal with secrets in derex.

Module Contents

Classes

DerexSecrets

Generic enumeration.

Functions

get_secret(secret: DerexSecrets) → str

Derive a secret using the master secret and the provided name.

compute_entropy(s: str) → float

Get entropy of string s.

Attributes

MASTER_SECRET

The main secret derex uses to derive all other secrets

class runner.secrets.DerexSecrets[source]

Bases: enum.Enum

Generic enumeration.

Derive from this class to define new enumerations.

minio = minio[source]
mysql = mysql[source]
mongodb = mongodb[source]
runner.secrets.get_secret(secret: DerexSecrets)str[source]

Derive a secret using the master secret and the provided name.

exception runner.secrets.DerexSecretError[source]

Bases: ValueError

The master secret provided to derex is not valid or could not be found.

Initialize self. See help(type(self)) for accurate signature.

runner.secrets.compute_entropy(s: str)float[source]

Get entropy of string s. Thanks Rosetta code! https://rosettacode.org/wiki/Entropy#Python:_More_succinct_version

runner.secrets.MASTER_SECRET[source]

The main secret derex uses to derive all other secrets