Please stop serving .git to the outside world
pythonsweetness.tumblr.com
Please stop serving .git to the outside world
1–10 of 91 posts
Re: Please stop serving .git to the outside world
#2Re: Please stop serving .git to the outside world
#3Re: Please stop serving .git to the outside world
#4Tech-savvy users can even be encouraged to pull the code and send patches. :)
Re: Please stop serving .git to the outside world
#5 # Don't expose hidden files to the web
location ~ /\. {
return 404;
}Re: Please stop serving .git to the outside world
#6To be clear (it wasn't mentioned explicitly in the blog post), but it's obviously what the author was referring to, this is about people who are deploying web sites with static content which is being managed via git.
Re: Please stop serving .git to the outside world
#7Re: Please stop serving .git to the outside world
#8I think there's nothing wrong with this if there aren't (and weren't) any secrets directly embedded in the source code and all configuration files that contain sensitive information are (and always were) properly gitignore'd. Tech-savvy users can even be encouraged to pull the code and send patches. :)
Re: Please stop serving .git to the outside world
#9I think there's nothing wrong with this if there aren't (and weren't) any secrets directly embedded in the source code and all configuration files that contain sensitive information are (and always were) properly gitignore'd. Tech-savvy users can even be encouraged to pull the code and send patches. :)
Somebody correct me if I'm wrong here, but doesn't the .git directory essentially contain the entire history of the repository? The history could easily contain sensitive information like passwords. It will contain names email addresses of contributors, too. Try it yourself: cat .git/logs/HEAD