-
Notifications
You must be signed in to change notification settings - Fork 685
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: perform https redirect prior to ext_authz calls #4618
Conversation
28d01e6
to
e79ea32
Compare
I don't have a strong preference for this specific occurrence. They are small enough we can keep them here or if we want a cleaner history, then break them out into CI improvements PR. |
Checkout v2 was based on Node 12 which is now deprecated. Github now post a warning during CI runs recommending to upgrade to Node 16+. This updates all instances of this to v3 which is based on Node 16. See <https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/> for more information on Github warnings. Signed-off-by: Lance Austin <laustin@datawire.io>
Collect the config that was used for the test pod so that it can be used to for debugging failing tests. Signed-off-by: Lance Austin <laustin@datawire.io>
Fix regression introduced in v3 series when Envoy was upgraded to a version after 1.20 (behavior change introduced). This commit restores the expected behavior that an https redirect will occur prior to calling the ext_authz service. fixes #4620 Signed-off-by: Lance Austin <laustin@datawire.io>
e79ea32
to
d5e9b91
Compare
Ok, I will leave it then since they are separate commits already and are not mixed with the fix commit. |
|
||
def manifests(self) -> str: | ||
return ( | ||
self.format( |
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.
When possible, I've been preferring f-strings to the old self.format
magic.
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.
There's the redirect-Mapping
issue discussed today that still needs fixed. But the changes here lgtm.
Cool, I will go ahead and land this so it can be in the next RC and will get to work on the fix for the mapping redirect issue as well. |
Description
Fixes a regression with https_redirection when an AuthService is applied. This was introduced in v3+ due to upgrading Envoy where a behavior change was introduced for the ext_authz http filter. This restores the previous behavior by disabling ext_authz calls on a per route basis when an AuthService is applied.
Before change:
After change:
IMPORTANT: this is only applied to the https_redirect routes that are added by default for all Host which has
requestPolicy.insecure.action = Redirect
as the default action.Related Issues
#4620
Testing
Manual Verification:
Automtates Test:
Checklist
CHANGELOG.md
.DEVELOPING.md
with any any special dev tricks I had to use to work on this code efficiently.