Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_informixdb_vault-0.5.4.tar.gz (10.6 kB view details)

Uploaded Source

File details

Details for the file django_informixdb_vault-0.5.4.tar.gz.

File metadata

File hashes

Hashes for django_informixdb_vault-0.5.4.tar.gz
Algorithm Hash digest
SHA256 08d31c7ed6118d0b942a27ac2ef6a413c19b4e98b3182d776b5357b9fcae9304
MD5 ede9ff09aa156ff0975118c5edb72ee7
BLAKE2b-256 5b009cd1795b96641a16dcecd8f3fff4ca6b2fbc7ab74418760a66cf82d82db4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page