Remove keys and tokens from committed code
(and use ENV vars)
Slide 30
Slide 30 text
# Your secret key is used for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!
development:
secret_key_base: '04b10ac58bc552cd69ca04374fb39c63a2737367ad64fc9cc'
test:
secret_key_base: 'bba42c0a3010eff12fe90b88992879f0278373996f2c480e6'
production:
secret_key_base: '67ad64fc9ccc0f3da5e9098431fc0ff6fe9eebba42c0a3010'
/config/secrets.yml
Slide 31
Slide 31 text
# Your secret key is used for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!
development:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
test:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
production:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
/config/secrets.yml