Skip to content
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

fix: expired X509 certificates should be ignored for JWT usage #2423

Merged
merged 2 commits into from
Jul 28, 2023

Conversation

strehle
Copy link
Member

@strehle strehle commented Jul 27, 2023

An expired X509 is ignored with this fix and therefore internally not used anymore. The expired certificate won't appear in /token_key, /token_keys anymore and private_key_jwt is not done with x5t, that the X509 as trust anchor is not possible anymore.

The behavior is not really changed with this PR, but no exception should be thrown in runtime. Before this PR, an Exception and with that HTTP 5xx was thrown

An expired X509 is ignored with this fix and therefore internally not used anymore.
The expired certificate won't appear in /token_key, /token_keys anymore and private_key_jwt
is not done with x5t, that the X509 as trust anchor is not possible anymore.

The behavior is not really changed with this PR, but no exception should be thrown in runtime.
Before this PR, an Exception and with that HTTP 5xx was thrown
@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/185706694

The labels on this github issue will be updated when the story is started.

@strehle strehle added this to the 76.18.0 milestone Jul 27, 2023
@strehle
Copy link
Member Author

strehle commented Jul 27, 2023

@strehle strehle added the bug label Jul 27, 2023
@strehle strehle changed the title fix: expired X509 certificates should be ignored for usage fix: expired X509 certificates should be ignored for JWT usage Jul 27, 2023
@strehle strehle merged commit 1d1dca9 into develop Jul 28, 2023
18 checks passed
@strehle strehle deleted the fix/expiredX509 branch July 28, 2023 06:24
@cf-gitbot cf-gitbot added delivered accepted Accepted the issue and removed delivered labels Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Accepted the issue bug
Projects
Development

Successfully merging this pull request may close these issues.

3 participants