Re:Way to store your dotfiles: A bare Git repository (2016)
by personjerry on Saturday April 06, 2019 @02:51PM
(#19592364)
This could lead to a potential security issue. Imagine there's a misconfiguration in your dotfiles -- now it's public.
[ Parent
| on HN ]
Re:Way to store your dotfiles: A bare Git repository (2016)
by thingfox on Sunday April 07, 2019 @12:48AM
(#19594885)
This is why i recommend not committing actual dotfiles but committing templates instead.
Yadm, a thin wrapper around git allows for alternate files, encryption and templating. See my post https://news.ycombinator.com/item?id=19594859
https://github.com/thingfox/dotfiles
https://yadm.io/docs/encryption
Re:Way to store your dotfiles: A bare Git repository (2016)
by jdormit on Saturday April 06, 2019 @09:11PM
(#19594122)
Who says your git repo has to be public? Use a GitHub private repo, host the repo yourself behind SSH on a $5 Digital Ocean droplet, use the free private repos that come with Gitlab.com... securing git repositories is a solved problem.
Re:Way to store your dotfiles: A bare Git repository (2016)
by dewey on Saturday April 06, 2019 @03:00PM
(#19592408)
There's a lot of dotfiles on Github and it doesn't seem to be a problem (Except if you check in private credentials, but that's not a problem unique to dotfiles).
If you rely on your configuration to be secret to be secure it's just security by obscurity and not worth much anyway.
Re:Way to store your dotfiles: A bare Git repository (2016)
by personjerry on Saturday April 06, 2019 @03:06PM
(#19592437)
> If you rely on your configuration to be secret to be secure it's just security by obscurity and not worth much anyway.
What I had in mind is that the average person wouldn't be a target, but publicly declaring their security vulnerability would attract attacks they wouldn't receive otherwise.
Re:Way to store your dotfiles: A bare Git repository (2016)
by intertextuality on Saturday April 06, 2019 @11:53PM
(#19594728)
Only key harvester bots on GitHub/etc would notice. If you’re being consciously attacked by someone then you have bigger problems to deal with.
The solution isn’t particularly hard either, simply source a secrets file and make sure you add that to the gitignore file.