Skip to content

fix: repair crash-looping CLI flags, close values.yaml coverage gaps#6

Open
lakhansamani wants to merge 1 commit into
mainfrom
fix/cli-flag-coverage
Open

fix: repair crash-looping CLI flags, close values.yaml coverage gaps#6
lakhansamani wants to merge 1 commit into
mainfrom
fix/cli-flag-coverage

Conversation

@lakhansamani

Copy link
Copy Markdown
Contributor

Summary

  • --enable-totp-login/--enable-mfa/--enable-email-otp/--enable-sms-otp don't exist in the authorizer binary; cobra rejects unknown flags and exits 1, so every release from this chart currently crash-loops on boot. Renamed to the current --disable-totp-login/--disable-webauthn-mfa/--disable-email-otp/--disable-sms-otp/--disable-mfa flags.
  • Fixed COUCHBASE_RAM_QUOTA: the env var was defined as COUCHBASE_BUCKET_RAM_QUOTA while the args template read $COUCHBASE_RAM_QUOTA, so authorizer.couchbase_bucket_ram_quota in values.yaml silently never reached the flag.
  • Wired --url (CWE-640 host-header-injection mitigation): AUTHORIZER_URL was set as a pod env var but never passed as a CLI flag, so authorizer.authorizer_url in values.yaml was a no-op. Added --oauth2-1-strict and --enable-org-discovery, both previously missing entirely.
  • Exposed ~25 toggles in values.yaml that were previously hardcoded into the args template with no values.yaml key at all — enable_signup, enforce_mfa, app_cookie_secure, enable_basic_authentication, disable_admin_header_auth, and others. Operators had no way to override them; defaults are unchanged.
  • Added host, env, log_level as values.yaml keys (previously only settable by editing the template).
  • Re-pinned appVersion to 2.4.0-rc.7 and bumped chart version to 2.3.0: 2.3.0 predates the flag rename above, so it doesn't have the --disable-* flags either. Move to the stable 2.4.0 tag once it ships.

Test plan

  • helm lint . passes
  • helm template renders valid YAML with all values set; verified all 130 flags from cmd/root.go appear in the rendered args
  • Extracted the exact rendered Deployment args/env and ran them against the real quay.io/authorizer/authorizer:2.4.0-rc.7 image — container boots and serves /healthz (previously exited 1 on the phantom flags)
  • Deploy to a real cluster and confirm the pod reaches Ready

--enable-totp-login/--enable-mfa/--enable-email-otp/--enable-sms-otp
don't exist in the authorizer binary; cobra rejects unknown flags so
every release from this chart crash-loops on boot. Renamed to the
current --disable-totp-login/--disable-webauthn-mfa/--disable-email-otp/
--disable-sms-otp/--disable-mfa flags.

Fixed COUCHBASE_RAM_QUOTA: the env var was defined as
COUCHBASE_BUCKET_RAM_QUOTA while args read $COUCHBASE_RAM_QUOTA, so
couchbase_bucket_ram_quota silently never reached the flag.

Wired --url (CWE-640 host-header-injection mitigation): AUTHORIZER_URL
was set as an env var but never passed as a flag, so authorizer_url
in values.yaml was a no-op. Added --oauth2-1-strict and
--enable-org-discovery.

Exposed ~25 toggles in values.yaml that were previously hardcoded
into the args template with no values.yaml key at all (enable_signup,
enforce_mfa, app_cookie_secure, enable_basic_authentication,
disable_admin_header_auth, and friends) — operators had no way to
override them.

Re-pinned appVersion to 2.4.0-rc.7: 2.3.0 predates the flag rename
above, so it doesn't have the --disable-* flags either. Move to the
stable 2.4.0 tag once it ships.
@netlify

netlify Bot commented Jul 23, 2026

Copy link
Copy Markdown

Deploy Preview for authorizer-helm-chart ready!

Name Link
🔨 Latest commit 52fab55
🔍 Latest deploy log https://app.netlify.com/projects/authorizer-helm-chart/deploys/6a61946d6313fd000841efe4
😎 Deploy Preview https://deploy-preview-6--authorizer-helm-chart.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant