This project is the old Ruby CLI for Heroku. This is the current CLI.
heroku / gpgenv Goto Github PK
View Code? Open in Web Editor NEWRead env vars from gpg-encrypted files
License: MIT License
Read env vars from gpg-encrypted files
License: MIT License
This project is the old Ruby CLI for Heroku. This is the current CLI.
Look at how sack implements profiles, as well as its installation process. gpgenv should have something similar:
I'm confused about the solution this gem brings that could be solved in a simpler way.
I particularly don't understand this section
I love pass, because it makes it easy to store passwords encrypted. But it doesn't make it easy to use them in any capacity other than copy-and-pasting them. I wrote gpgenv to bridge that gap:
Being drawn to pass
my self, I'm looking around the net, to see what other people are doing. I was thinking of using this approach in my deploy scripts:
heroku config:set SECRET_VAR=$(pass show MyApp/serviceA)
And for locally managed scripts:
SECRET_VAR=$(pass show MyApp/serviceA)
Even this would suffice:
heroku config:set SECRET_VAR=$(gpg -d ~/.password-store/MyApp/ServiceA)
Could you please describe in more detail what advantages the gpgenv
work flow brings?
As I feel i must be missing something here, thanks!
As long as we have to convert dotenv files, this won't get much traction. However, we could very likely do something like this:
This way we don't need to bother with dotenv at all.
Make sure gpgenv supports multiline values properly.
It still prompts for each file to be overwritten. Also, if vars are missing, those files don't get deleted - maybe have a flag for that too?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.