No project description provided
Project description
Python Vault client
A simple client for read, list, write and delete secrets from Vault
INSTALLATION
pip install tiny_vaultclient
or with poetry
poetry add tiny_vaultclient
USAGE
look in main.py
.env this env vars are available with sabe defaults
| Variable | default value | Description |
|---|---|---|
| VAULT_HOSTPORT | http://localhost:8200 | url for vault endpoint |
| VAULT_PATH | "kubernetes-access" | path in Authentication Methods |
| VAULT_ROLE | "my-api" | Role asociated to service account in kubernetes |
| VAULT_MOUNTPOINT | secret | Fixed muuntpoint for kv stores like /services or /apis |
| VAULT_SSL_VERIFY | True | Wheather or not verify the ssl certificate, useful for self signed certs |
Uninstall/Remove
pip uninstall tiny_vaultclient
TEST
spin up a local vault instance using docker
export VAULT_ADDR='http://127.0.0.1:8200'
make vault-up
vault login devtoken
make vault-secret
HELP
cover/report Shows coverage Report
cover runs tests
cover/xml Creates coverage Report
deps config virtual env and install dependencies using poetry
docker-build Build docker image using latest as cache
docker-push Push docker image to remote ${IMAGE_REPOSITORY}
docker-test-bash test the docker image but gives yuou a shell
docker-test test file using docker image and .env variables
fix Fix code lints using black flake8 and isort
lint Show code lints using black flake8 and isort
local installs pre-commit hook (WIP)
printvars Prints make variables
vault-down Removes docker vault container
vault-secret Create a new version of secrets
vault-up Spin up a vault development server use it with export VAULT_ADDR='http://127.0.0.1:8200'
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
tinyvaultclient-0.1.6.tar.gz
(3.8 kB
view details)
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 tinyvaultclient-0.1.6.tar.gz.
File metadata
- Download URL: tinyvaultclient-0.1.6.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.2 Linux/6.2.0-33-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4fe0e4329f39e17a4e9d582ba4736daba8694b91e35aa050a978906e44bd362
|
|
| MD5 |
5c332ac86b25b35937cb958dd1654636
|
|
| BLAKE2b-256 |
afed1dedc5ac4a2fb96df8a2de0cfe3ce478bef69edc3ce0f8d07b8e7a5ee5d8
|
File details
Details for the file tinyvaultclient-0.1.6-py3-none-any.whl.
File metadata
- Download URL: tinyvaultclient-0.1.6-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.2 Linux/6.2.0-33-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7371b7510aa97ef1fdff70d411b039113857e58ca6302dcbfb36b7edbb457de5
|
|
| MD5 |
126e81f0409502fe4c473e4332aaa27e
|
|
| BLAKE2b-256 |
fe0f9796fa0984ae75482b14960012ba4c1df01d13e4cb93f3814a7951255f76
|