confidant package¶
Subpackages¶
- confidant.authnz package
- confidant.clients package
- confidant.lib package
- confidant.models package
- confidant.routes package
- Submodules
- confidant.routes.blind_credentials module
- confidant.routes.certificates module
- confidant.routes.credentials module
- confidant.routes.identity module
- confidant.routes.jwks module
- confidant.routes.saml module
- confidant.routes.services module
- confidant.routes.static_files module
- Module contents
- confidant.schema package
- confidant.scripts package
- confidant.services package
- Submodules
- confidant.services.certificatemanager module
- confidant.services.ciphermanager module
- confidant.services.credentialmanager module
- confidant.services.graphite module
- confidant.services.iamrolemanager module
- confidant.services.jwkmanager module
- confidant.services.keymanager module
- confidant.services.servicemanager module
- confidant.services.webhook module
- Module contents
- confidant.utils package
Submodules¶
confidant.app module¶
- confidant.app.create_app()¶
confidant.encrypted_settings module¶
- class confidant.encrypted_settings.EncryptedSettings(secret_string, kms_url)¶
Bases:
object
- _bootstrap(secrets)¶
Decrypt secrets and return a dict of secrets. Uses KMS to decrypt.
- get_all_secrets()¶
- get_secret(name)¶
- register(name, default)¶
Lazy setup things that we want to get if we have kms
- registered(name)¶
confidant.settings module¶
- exception confidant.settings.SettingsError¶
Bases:
Exception
- confidant.settings.bool_env(var_name, default=False)¶
Get an environment variable coerced to a boolean value. Example:
- Bash:
$ export SOME_VAL=True
- settings.py:
SOME_VAL = bool_env(‘SOME_VAL’, False)
- Arguments:
var_name: The name of the environment variable. default: The default to use if var_name is not specified in the
environment.
- Returns: var_name or default coerced to a boolean using the following
- rules:
“False”, “false” or “” => False Any other non-empty string => True
- confidant.settings.float_env(var_name, default=0.0)¶
Get an environment variable coerced to a float value. This has the same arguments as bool_env. If a value cannot be coerced to a float, a ValueError will be raised.
- confidant.settings.get(name, default=None)¶
Get the value of a variable in the settings module scope.
- confidant.settings.int_env(var_name, default=0)¶
Get an environment variable coerced to an integer value. This has the same arguments as bool_env. If a value cannot be coerced to an integer, a ValueError will be raised.
- confidant.settings.str_env(var_name, default='')¶
Get an environment variable as a string. This has the same arguments as bool_env.