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.22.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.22-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: get_hc_secrets-1.5.22.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.22.tar.gz
Algorithm Hash digest
SHA256 322c8ce46fa160d1389e9b6e796151b75c6278884bdc3ffc69a3e35b616e5c60
MD5 4a994011f868498407db67e16a90b3cf
BLAKE2b-256 80db8d3a80eb227f252bb08721b8f62e0ef00715dbaa24c688a119dcedddba62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for get_hc_secrets-1.5.22-py3-none-any.whl
Algorithm Hash digest
SHA256 130eb1c0526bb09c8afd7ef0fbfc09882e21af552cfe7e087467e21ed013e7a2
MD5 0a1da817de57bbe5c5e3570781b7c9cf
BLAKE2b-256 e90194f17764eda056f8e98a5fe0927a839bf147a607716f70b4633f97154579

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