-
Notifications
You must be signed in to change notification settings - Fork 5.2k
ext_authz: fixes a bug in the retry_policy to respective user's config #42232
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
Conversation
Signed-off-by: Rohit Agrawal <[email protected]>
| Http::Utility::convertCoreToRouteRetryPolicy(core_retry_policy, | ||
| "5xx,gateway-error,connect-failure,reset"); | ||
| Http::Utility::convertCoreToRouteRetryPolicy(core_retry_policy, ""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What will happen is the retry_on of user's configuration is empty? Or is that possible?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the user's retry_on configuration is empty, then retries will be effectively disabled which seems to be the correct behavior. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i added it behind a new runtime guard as we discussed offline :)
Signed-off-by: Rohit Agrawal <[email protected]>
wbpcode
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks.
Signed-off-by: Rohit Agrawal <[email protected]>
Description
This PR fixes the ExtAuthZ HTTP behavior where we keep using the hardcoded defaults and ignore the policy passed in by the user.
Commit Message: ext_authz: fixes a bug in the retry_policy to respective user's config
Additional Description: Fixes the ExtAuthZ HTTP behavior where we keep using the hardcoded defaults and ignore the policy passed in by the user.
Risk Level: Low
Testing: Added Integration Tests
Docs Changes: Added
Release Notes: Added