test/dummy/config/secrets.yml in killbill-kpm-0.2.0 vs test/dummy/config/secrets.yml in killbill-kpm-0.3.0
- old
+ new
@@ -3,20 +3,30 @@
# Your secret key is used for verifying the integrity of signed cookies.
# 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.
-# You can use `rake secret` to generate a secure secret key.
+# You can use `rails secret` to generate a secure secret key.
# Make sure the secrets in this file are kept private
# if you're sharing your code publicly.
+# Shared secrets are available across all environments.
+
+# shared:
+# api_key: a1B2c3D4e5F6
+
+# Environmental secrets are only available for that specific environment.
+
development:
- secret_key_base: 8ccbf616967018087a9cb2f1b4c2b4743e1325e9919037d961caa253f15e64752ca390b1ed029c6f2c493bb86d18929c38553d452a51379935fc98e59da0eba2
+ secret_key_base: d7caac0cf08f36249db501a04cfd7209387362e2b76523bd28456e4ea57b0970e05f3f5c54d8f41a28ed8dcdf811dc11212cad6222654f7077cd56cc4ef049a5
test:
- secret_key_base: 7cef8be3acaa03d7b323cdd703f4fc31ec659597aee08a0974601e3777832ff61b9866bbe6143efc43e7dfafb3c0f1ec24503ecceb77704712c244acbcaaa410
+ secret_key_base: c1a5a88127a62f1309ab4cf6a991e730fdc9cad7981724fd97dac70a0265c374f5001750b5a05309808aa4534534ad2ffac576491e2452582e2c8279a37e16ef
-# Do not keep production secrets in the repository,
-# instead read values from the environment.
+# Do not keep production secrets in the unencrypted secrets file.
+# Instead, either read values from the environment.
+# Or, use `bin/rails secrets:setup` to configure encrypted secrets
+# and move the `production:` environment over there.
+
production:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>