Skip to main content

Dead simple HashiCorp Vault consumer client

Project description

Vault Client

Java Python

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


Download files

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

Source Distribution

simple-vault-client-0.0.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_vault_client-0.0.1-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

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

Hashes for simple-vault-client-0.0.1.tar.gz
Algorithm Hash digest
SHA256 721c264f22d34ffe8f23b61843e2e36dcb85dcefddb4e6aa41fd8f9e2f710874
MD5 ea8b966e9386938d5495ca91b5891647
BLAKE2b-256 083f94246797ee7de0b48b22e9543004b4ce22fb15780fa1e2d64f94fef63474

See more details on using hashes here.

File details

Details for the file simple_vault_client-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_vault_client-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cc59bc54162504efbb14da05bbb7d1ce0067d5fb0001eb85561cdee7f39077a8
MD5 1c1a58cbb000b4a0a0957d072bc99079
BLAKE2b-256 9588ddc673ff7da882a8fa9137c869e6aea49a79e74f1de226147ecf4f83196a

See more details on using hashes here.

Supported by

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