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

Update OIDC client code to retry in case of the connection errors and have OIDC starting without the complete config #16060

Merged
merged 1 commit into from
Mar 30, 2021

Conversation

sberyozkin
Copy link
Member

@sberyozkin sberyozkin commented Mar 26, 2021

Fixes #15599.
Fixes #15933.
Fixes #16061.

This PR:

  • Adds the retries to the OIDC client code to minimize the risk of the connection dropped exceptions
  • Makes sure quarkus-oidc can start without any static configuration without even having to set tenant-enabled=false - it has been a blocker for the dev mode (or code.quarkus.io) for a while.
    (I had to add a TenantConfigContext ready flag - as recovering from the exception with null does not work - but it can be useful to log at the request time that the tenant with a specific id is not initialized)

CC @cescoffier

… have OIDC starting without the complete config
@sberyozkin
Copy link
Member Author

@cescoffier Did a minor update to use atMost and also updated OidcClient to start without the complete config too (with the dev mode test updated). CC @pedroigor

@sberyozkin
Copy link
Member Author

@cescoffier thanks, I'll wait till tomorrow and see if @pedroigor has some comments as well

@sberyozkin sberyozkin merged commit 25a0c42 into quarkusio:main Mar 30, 2021
@quarkus-bot quarkus-bot bot added this to the 1.14 - main milestone Mar 30, 2021
@sberyozkin sberyozkin deleted the oidc_request_retry branch March 30, 2021 12:45
@gsmet gsmet modified the milestones: 1.14 - main, 1.13.1.Final Apr 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants