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

feat: support BackendCluster for Remote JWKS #5011

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

zhaohuabing
Copy link
Member

@zhaohuabing zhaohuabing commented Jan 6, 2025

This PR introduces support for representing JWT remote JWKS as Backend resources. With this enhancement, users can:

  • Specify a self-signed CA: use BackendTLSPolicy to define a self-signed CA for the remote JWKS
  • Configure retry policies: use rmoteJWKS.backendSettings.retry to sepecify the retry policy for the remote JWKS

Implements: #3536
Release Notes: Yes

@zhaohuabing zhaohuabing requested a review from a team as a code owner January 6, 2025 09:03
@zhaohuabing zhaohuabing marked this pull request as draft January 6, 2025 09:03
Copy link

codecov bot commented Jan 6, 2025

Codecov Report

Attention: Patch coverage is 76.97368% with 35 lines in your changes missing coverage. Please review.

Project coverage is 66.65%. Comparing base (4d5d3f0) to head (82a48aa).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/gatewayapi/securitypolicy.go 80.17% 16 Missing and 7 partials ⚠️
internal/xds/translator/jwt.go 66.66% 8 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5011      +/-   ##
==========================================
- Coverage   66.78%   66.65%   -0.13%     
==========================================
  Files         209      208       -1     
  Lines       32264    32300      +36     
==========================================
- Hits        21547    21531      -16     
- Misses       9421     9460      +39     
- Partials     1296     1309      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zhaohuabing zhaohuabing changed the title api feat: support Backend for Remote JWKS Jan 7, 2025
@zhaohuabing zhaohuabing force-pushed the jwks-custom-ca branch 4 times, most recently from 00cf16b to 2a68252 Compare January 8, 2025 01:33
Copy link
Member Author

@zhaohuabing zhaohuabing Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SecuritcyPolicy validation has been moved from the xds translation to the API translation. This change allows validation errors to be caught earlier and reflected in the SecurityPolicy status.

Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
@zhaohuabing zhaohuabing marked this pull request as ready for review January 8, 2025 01:48
@zhaohuabing zhaohuabing changed the title feat: support Backend for Remote JWKS feat: support BackendCluster for Remote JWKS Jan 8, 2025
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
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.

1 participant