Implementation of the Keyring backend code reading secrets from 1Password using onepassword-sdk.
The 1Password SDK requires a Service Account to authenticate. See the SDKs Get started section for details
pip install keyrings.onepassword
The backend will only activate if the OP_SERVICE_ACCOUNT_TOKEN
environment variable is set. By default, the backend will look for secrets in a vault called keyring
; this can be configured via the OP_KEYRING_BACKEND_VAULT
environment variable.
Use as a normal keyring backend. It is installed with priority 20 so it's likely going to be selected first.