VaultStorage#
- class phalanx.storage.vault.VaultStorage#
Bases:
object
Create Vault clients for specific environments.
Methods Summary
get_vault_client
(env[, path_prefix])Return a Vault client configured for the given environment.
Methods Documentation
- get_vault_client(env, path_prefix=None)#
Return a Vault client configured for the given environment.
- Parameters:
env (
EnvironmentBaseConfig
) – Phalanx environment.path_prefix (
str
|None
, default:None
) – Path prefix within Vault for application secrets. If given, this overrides the path prefix in the environment configuration.
- Returns:
Vault client configured to manage secrets for that environment.
- Return type: