runner.secrets

Tools to deal with secrets in derex.

Module Contents

class runner.secrets.DerexSecrets[source]

Bases: enum.Enum

minio = minio[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