A package to read secrets from Hashicorp vault or from a local file
Project description
getSecrets package
getSecrets is a simple package that reads from the given engine ('secret' by default) of a Hashicorp vault It can also read data from the local vault.yml file
usage:
from getSecrets import *
data = get_secret(<id>, [repo:<secret>])
usr, pwd = get_user_pwd(<id> , [repo:<secret>])
updater = update_secret(<id>, <new_object>, [repo:<secret>])
list = list_secret([<secret>]
Vault parameters are stored in a config file ~/.config/.vault/.vault.yml
vault:
token: "<access token>"
vault_addr: "https://vault:8200"
certs: "<path>/bundle.pem"
id:
item1: 1
item2: 2
username: user
password: !@•?
for reminder: bundle.pem, for own certificates, is made of, in this order:
- vault certificate
- intermediate certificate
- root certificate
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 get_hc_secrets-1.5.21.tar.gz.
File metadata
- Download URL: get_hc_secrets-1.5.21.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0831f4b5a9c3da4025e41281ee509e982d74bf60803d0f42acd6fbdbb18f34d
|
|
| MD5 |
40c678a1ac514f7b34cd006a88974215
|
|
| BLAKE2b-256 |
a2d5ae9f5f2d5ad31a79b9e6875cad0c5c299977e81a843acc7acf175e1f0e3e
|
File details
Details for the file get_hc_secrets-1.5.21-py3-none-any.whl.
File metadata
- Download URL: get_hc_secrets-1.5.21-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4eafeaa2bcb86c8a3d24fcacfb79bcb4f3f26f32f55794415507f44d65bf737b
|
|
| MD5 |
179373cfb534541eaed6d67712c143ce
|
|
| BLAKE2b-256 |
1012efb4ace6d161b3a61813945c6c980b3c199536a5d9b33b18892fd9f4d827
|