https://github.com/labd/python-param-store
Python module to store secrets in secret stores
https://github.com/labd/python-param-store
aws python security
Last synced: 10 months ago
JSON representation
Python module to store secrets in secret stores
- Host: GitHub
- URL: https://github.com/labd/python-param-store
- Owner: labd
- License: mit
- Created: 2017-04-18T10:45:45.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-21T18:36:12.000Z (about 5 years ago)
- Last Synced: 2025-07-11T06:43:10.377Z (12 months ago)
- Topics: aws, python, security
- Language: Python
- Homepage: https://blog.labdigital.nl/secure-your-secrets-using-python-param-store-and-aws-ssm-parameter-store-b6661c00a1f1
- Size: 43 KB
- Stars: 15
- Watchers: 7
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES
- License: LICENSE
Awesome Lists containing this project
README
===========
param-store
===========
param-store works with parameter stores (e.g. EC2 Parameter Store) to resolve specific parameters.
It is designed to be pluggable so that stores can be created for e.g. Vault or Azure Key Vault.
A use-case is to store secrets in the EC2 parameter store and resolve them automatically.
.. start-no-pypi
Status
======
.. image:: https://travis-ci.org/LabD/python-param-store.svg?branch=master
:target: https://travis-ci.org/LabD/python-param-store
.. image:: http://codecov.io/github/LabD/python-param-store/coverage.svg?branch=master
:target: http://codecov.io/github/LabD/python-param-store?branch=master
.. image:: https://img.shields.io/pypi/v/param-store.svg
:target: https://pypi.python.org/pypi/param-store/
.. end-no-pypi
Installation
============
.. code-block:: shell
pip install param-store
Usage
=====
As a standalone package
.. code-block:: python
from param_store import EC2ParameterStore
from param_store import interpolate_dict
data = {
'key': 'my-secret-{{ parameter-1 }}'
}
store = EC2ParameterStore()
result = interpolate_dict(data, store)
assert result[key] == 'my-secret-password'
In combination with django-environ
.. code-block:: python
from environ import Env
from param_store import EC2ParameterStore
from param_store.contrib import resolve_django_environ
env = Env()
store = EC2ParameterStore()
resolve_django_environ(env, store)