Skip to content

Commit

Permalink
Search the ENV for SECRET_KEY_BASE or fall back to a default
Browse files Browse the repository at this point in the history
  • Loading branch information
rickychilcott committed Oct 11, 2017
1 parent 4c9399a commit 28ce4e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Application < Rails::Application
MAKEPKGINFO = Pathname.new("/usr/local/munki/makepkginfo")

# A secret is required to generate an integrity hash for cookie session data
config.secret_token = "407738ccc1518e5a71714d7dc16365c424732e543d791c22bffca1d6d8ac6949e08688836cc69635dc29a8d48b607bd73cb26bcad384c1fbecee44f552f8070c"
config.secret_token = ENV.fetch("SECRET_KEY_BASE", "407738ccc1518e5a71714d7dc16365c424732e543d791c22bffca1d6d8ac6949e08688836cc69635dc29a8d48b607bd73cb26bcad384c1fbecee44f552f8070c")

# Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters << :password
Expand Down

0 comments on commit 28ce4e6

Please sign in to comment.