Skip to main content

Secure secrets and encryption manager for GCP Secret Manager, Vault, and KMS

Project description

README.md

vaultlock-py

PyPI version Downloads

vaultlock-py is a secure Python library designed to unify and simplify secret management, cryptographic key handling, and secure operations across Google Cloud Secret Manager, Google Cloud KMS, and HashiCorp Vault.

Built with DevSecOps, cloud-native security, and modern cryptographic best practices in mind, this library allows Python developers and cloud engineers to lock down secrets, encrypt sensitive data, and securely integrate external key management systems into their apps or CI/CD pipelines.

Features

vaultlock-py offers a powerful and unified key management interface that allows developers to manage, rotate, and retrieve secrets securely across platforms such as Google Cloud Secret Manager, HashiCorp Vault, and Google Cloud KMS. It supports end-to-end encryption using robust standards like AES-256, and enables envelope encryption with cloud-managed keys for enhanced security. The library includes a suite of command-line tools that make it easy to encrypt and decrypt files, manage secrets, and validate secure access from any environment. Designed with compliance and traceability in mind, vaultlock-py provides audit-friendly logging and access visibility, making it ideal for regulated environments. Its modular and extensible architecture ensures that users can selectively adopt components based on their infrastructure needs, whether they're working solely with Vault, KMS, or Secret Manager. Built with cloud-native principles, the library integrates seamlessly into modern CI/CD pipelines, Kubernetes clusters, and cloud-based applications.

Use Cases

  • Encrypting sensitive config files before storage.

  • Centralized secret retrieval in production microservices.

  • Secure data exchange across cloud environments.

  • Building compliance-aware automation for regulated industries.

Technologies Used

  • Google Cloud Secret Manager

  • HashiCorp Vault

  • Google Cloud KMS

  • HashiCorp Vault via hvac library

  • Python 3.8+

  • Follows PEP 621 and pyproject.toml standards

  • Designed for use in CI/CD and container environments

Installation

pip install vaultlock-py

CLI Usage

python -m vaultlock.cli --mode gcp --action create --project_id=my-project --path=my-secret --value=secret123

License

This README provides an overview, installation, usage examples (CLI and code), and a brief mention of how it works and license. In an actual project, one might expand the README with troubleshooting tips or more details on authentication.

MIT License

Copyright (c) 2025 Raghava Chellu

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

vaultlock_py-0.1.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

vaultlock_py-0.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file vaultlock_py-0.1.1.tar.gz.

File metadata

  • Download URL: vaultlock_py-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for vaultlock_py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1a3add35e9b4c826e8ecbdd1911cfd12ca91fbc2088aaf474f2135848fe2032c
MD5 d7c0303c03186eec6a853ed7d37b76a7
BLAKE2b-256 000441f1a68f21b52ac3727e5dd12a3e5c1bb200667c3333f0cfa23ac60fe74e

See more details on using hashes here.

File details

Details for the file vaultlock_py-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: vaultlock_py-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for vaultlock_py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6e395a26aeb0a33244efb963d2107a1d0689a8f6d32d92c256f36ec7bab81289
MD5 687a8e95bf82cb460e31094deed3f97d
BLAKE2b-256 476d61586ee0cf3392a14ec35d3ea7d5f3221a326325ec4eed8bc1d807daa8b5

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