Skip to content
This repository was archived by the owner on Dec 3, 2019. It is now read-only.

Commit 8086496

Browse files
Merge pull request #455 from OperationCode/remove_secret_key
remove secret_key, in place of environment variable
2 parents 5cebddf + daf121a commit 8086496

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

config/initializers/devise.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
# The secret key used by Devise. Devise uses this key to generate
55
# random tokens. Changing this key will render invalid all existing
66
# confirmation, reset password and unlock tokens in the database.
7-
# Devise will use the `secret_key_base` as its `secret_key`
8-
# by default. You can change it below and use your own secret key.
9-
config.secret_key = '34486348de8caa31dbf426f515084b3c4b33c15954ce1b0eb8f664f58eb68453ba7dd2603aa0a6a54ee816adcb5a72adca4564df5d772a7ae45ab1efbf814c9c'
7+
# Operation Code Comment:
8+
# We use "secret_key_base" as defined in "config/secrets.yml"
9+
# The development and test environments have the key publicly available
10+
# Production environment has the key tied to kubernetes as setup in our
11+
# infrastructure repo: https://github.com/OperationCode/operationcode_infra
12+
# config.secret_key = 'No Overide Set'
1013

1114
# ==> Mailer Configuration
1215
# Configure the e-mail address which will be shown in Devise::Mailer,

0 commit comments

Comments
 (0)