Skip to content

HYPERFLEET-1039 - fix: disable JWT auth in default chart values#128

Merged
openshift-merge-bot[bot] merged 1 commit into
openshift-hyperfleet:mainfrom
rh-amarin:HYPERLFEET-1039
May 8, 2026
Merged

HYPERFLEET-1039 - fix: disable JWT auth in default chart values#128
openshift-merge-bot[bot] merged 1 commit into
openshift-hyperfleet:mainfrom
rh-amarin:HYPERLFEET-1039

Conversation

@rh-amarin

@rh-amarin rh-amarin commented May 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Having JWT enabled should be the default option because of security reasons. We want to explicitly disable it in JWT in production.

But authz is not yet a closed topic and in this case the default option is making the e2e tests to fail

Summary by CodeRabbit

  • Chores
    • JWT authentication is now disabled by default in server configuration. Users requiring JWT must manually enable it.

@openshift-ci openshift-ci Bot requested review from Mischulee and tirthct May 8, 2026 10:42
@rh-amarin rh-amarin changed the title HYPERFLEET-1039 - fix: disable JWT auth in dafault chart values HYPERFLEET-1039 - fix: disable JWT auth in default chart values May 8, 2026
@coderabbitai

coderabbitai Bot commented May 8, 2026

Copy link
Copy Markdown

Walkthrough

The pull request modifies a single configuration default in the Helm values file. The config.server.jwt.enabled parameter default value is changed from true to false in charts/values.yaml, effectively disabling JWT authentication by default in the Helm chart configuration.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically identifies the main change: disabling JWT auth in default chart values, directly corresponding to the changeset modification.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@charts/values.yaml`:
- Line 52: Change the default for JWT so the chart is secure-by-default: set
config.server.jwt.enabled to true in values.yaml (instead of false) and keep any
JWT disabling only in test/CI-specific override files (e.g., values-e2e.yaml or
via --set) so real deployments do not default to unauthenticated operation.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: 1f2e5609-a76b-42bc-830c-5ed6acc85fef

📥 Commits

Reviewing files that changed from the base of the PR and between 1851e03 and 8e93d92.

📒 Files selected for processing (1)
  • charts/values.yaml

Comment thread charts/values.yaml

jwt:
enabled: true
enabled: false

@coderabbitai coderabbitai Bot May 8, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

Keep JWT enabled by default; disable it only in test overrides.

On Line 52, setting config.server.jwt.enabled: false makes unauthenticated operation the chart default, which is a high-risk auth regression if this value is used in real environments. Keep secure-by-default (true) and apply JWT disablement only in CI/E2E override values (-f values-e2e.yaml or --set) for test runs.

Suggested fix
     jwt:
-      enabled: false
+      enabled: true
       issuer_url: ""
       audience: ""

As per coding guidelines, "Focus on major issues impacting performance, readability, maintainability and security. Avoid nitpicks and avoid verbosity."

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
enabled: false
jwt:
enabled: true
issuer_url: ""
audience: ""
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@charts/values.yaml` at line 52, Change the default for JWT so the chart is
secure-by-default: set config.server.jwt.enabled to true in values.yaml (instead
of false) and keep any JWT disabling only in test/CI-specific override files
(e.g., values-e2e.yaml or via --set) so real deployments do not default to
unauthenticated operation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having JWT enabled should be the default option because of security reasons. We want to explicitly disable it in JWT in production.

But authz is not yet a closed topic and in this case the default option is making the e2e tests to fail

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rh-amarin, understood — the PR description captures the reasoning well. The concern here is that once this merges, any real deployment using default values will silently have JWT off, which is easy to miss.

A middle-ground that avoids changing the secure default would be to keep jwt.enabled: true in values.yaml and supply an override file specifically for CI/E2E runs:

# charts/values-e2e.yaml
config:
  server:
    jwt:
      enabled: false

Then CI/E2E pipelines pass -f charts/values-e2e.yaml (or --set config.server.jwt.enabled=false). This way:

  • Default chart values stay secure-by-default.
  • E2E tests are unblocked without touching production defaults.
  • When authz lands, removing the override is the only change needed.

Would you like me to open a GitHub issue to track the authz work and flip jwt.enabled back to true in defaults once it's resolved?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, thank you. I will do that when we decide on jwt

@ciaranRoche ciaranRoche left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci

openshift-ci Bot commented May 8, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ciaranRoche

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved label May 8, 2026
@openshift-merge-bot openshift-merge-bot Bot merged commit d2c0ca9 into openshift-hyperfleet:main May 8, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants