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 initialization of JWKs client per request #35360

Closed
ldclakmal opened this issue Mar 7, 2022 · 1 comment
Closed

Fix initialization of JWKs client per request #35360

ldclakmal opened this issue Mar 7, 2022 · 1 comment
Assignees
Labels
Team/StandardLibs All Ballerina standard libraries Type/Bug

Comments

@ldclakmal
Copy link
Member

Description:
The HTTP client used to call the JWKs endpoint (when the JWT signature is need to be validated with the use of JWK) is initialized for each request with the provided client configurations. This ends up with a Netty error message when doing a load test. error: failed to create a child event loop. This issue was identified from the MGW 3.2.0.

Describe your solution(s)
This approach can be improved by initializing the client once for the inbound JWT auth provider.

@ldclakmal ldclakmal added Type/Bug Team/StandardLibs All Ballerina standard libraries labels Mar 7, 2022
@ldclakmal ldclakmal self-assigned this Mar 7, 2022
@ldclakmal ldclakmal added this to the Ballerina 1.2.26 milestone Mar 7, 2022
@github-actions
Copy link

github-actions bot commented Mar 8, 2022

This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.

      - Reason/EngineeringMistake - The issue occurred due to a mistake made in the past.
      - Reason/Regression - The issue has introduced a regression.
      - Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components.
      - Reason/Complex - Issue occurred due to complex scenario.
      - Reason/Invalid - Issue is invalid.
      - Reason/Other - None of the above cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team/StandardLibs All Ballerina standard libraries Type/Bug
Projects
None yet
Development

No branches or pull requests

1 participant