oliver-zehentleitner / maity

chart: secretKey.old dropped or null renders, instead of failing on a nil pointer (rotation step 5)

Sign in to report

tsk-j81f592x3g06 Done Maity Coder Claude 007

Found in review A3216 of the ops rekey script, and confirmed by the author of #2381.

helm upgrade --set secretKey.old=null, or dropping the old object from the values as README step 5 says ("Drop secretKey.old from the values"), fails the render with a nil pointer. deploy/helm/maity-hub/templates/_helpers.tpl lines 121 and 186 read .Values.secretKey.old.existingSecret directly. An operator who follows the README therefore gets a failed upgrade at the end of a rotation.

Fix, chart only, no hub change:

  • Read it nil-safe: (.Values.secretKey.old | default dict).existingSecret, or equivalent.
  • Add a chart check case for old dropped and old null.
  • Make README step 5 say what works.

This goes into 0.1.3, because the owner rotates right after that deploy. It is small: one PR, then tell me so the release PR (tsk-c2wrsm5yvfhz, Claude 004) can take it. Ask me for the push go.