mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-18 14:11:10 +00:00
Merge pull request #82 from openSUSE/review_140427_move_session_hash_secret_to_config
Remove insecure storage of cookies secret
This commit is contained in:
commit
8e8e5e4b23
2 changed files with 2 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ defaults: &defaults
|
|||
# errbit configuration, get your own instance: https://github.com/errbit/errbit
|
||||
#errbit_key: 123456789101112131415
|
||||
#errbit_host: errbit.exmaple.com
|
||||
cookies_secret_token: 'secretstringwhichshouldbechanged'
|
||||
|
||||
development:
|
||||
<<: *defaults
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@
|
|||
# If you change this key, all old signed cookies will become invalid!
|
||||
# Make sure the secret is at least 30 characters and all random,
|
||||
# no regular words or you'll be exposed to dictionary attacks.
|
||||
Osem::Application.config.secret_token = '49fe86302d3297fdccac1614834f3036841416b22d0ea0b04ae140ce512e1d736f4ef796b85097cce902760071838b10d1ac0e3cf02f55fd2d1031d4fce2f956'
|
||||
Osem::Application.config.secret_token = CONFIG['cookies_secret_token']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue