A database driver for Django to connect to an Informix db via ODBC, obtaining the credentials from Hashicorp Vault
Project description
Extends the database driver for Django django_informixdb to retrieve credentials from a Hashicorp Vault service.
Assumptions
This driver expects the credentials to be stored in a KV v2 secret in Vault, as keys username and password.
Supported Authentication
Two methods, with highest priority first: - K8s JWT - Basic Token
Settings Required
Do not provide USER and PASSWORD. Instead provide these settings:
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: kubernetes |
VAULT_K8S_JWT |
No |
The path to the JWT in a K8s container, default vault: /var/run/secrets/kubernetes.io/serviceaccount/token |
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: secret |
VAULT_TOKEN |
Conditional |
Provide the token if using basic token authentication to Vault |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django_informixdb_vault-0.2.1.tar.gz
.
File metadata
- Download URL: django_informixdb_vault-0.2.1.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 225508adebb920ed9e8ba75e6f3a5096ef5ccd7dd04ddf384e4906e12b034d32 |
|
MD5 | 51924cbd4744fd5b7991b7182565e5bd |
|
BLAKE2b-256 | 231178a1857c0f73e4aee47fe05b75625d627146b91c64ee463d6ca5c9b37d1e |