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

Update security guide #8581

Merged
merged 1 commit into from Dec 21, 2012
Merged

Conversation

garysweaver
Copy link
Contributor

Updated security guide with information about secret_token.rb and to suggest securing sensitive files.

…suggest securing sensitive files like database.yml and secret_token.rb
guilleiguaran added a commit that referenced this pull request Dec 21, 2012
@guilleiguaran guilleiguaran merged commit 8ee1c26 into rails:master Dec 21, 2012
@garysweaver garysweaver deleted the security_guide_update branch December 21, 2012 20:04
@guilleiguaran
Copy link
Member

Thanks!!!

```
Newly generated applications get their `config.secret_key_base` (or in `environment.rb` in some past versions) initialized to a random key in `config/initializers/secret_token.rb`, e.g.:

Posts::Application.config.secret_token = 'dkfj3927dkc7djdh36rkckdfzsg...'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The text says config.secret_key_base, and the example secret_token. Is it correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Fixing now and trying to update a little.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix in #8584

Let me know if that works. Thanks for the review!

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

Successfully merging this pull request may close these issues.

None yet

3 participants