src.utils.vault

Module Contents

src.utils.vault.get_secrets(connection)[source]

Get secrets from Vault.

Parameters
connection: str

The application/connection to get secrets for.

Returns
requested secrets
src.utils.vault.get_vault_secret(url, token, path, mount_point, **kwargs)[source]

Get vault secrets to certain path in a dictionary.

Parameters
urlstr

Base URL of Vault server

tokenstr

Token to get access to Vault

pathstr

Relative path to location of secret

mount_pointstr

Mount point of address

Returns
dict

Dictionary with keys and value of a secret