Skip to main content

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


Download files

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

Source Distribution

get_hc_secrets-1.5.23.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

get_hc_secrets-1.5.23-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file get_hc_secrets-1.5.23.tar.gz.

File metadata

  • Download URL: get_hc_secrets-1.5.23.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for get_hc_secrets-1.5.23.tar.gz
Algorithm Hash digest
SHA256 03157f80909111167e69614404909a3ed949255a471093b96baf377a9de1bb87
MD5 77a4cac74ceabd5a984742a30481902b
BLAKE2b-256 bb9a5cd6fdc95af8a90954f5a7821825571a1e4515fb3622a7def88e2027d9c9

See more details on using hashes here.

File details

Details for the file get_hc_secrets-1.5.23-py3-none-any.whl.

File metadata

File hashes

Hashes for get_hc_secrets-1.5.23-py3-none-any.whl
Algorithm Hash digest
SHA256 04ec5d3c950e01bbde13cf3237fc49da9c86d1f4605b281b358a27555caaa855
MD5 1d7899e963cc00283288d12bd5a5c6c6
BLAKE2b-256 93de6cad8814de73496d5f60120d6f738c0d5b24a072c718cefec5013389d02a

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