Repository navigation
Fix the manual-verification report QR destination - #4702
Merged
Merged
Conversation
…meta#15634) (ovcs) Build the login redirect from URL path segments so a trailing slash, sub-path (offline EMS/LAN) or ID characters cannot yield a different redirect URI. Accept the issued link only as a Keycloak action-token URL with a single `key` query parameter, no credentials or fragment, refuse the internal KEYCLOAK_URL origin when a distinct KEYCLOAK_PUBLIC_URL is configured, and percent-encode it for the QR script literal. Tracker: meta#15633 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review: 2
Please check the settings in the CodeRabbit UI or the
|
…m (meta#15634) (ovcs) Resolve the expected browser-facing action-token route before issuing: the configured KEYCLOAK_PUBLIC_URL (or KEYCLOAK_URL for single-origin deployments), keeping any path prefix, plus the event realm from get_event_realm and /login-actions/action-token. Invalid frontend configuration fails before a token is minted. The issued link must match that scheme, host, port and path exactly with a single `key`, and is rebuilt from the expected route before being encoded for the QR. The Keycloak issuer now explicitly builds both the link and the token issuer from the FRONTEND URL (hostname / realm frontend URL) rather than the address of the backchannel request. Tracker: meta#15633 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…chor (meta#15634) (ovcs) In the pinned Keycloak (26.7.0) KeycloakContext.getUri() already returns the FRONTEND URL info, so getUri(UrlType.FRONTEND) changed nothing at runtime. Restore the plain call and stub it once in the test, keeping the exact link and issuer assertions on a prefixed (/auth) frontend. Keep the strict windmill route check (KEYCLOAK_PUBLIC_URL, else KEYCLOAK_URL, plus the event realm and action-token path) and document that Keycloak's hostname / realm frontendUrl must name the same origin and prefix. Add a synthetic test rendering the shipped user template with the production Handlebars registry: the QR text equals the decoded "Login Link" anchor href. Tracker: meta#15633 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…meta#15634) (ovcs) Where Windmill reaches Keycloak on an internal URL and Keycloak's hostname is dynamic, the FRONTEND URL info is request-derived (internal), so the issued link fails Windmill's public-route check. Add the optional Keycloak server environment variable MANUAL_VERIFICATION_KEYCLOAK_PUBLIC_URL, used only for manual verification issuance: an HTTP(S) base without credentials, query, fragment or dot segments, normalized to a trailing slash. One base-only UriInfo builds both the token issuer/audience and the action-token link, so the token verifies when redeemed on that browser origin. Invalid values fail closed before voter lookup or minting; unset or blank keeps Keycloak's frontend. The request cannot influence it, and global hostname, verification and auth are unchanged. Synthetic tests cover the split internal/public topology, blank fallback, base normalization and invalid values. Tracker: meta#15633 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ycloak's hostname provider (meta#15634) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use the configured login and verifier destination for the manual-verification QR and test link construction. Keep the existing verification and authorization flow. Initial draft; exact-head review, CI and demo scan pending.