http: route level filter disabled support#27210
Conversation
|
CC @envoyproxy/api-shepherds: Your approval is needed for changes made to |
|
/wait |
|
/wait This implementation will add additional hash searching for every filter instance creation. If there are lots filters need to be skipped, then this overhead should acceptable. But for the one who use lots of filters but needn't route level filter disable function, maybe this overhead is a little heavy. |
Signed-off-by: wbpcode <[email protected]>
14f2e02 to
48a6e05
Compare
Signed-off-by: wbpcode <[email protected]>
Signed-off-by: wbpcode <[email protected]>
markdroth
left a comment
There was a problem hiding this comment.
Thanks for fixing this!
|
/wait #27263 |
|
Looking forward to seeing this land. I think this is super-useful as a generic per-route filter opt-in/opt-out, which is needed by k8s Gateway https://gateway-api.sigs.k8s.io/api-types/httproute/#filters-optional. |
|
Waiting for #27263 to be land first. But i think we almost get there. 🙂 |
Signed-off-by: wbpcode <[email protected]>
Co-authored-by: Matt Klein <[email protected]> Signed-off-by: code <[email protected]>
Co-authored-by: Matt Klein <[email protected]> Signed-off-by: code <[email protected]>
Co-authored-by: Matt Klein <[email protected]> Signed-off-by: code <[email protected]>
Co-authored-by: Matt Klein <[email protected]> Signed-off-by: code <[email protected]>
Co-authored-by: Matt Klein <[email protected]> Signed-off-by: code <[email protected]>
Signed-off-by: wbpcode <[email protected]>
|
cc @mattklein123 |
mattklein123
left a comment
There was a problem hiding this comment.
Thanks, needs a main merge though.
|
cc @mattklein123 done, could you give a new stamp? thanks. |
* refactor and fix tests Signed-off-by: wbpcode <[email protected]> * fix test Signed-off-by: wbpcode <[email protected]> * more detailed comments Signed-off-by: wbpcode <[email protected]> * resolve conflict Signed-off-by: wbpcode <[email protected]> * fix test Signed-off-by: wbpcode <[email protected]> * change log and docs Signed-off-by: wbpcode <[email protected]> * Update changelogs/current.yaml Co-authored-by: Matt Klein <[email protected]> Signed-off-by: code <[email protected]> * Update changelogs/current.yaml Co-authored-by: Matt Klein <[email protected]> Signed-off-by: code <[email protected]> * Update changelogs/current.yaml Co-authored-by: Matt Klein <[email protected]> Signed-off-by: code <[email protected]> * Update envoy/http/filter_factory.h Co-authored-by: Matt Klein <[email protected]> Signed-off-by: code <[email protected]> * Update source/common/http/filter_chain_helper.cc Co-authored-by: Matt Klein <[email protected]> Signed-off-by: code <[email protected]> * add new integration test Signed-off-by: wbpcode <[email protected]> --------- Signed-off-by: wbpcode <[email protected]> Signed-off-by: code <[email protected]> Co-authored-by: Matt Klein <[email protected]> Signed-off-by: asheryer <[email protected]>
* refactor and fix tests Signed-off-by: wbpcode <[email protected]> * fix test Signed-off-by: wbpcode <[email protected]> * more detailed comments Signed-off-by: wbpcode <[email protected]> * resolve conflict Signed-off-by: wbpcode <[email protected]> * fix test Signed-off-by: wbpcode <[email protected]> * change log and docs Signed-off-by: wbpcode <[email protected]> * Update changelogs/current.yaml Co-authored-by: Matt Klein <[email protected]> Signed-off-by: code <[email protected]> * Update changelogs/current.yaml Co-authored-by: Matt Klein <[email protected]> Signed-off-by: code <[email protected]> * Update changelogs/current.yaml Co-authored-by: Matt Klein <[email protected]> Signed-off-by: code <[email protected]> * Update envoy/http/filter_factory.h Co-authored-by: Matt Klein <[email protected]> Signed-off-by: code <[email protected]> * Update source/common/http/filter_chain_helper.cc Co-authored-by: Matt Klein <[email protected]> Signed-off-by: code <[email protected]> * add new integration test Signed-off-by: wbpcode <[email protected]> --------- Signed-off-by: wbpcode <[email protected]> Signed-off-by: code <[email protected]> Co-authored-by: Matt Klein <[email protected]> Signed-off-by: Ryan Eskin <[email protected]>
Commit Message: http: route level filter config support
Additional Description:
To close #15025, and implement of new API in the #25927. Partly related to #20867.
Specifically, is PR implement two features:
1. first, make the route/vh level per filter config could be optional. The old implementation has some problem and may need to be reverted.2. second, a common way to disable a filter by the route/vh level per filter config.
Risk Level: mid.
Testing: wait.
Docs Changes: wait.
Release Notes: wait.
Platform Specific Features: wait.