BigW Consortium Gitlab

  1. 03 Aug, 2016 3 commits
    • Give priority to environment variables · 90565b5f
      Sean McGivern authored
      If an environment variable exists for secret_key_base, use that -
      always. But don't save it to secrets.yml.
      
      Also ensure that we never write to secrets.yml if there's a non-blank
      value there.
    • Store all secret keys in secrets.yml · 379c2cbc
      Sean McGivern authored
      Move the last secret from .secret to config/secrets.yml, and delete
      .secret if it exists.
    • Store OTP secret key in secrets.yml · 405379bb
      Sean McGivern authored
      .secret stores the secret token used for both encrypting login cookies
      and for encrypting stored OTP secrets. We can't rotate this, because
      that would invalidate all existing OTP secrets.
      
      If the secret token is present in the .secret file or an environment
      variable, save it as otp_key_base in secrets.yml. Now .secret can be
      rotated without invalidating OTP secrets.
      
      If the secret token isn't present (initial setup), then just generate a
      separate otp_key_base and save in secrets.yml.
      
      Update the docs to reflect that secrets.yml needs to be retained past
      upgrades, but .secret doesn't.
  2. 31 Jul, 2016 1 commit
  3. 24 Jul, 2016 1 commit
  4. 21 Jul, 2016 2 commits
  5. 01 Jul, 2016 1 commit
  6. 30 Jun, 2016 2 commits
  7. 24 Jun, 2016 1 commit
  8. 04 May, 2016 1 commit
    • Add tests for setting trusted_proxies · e37b3145
      DJ Mountney authored
      Each test reloads the trusted_proxies initializer, which in turn will set Rails.application.config.action_dispatch.trusted_proxies to something new. This will leak into the other tests, but the middleware that it is used in has already been loaded for the whole test suite, so it should have no impact.
  9. 18 Jan, 2016 1 commit