Repository navigation
ext_proc: Add per-route configuration - #17691
Conversation
Today "disabled" and the processing mode are the two things supported because that is what is currently supported in ext_proc. Signed-off-by: Gregory Brail <[email protected]>
|
CC @envoyproxy/api-shepherds: Your approval is needed for changes made to |
Signed-off-by: Gregory Brail <[email protected]>
Signed-off-by: Gregory Brail <[email protected]>
|
Ping @markdroth? |
Simplify tests using more helpers. Signed-off-by: Gregory Brail <[email protected]>
Signed-off-by: Gregory Brail <[email protected]>
|
thanks for update, lgtm |
Signed-off-by: Gregory Brail <[email protected]>
Signed-off-by: Gregory Brail <[email protected]>
|
/lgtm api |
snowp
left a comment
There was a problem hiding this comment.
Thanks, looks good just one question
/wait
| // Set up configuration on the virtual host and on the route and see that | ||
| // the two are merged. |
There was a problem hiding this comment.
Is this how the other per route configurations work? I may be misremembering but I thought most they wouldn't merge, but pick the most specific one
There was a problem hiding this comment.
I find this confusing myself. I copied the language in the .proto from the ext_authz proto, which says, "If disabled is specified in multiple per-filter-configs, the most specific one will be used."
I think that this is the right logic for this. In the future, we'll implement overrides for request and response properties, and in that case I think that we might want to try and merge them if that makes sense.
There was a problem hiding this comment.
So for the two properties that are supported today, the behavior is indeed to pick the most specific one -- but we might choose something different for the properties that aren't supported yet.
There was a problem hiding this comment.
If the most specific one is your choice, then sounds like using this method is most simple for you (Sorry, I missed that from previous review)
envoy/source/common/http/utility.h
Lines 495 to 501 in 17b24c7
Also, the properties ExtProcOverrides overrides is named as overrides, so it doesn't sounds like extendable for future you want to merge them also.
ExtAuthz using the merge logic, but it is mixed also.
Only the context_extensions has the merge logic, Other fields is the most specific one logic.
Maybe we can follow the ExtAuthz, don't name the field with override name, or we design something else to explicitly specific override or merge.
There was a problem hiding this comment.
After chatting a bit with other maintainers I think this is fine, as the behavior appears to be documented.
Signed-off-by: Gregory Brail <[email protected]>
Signed-off-by: Gregory Brail <[email protected]>
snowp
left a comment
There was a problem hiding this comment.
Sorry for the delay here, this seems good to me.
Today "disabled" and the processing mode are the two things supported because that is what is currently supported in ext_proc. Signed-off-by: Gregory Brail <[email protected]> Signed-off-by: Greg Brail <[email protected]>
Commit Message: ext_proc: Add per-route configuration for processing mode and "disabled" flag.
Additional Description:
Risk Level: Low. Not triggered unless configured.
Testing: New unit and integration tests added.
Docs Changes:
Release Notes:
Platform Specific Features: