Skip to content

Remove new X5tCertificateThumbprintValidator from spring-xsuaa module #1579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 26, 2024

Conversation

finkmanAtSap
Copy link
Contributor

@finkmanAtSap finkmanAtSap commented Jun 26, 2024

spring-security has added a new x5t certificate thumbprint validator to the list of default validators:
spring-projects/spring-security@644cfa9#diff-a4724ab787f6f0344a9ab4d3d8f1ce9b0cd16f0b24a51d497b3290b41ed43a04R70-R73

This new validator is automatically getting used in the XsuaaJwtDecoder of the spring-xsuaa module of this lib once consumers update to a newer spring-security version.
This validator does not work for typical usage scenarios of this lib without further configuration because it expects a client certificate in the request. As TLS termination is done earlier by BTP and the certificate is instead forwarded in a header that is not used by the new validator, it will always fail to find a certificate for the validation.

To restore the previous functionality of the spring-xsuaa module, which is in maintenance mode, I am explicitly importing only the previous default validator(s) instead which happens to be only a timestamp validator.

@finkmanAtSap finkmanAtSap merged commit 221d5a0 into main Jun 26, 2024
5 checks passed
@finkmanAtSap finkmanAtSap deleted the fix/spring_xsuaa/disable_new_x5t_validation branch June 26, 2024 14:42
@finkmanAtSap finkmanAtSap restored the fix/spring_xsuaa/disable_new_x5t_validation branch June 26, 2024 14:42
@finkmanAtSap finkmanAtSap deleted the fix/spring_xsuaa/disable_new_x5t_validation branch June 26, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants