gitlabhq/gitlabhq — pull request #4040 by smashwilson (2013-05-23 00:26:43+00:00)
Title: Security: keep the Rails secret token out of version control.

This patch stores the secret token in a `.gitignore`d file called ".secret", which is
created by the initializer if it doesn't exist. This keeps the Rails session token out of version control and deals with a security vulnerability.

For reference:

http://blog.phusion.nl/2013/01/04/securing-the-rails-session-secret/

http://blog.codeclimate.com/blog/2013/03/27/rails-insecure-defaults/ (Item 3)