hi my name is cowboy
during the day i write enterprise software
during the evening i make music
pro tip: if you feel you have to add a comment that says /* Valid JavaScript */
it's enterprise ready
Some bot stuff I'm fooling around with.
hi my name is cowboy
during the day i write enterprise software
during the evening i make music
pro tip: if you feel you have to add a comment that says /* Valid JavaScript */
it's enterprise ready
Right now, I want to avoid using a separate system for managing secrets, because I have very few of them. To that end, I'm using ansible-vault to encrypt a vault.yml ansible vars file that gets committed with the project.
The idea is that, since all the secrets I care about are already stored in a .gitignored .env
file that my app also consumes as if they were environment vars, via the dotenv lib, I can just programmatically convert the .env
file, which looks something like this:
SECRET_ONE=some_secret_value
SECRET_TWO=another_secret_value
...
Into the vault.yml
ansible vars file, which looks something like this:
---
vault_env: |
SECRET_ONE=some_secret_value
SECRET_TWO=another_secret_value
...
That gets used in an upstart script template file like so, effectively making them actual environment vars for the app process to use:
...
{% for key in vault_env.splitlines() %}
env {{key}}
{% endfor %}
...
script
/usr/bin/npm start --prefix {{site_path}}
end script
And I've created a fairly simple bash script that does the .env
-> vault.yml
-> encrypt so that updated secrets can be easily committed.
I might also make a decrypt-env.sh
script that reverses the process, creating a .env
file from the vault.yml
, to facilitate that process, should I need it.
But before I do that, does this approach make sense? /cc @tkellen @gnarf @MattSurabian
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.