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

Create an automated way to create .envs #7

Closed
senderle opened this issue Jul 2, 2019 · 2 comments
Closed

Create an automated way to create .envs #7

senderle opened this issue Jul 2, 2019 · 2 comments
Assignees
Labels
priority-high Implement this first

Comments

@senderle
Copy link
Collaborator

senderle commented Jul 2, 2019

Right now the process of configuring the .envs files is a pain. Mostly we just copy them around. Once we accidentally included them in a public git repo. (Yikes!!) These are bad solutions.

Ideally it would be possible to create a new deploy by cloning the repo and running a script that creates the env files for us, asking just a few targeted questions (like what the domain name should be). However...

This might raise security questions.

The more someone knows about how our DB passwords are being generated, the more likely they are to figure out a way to crack them. I have no idea what the best practice is when it come to this kind of thing. In theory, if the script uses a very secure method to generate the passwords, it's probably fine, but we should be careful.

The alternative would be to have the script ask for the passwords, and encourage users to generate their own using a trusted password generator. But that's less convenient, and of course users might make a bad choice of generator, or be really lazy and enter something like 12345. (That's probably just a venial sin in testing but it's a mortal sin in production.)

Still, the script will definitely have to ask for some things (like, at a minimum, the domain name) so that alternative isn't crazy.

Also

In an ideal world, the script would give two options -- default would be interactive question answering, but you could also pass values as flags, and if you pass flags for all the questions, it's totally automated, with no interaction.

@senderle senderle mentioned this issue Jul 2, 2019
5 tasks
@senderle senderle added the priority-high Implement this first label Jul 2, 2019
@senderle
Copy link
Collaborator Author

senderle commented Jul 2, 2019

This is also hard but important. :/

@senderle
Copy link
Collaborator Author

Hey see my note on slack — sorry to be annoying but I don't want to mark these as closed until the fix is in on the GitHub master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-high Implement this first
Projects
None yet
Development

No branches or pull requests

2 participants