Skip to main content

A collection of CLI tools for managing HashiCorp Vault.

Project description

Vault Management Toolkit 🧰

A collection of CLI tools for managing, comparing, migrating, and rolling out HashiCorp Vault clusters, with support for OIDC authentication and Kubernetes rollouts.

License: GPL v3 Python Versions GitHub Issues codecov


Features

  • Secure OIDC Authentication for Vault clusters
  • Detailed Secret Comparison between Vault instances
  • Full RAFT Snapshot Migration with selective overrides
  • Kubernetes Rollout Management for Vault clusters
  • CLI entry point: vault-mgmt

Installation

Using pip (recommended)

pip install .
# or for development
pip install -e .

CLI Usage

The toolkit provides a unified CLI:

vault-mgmt [command] [options]

All commands support --help for more options.


Example Workflows

Compare Vaults

vault-mgmt compare --source-vault-addr ... --destination-vault-addr ... --output-file differences.csv

Sync Vaults with Overrides

vault-mgmt sync --source-vault-addr ... --destination-vault-addr ... --override-secrets differences.csv

Kubernetes Rollout

vault-mgmt rollout vault-namespace --vault-addr ... --kube-context ...

Development

  • Testing:
    pytest
    
  • Linting:
    ruff check .
    
  • Tox:
    tox
    

Dependencies

Package Version Description
hvac 2.3.0 Python client for HashiCorp Vault API
kubernetes 33.1.0 Python client for Kubernetes API
requests 2.32.4 Elegant HTTP library (dependency of hvac)
tqdm 4.67.1 Progress bar for loops and iterables
certifi 2025.6.15 Mozilla's root certificates for SSL/TLS
charset-normalizer 3.4.2 Character set/encoding detection
idna 3.10 Internationalized Domain Names in Applications
urllib3 2.5.0 HTTP client for Python (dependency of requests)

Project Structure

  • vault_mgmt/ — Main package with CLI and submodules:
    • cli.py — CLI entry point
    • compare.py — Vault comparison logic
    • sync.py — Vault migration/sync logic
    • rollout.py — Kubernetes rollout logic
    • manager.py — Shared management utilities

Links


License

GPL-3.0-only. See LICENSE.

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

vault_mgmt-1.0.0.tar.gz (25.5 kB view details)

Uploaded Source

Built Distribution

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

vault_mgmt-1.0.0-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file vault_mgmt-1.0.0.tar.gz.

File metadata

  • Download URL: vault_mgmt-1.0.0.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for vault_mgmt-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0b645ca6011524dc9e190285a73ca7e15723cf71967f4ae5f590aad57e073ee0
MD5 d9c7443cc0af640852903c148f765b90
BLAKE2b-256 1c71fac20f15f33c1949a0b111feb2758dfcd21cdae07a8699d0105cf5214777

See more details on using hashes here.

Provenance

The following attestation bundles were made for vault_mgmt-1.0.0.tar.gz:

Publisher: release.yml on jbouse/vault-mgmt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vault_mgmt-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: vault_mgmt-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for vault_mgmt-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3d1e5c4727e514c73c765bc99657ee6847fbb887f9126f15e3bbc7732dea7c3
MD5 036c85531c810be5e425468af3ed4b28
BLAKE2b-256 73b0c5188fd5b38280857f7be1f118c5abd504614cde4e4c22fbb99f2c64522b

See more details on using hashes here.

Provenance

The following attestation bundles were made for vault_mgmt-1.0.0-py3-none-any.whl:

Publisher: release.yml on jbouse/vault-mgmt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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