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

Skip to content

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.

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

Projects

None yet

1 participant