-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
ext_authz: do the authentication even the direct response is set #17546
Changes from all commits
2a46240
ab03064
627a3f8
1f66fd6
6ea58a0
a614861
372eaa9
571b269
f5645a2
92f0cf8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -374,7 +374,10 @@ void Filter::continueDecoding() { | |
} | ||
|
||
Filter::PerRouteFlags Filter::getPerRouteFlags(const Router::RouteConstSharedPtr& route) const { | ||
if (route == nullptr || route->routeEntry() == nullptr) { | ||
if (route == nullptr || | ||
(!Runtime::runtimeFeatureEnabled( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't this affect redirects too? Not sure if these be passed to ext_authz? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks for the good point, I tested the redirect case, this change affect it. @mattklein123 WDYT? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I think it's correct to fix redirect also. You might want to rename the runtime flag and update the release notes? /wait There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. right, let me update |
||
"envoy.reloadable_features.http_ext_authz_do_not_skip_direct_response_and_redirect") && | ||
route->routeEntry() == nullptr)) { | ||
return PerRouteFlags{true /*skip_check_*/, false /*skip_request_body_buffering_*/}; | ||
} | ||
|
||
|
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 think this should also be mentioned in "incompatible behavior changes". This behavior has been present for at least a few years, and I know some people are relying on the old behavior.
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.
that make sense, I can move it.