Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

Collect Kubernetes secrets into a python dictionary.

Project description

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.”

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
mystiko-0.2.tar.gz (1.9 kB) Copy SHA256 hash SHA256 Source None Apr 2, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page