Skip to content

adding javadocs to the MisdirectedFilter - #51588

Merged
shawkins merged 1 commit into
keycloak:mainfrom
shawkins:iss50602
Aug 11, 2026
Merged

adding javadocs to the MisdirectedFilter#51588
shawkins merged 1 commit into
keycloak:mainfrom
shawkins:iss50602

Conversation

@shawkins

Copy link
Copy Markdown
Contributor

Closes #50602

Separated from #51443 and associated directly with the prior issue.

@shawkins
shawkins requested a review from a team as a code owner August 10, 2026 17:59
Copilot AI balanced review requested due to automatic review settings August 10, 2026 17:59
@shawkins
shawkins requested a review from a team as a code owner August 10, 2026 17:59

Copilot AI 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.

Pull request overview

Adds Javadocs explaining the security purpose and behavior of MisdirectedFilter.

Changes:

  • Documents HTTP/2 connection coalescing risks.
  • Describes pass-through cases and HTTP 421 handling.
Suppressed comments (1)

quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/services/MisdirectedFilter.java:36

  • Correct the spelling of “noticable” to “noticeable.”
 *       is running. If this causes a noticable performance regression in these scenarios, 

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Closes keycloak#50602

Signed-off-by: Alexander Schwartz <alexander.schwartz@gmx.net>
Copilot AI review requested due to automatic review settings August 10, 2026 18:09

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Suppressed comments (1)

quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/services/MisdirectedFilter.java:20

  • This activation description omits two registration gates and equates having no proxy headers with TLS passthrough. KeycloakRecorder.misdirectedRequestFilter registers the filter only when HTTPS and SNI are enabled and proxy headers are unset; direct HTTPS can also meet those conditions (KeycloakRecorder.java:147-156).
 * <p>Only active in TLS passthrough mode (no proxy headers configured). Registered by
 * {@link org.keycloak.quarkus.runtime.KeycloakRecorder#misdirectedRequestFilter}.

@shawkins
shawkins requested review from Pepo48, ahus1 and vmuzikar August 11, 2026 17:22

@Pepo48 Pepo48 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

@shawkins
shawkins merged commit 2227fa0 into keycloak:main Aug 11, 2026
95 checks passed
ruchikajha95 pushed a commit to ruchikajha95/keycloak that referenced this pull request Aug 12, 2026
Closes keycloak#50602

Signed-off-by: Alexander Schwartz <alexander.schwartz@gmx.net>
Co-authored-by: Alexander Schwartz <alexander.schwartz@gmx.net>
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.

Handling HTTP/2 connection coalescing issues originating from wildcard certificates

5 participants