Re:Please stop serving .git to the outside world
by stouset on Monday June 10, 2013 @10:41AM
(#5854684)
Stop putting shit like this in your repo. Developers should not have access to credentials that make their way onto production.
Re:Please stop serving .git to the outside world
by beaumartinez on Monday June 10, 2013 @11:33AM
(#5855066)
So how else should they handle them? Assuming the repo is private, keeping keys in the repo is the most frictionless way to ensure everyone has everything set up correctly.
Environment variables get annoying quickly if you ever need different ones for different projects, and if you create a shell script (or Vagrantfile) to do it for you, you're still keeping the keys in the repo.
Re:Please stop serving .git to the outside world
by marshray on Monday June 10, 2013 @10:46PM
(#5859301)
> Assuming the repo is private
Git is designed to facilitate sharing. Repos are a poor tool for managing secrets, especially intermixed with a general software project.
Use something else for secrets. Ideally you would generate the secret on the same server on which it will be used and not move it over the network (except for a one-off backup).
Re:Please stop serving .git to the outside world
by dllthomas on Monday June 10, 2013 @10:40PM
(#5859267)
Put them in deployment-specific configuration files.
Re:Please stop serving .git to the outside world
by andrewflnr on Monday June 10, 2013 @07:40PM
(#5858366)
Granted, that stuff shouldn't be in the repo, but some of us are both dev and ops, or just working on our personal site. Chill out.
Worse still, they could be using passwords in an external service (eg, for a database) and have included those as well.