Django通过ODBC连接到Informix db的数据库驱动程序,从Hashicorp Vault获取凭据
django-informixdb-vault的Python项目详细描述
扩展DjangoDjango_informixdb的数据库驱动程序,以从Hashicorp保险库服务中检索凭证。在
假设
此驱动程序希望凭据存储在保险库中的KV v2机密中,即密钥用户名和密码。在
支持的身份验证
两种方法,优先级最高: -K8s JWT -基本令牌
需要设置
不要提供用户和密码。请改为提供以下设置:
Setting | Required | Description |
---|---|---|
VAULT_ADDR | Yes | The HTTPS endpoint for Vault |
VAULT_PATH | Yes | The path in Vault to the KV v2 secret storing the Informix credentials |
VAULT_K8S_AUTH_MOUNT_POINT | No | The Vault mount point to use for Kubernetes authentication, default value: ^{tt1}$ |
VAULT_K8S_JWT | No | The path to the JWT in a K8s container, default vault: ^{tt2}$ |
VAULT_K8S_ROLE | Conditional | Provide the K8s role if using K8s JWT authentication to Vault |
VAULT_KVV2_MOUNT_POINT | No | The Vault mount point to use for KVv2 secrets, default value: ^{tt3}$ |
VAULT_TOKEN | Conditional | Provide the token if using basic token authentication to Vault |
- 项目
标签: