Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Executor for client uris pattern validation#46300

Open
graziang wants to merge 1 commit intokeycloak:mainfrom
graziang:issue-45645
Open

Executor for client uris pattern validation#46300
graziang wants to merge 1 commit intokeycloak:mainfrom
graziang:issue-45645

Conversation

@graziang
Copy link
Contributor

Closes #45645
Closes #45694

Instead of extending SecureClientUrisExecutor, I introduced a new executor to provide fully configurable client URIs validation.

I did not extend SecureClientUrisExecutor because it already enforces HTTPS and disallows wildcards.
There is a need to trust specific domains to mitigate SSRF on the JWKS URI (see discussion on #45645) and the same for bad adminUrl values #45694 and changing the behavior of SecureClientUrisExecutor while preserving backward compatibility would have been a bit forced.

The new executor SecureClientUrisPatternExecutor allows configuring:

  • A list of allowed regex patterns.

  • A list of client URI field to which those patterns should be applied.

Configuration may be more complex, but it is very flexible to cover all the cases of validation of any uri field of the client.

Added dedicated tests and documentation.

@graziang graziang force-pushed the issue-45645 branch 2 times, most recently from 610e198 to 2481a7a Compare February 13, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant