concourse / concourse-chart

Helm chart to install Concourse
Apache License 2.0
143 stars 176 forks source link

default `CONCOURSE_VAULT_AUTH_PARAM` to set if the corresponding secret is set #247

Closed aoldershaw closed 3 years ago

aoldershaw commented 3 years ago

Why do we need this PR?

223 introduced a breaking change - before, when the vault backend was set to approle, we'd set CONCOURSE_VAULT_AUTH_PARAM. now, it's only set if useAuthParam is explicitly set to true, since it defaults to false. this means that upgrading from 15.0.x -> 15.1.x unset that param, unless you knew to enable useAuthParam (which wasn't documented in the release notes).

it seems more sane to set the auth param if either you explicitly opt-in (by enabling useAuthParam) OR if you set the vault auth param in the secret, and didn't explicitly opt-out by setting useAuthParam to false

Changes proposed in this pull request

Contributor Checklist

Reviewer Checklist

This section is intended for the core maintainers only, to track review progress. Please do not fill out this section.

  • [ ] Code reviewed
  • [ ] Topgun tests run
  • [ ] Back-port if needed
  • [ ] Is the correct branch targeted? (master or dev)