Collect Kubernetes secrets into a python dictionary. For use by python applications running in Docker containers.
Install
Install package:
pip install mystiko
Usage
Assuming you have given Kubernetes a secret with key “db-password”:
from mystiko import k8s k8s_secrets = k8s.get_secrets() db_pwd = k8s_secrets['DB_PASSWORD']
The default secrets directory is /etc/secrets/. If you are using a different directory, supply it to the get_secrets function:
from mystiko import k8s k8s_secrets = k8s.get_secrets(directory='/your/directory/')
Name
“Kubernetes” is Greek for “helmsman” or “pilot.” Following that theme, “mystiko” is Greek for “secret.”
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mystiko-0.2.tar.gz
(1.9 kB
view details)
File details
Details for the file mystiko-0.2.tar.gz.
File metadata
- Download URL: mystiko-0.2.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c55a293ea2acbe23e04a914749c2e0c948b13e135f5c2a42d55b3358b64d5a2c
|
|
| MD5 |
5a9edd373ff70fbe32399d63570f71e1
|
|
| BLAKE2b-256 |
ef114009804dfe81ffba4a1e6e3768ecb45a41d91e8486a40c2da4c5af69a105
|