Dead simple HashiCorp Vault consumer client
Project description
Vault Client
Vault Client is designed to be a dead simple client library for Vault consumer applications. The purpose is to implement a robust Vault client that makes it easy for developers to instrument HashiCorp Vault into applications.
All implementations of Vault Client will use a common API. After configuring
Vault authentication, the developer simply needs to replace the location of a
needed secret in their code with the appropriate read method. The Vault
Client object will handle authentication renewal and secret / lease renewal.
Quick Start Example
Java
String dbUser;
String dbPass;
VaultClient vault = new VaultClient();
vault.setAuthMethod("gcp");
vault.setAuthRole("app_name");
vault.setVaultAddr("https://myvault.company.org");
dbUser = vault.read("database/creds/my-role", "username");
dbPass = vault.read("database/creds/my-role", "password");
Python
vault = VaultClient(
vault_addr="https://myvault.company.org",
auth_method="gcp",
auth_role="app_name",
)
db_user = vault.read("database/creds/my-role", "username")
db_pass = vault.read("database/creds/my-role", "password")
Feature Matrix
| Java | Python | C#/.NET | |
|---|---|---|---|
| Language Support | ⚠️ | ⚠️ | ❌ |
| Auth Renewal (Async) | 🚧 | 🚧 | ❌ |
| Generic Read | ✅ | ✅ | ❌ |
| KV Read | ✅ | ✅ | ❌ |
| Lease Renewal (Async) | ✅ | ✅ | ❌ |
| JWT Auth | ✅ | ✅ | ❌ |
| GCP Auth (GCE) | ✅ | ✅ | ❌ |
| Azure Auth | 🚧 | ❌ | ❌ |
| AppRole Auth | ❌ | ❌ | ❌ |
| TLS Auth | ❌ | ❌ | ❌ |
✅ - Implemented
❌ - Not implemented
⚠️ - Partially implemented
🚧 - Under construction
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple-vault-client-0.0.1.tar.gz.
File metadata
- Download URL: simple-vault-client-0.0.1.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.7.7 Darwin/20.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
721c264f22d34ffe8f23b61843e2e36dcb85dcefddb4e6aa41fd8f9e2f710874
|
|
| MD5 |
ea8b966e9386938d5495ca91b5891647
|
|
| BLAKE2b-256 |
083f94246797ee7de0b48b22e9543004b4ce22fb15780fa1e2d64f94fef63474
|
File details
Details for the file simple_vault_client-0.0.1-py3-none-any.whl.
File metadata
- Download URL: simple_vault_client-0.0.1-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.7.7 Darwin/20.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc59bc54162504efbb14da05bbb7d1ce0067d5fb0001eb85561cdee7f39077a8
|
|
| MD5 |
1c1a58cbb000b4a0a0957d072bc99079
|
|
| BLAKE2b-256 |
9588ddc673ff7da882a8fa9137c869e6aea49a79e74f1de226147ecf4f83196a
|