Skip to content

how to manage and deploy your secrets via sops and pgp encrypted into python scripts

Notifications You must be signed in to change notification settings

fschn90/example-SOPS-env-in-python

Repository files navigation

SOPS .env secrets in python script integration

This is an example on how to manage and deploy your .env secrets via sops and pgp encrypted into python scripts.

dependencies

  • sops
  • gnupg
  • pinentry

run install_dependencies.sh to install above dependencies for ubuntu. currently sops v3.8.1 is installed. please check here for latest release.

requirements

pgp key (generated with gnupg) without passphrase (for ease of use in automatically executed python scripts, works just as well with passphase for pgp key). public pgp key added to .env file via sops, readme here.

installation

run initial_setup.sh to create python venv and install python dependencies.

run script

via run.sh to ensure that venv is sourced.

further reading:

About

how to manage and deploy your secrets via sops and pgp encrypted into python scripts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published