Keyring Support¶
Secrets.env seamlessly integrates with the keyring library, providing a secure solution for managing credentials.
Enabling¶
Install secrets.env with extra keyring to enable this feature:
# for the first time installation
pipx install 'secrets.env[keyring]'
# if you have already installed secrets.env
pipx inject secrets.env 'secrets.env[keyring]'
pip install 'secrets.env[keyring]'
Tip
The dependencies is already satisfied when you install with poetry.
Environment variables¶
- SECRETS_ENV_NO_KEYRING¶
When set to
true, the keyring feature will be disabled.
Save credential to keyring¶
Use CLI command secrets.env set to save credential to keyring.
Read credential from keyring¶
This feature is used by Vault KV Provider for loading password.