Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python package to perform Pulumi-compatible passphrase encryption/decryption #19

Open
sammck opened this issue May 17, 2022 · 0 comments

Comments

@sammck
Copy link

sammck commented May 17, 2022

If it's interesting to the community, I have published a small, self-contained python library and command line tool that can directly encrypt and decrypt secrets in a way that is compatible with the passphrase provider.

This package was originally developed as part of a solution to work around a limitation of the current pulumi release--there is currently no easy way to get/set nonsecret config properties or stack deployment outputs without knowing the correct passphrase, even if the passphrase is irrelevant for that task. By directly implementing a private version of pulumi config and pulumi stack output it is possible to defer use of the passphrase until it is needed, and allow working with encrypted inputs/outputs as well as nonsecret inputs and outputs, without knowledge of the passphrase. It is also helpful for automating construction of stack config files before a stack exists.

PyPi details here: https://pypi.org/project/pulumi-crypto/.
GitHub repo here: https://github.com/sammck/pulumi-crypto.

@sammck sammck changed the title Python package to perform Pulumi-compatible passphrase encryption/decruption Python package to perform Pulumi-compatible passphrase encryption/decryption May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant