-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Thrift to Metadata filter proto design #33919
Conversation
Signed-off-by: kuochunghsu <kuochunghsu@pinterest.com>
CC @envoyproxy/api-shepherds: Your approval is needed for changes made to |
@htuch could i have an early api review? the test failure is coverage which is expected |
@zuercher is it ok to assign this one to you? |
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.
As a design this makes sense to me. Given that there's no implementation here, do you want to mark all the protobuf as not yet implemented and move forward with this PR just to get the protobuf API in place?
api/envoy/extensions/filters/http/thrift_to_metadata/v3/thrift_to_metadata.proto
Outdated
Show resolved
Hide resolved
api/envoy/extensions/filters/http/thrift_to_metadata/v3/thrift_to_metadata.proto
Outdated
Show resolved
Hide resolved
api/envoy/extensions/filters/http/thrift_to_metadata/v3/thrift_to_metadata.proto
Show resolved
Hide resolved
docs/root/configuration/http/http_filters/_include/thrift-to-metadata-filter.yaml
Show resolved
Hide resolved
docs/root/configuration/http/http_filters/thrift_to_metadata_filter.rst
Outdated
Show resolved
Hide resolved
Sure I'll have a very basic unit test to pass the coverage so we can move on the wip filter. Thanks for the great idea. |
just notice i already set |
Signed-off-by: kuochunghsu <kuochunghsu@pinterest.com>
@zuercher I addressed all the comments except this #33919 (comment) which needs some input. Also add some trivial unit test, hopefully pass the coverage test |
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.
This looks good to me. I think it needs approval from someone on @envoyproxy/api-shepherds.
api/envoy/extensions/filters/http/thrift_to_metadata/v3/thrift_to_metadata.proto
Show resolved
Hide resolved
Sorry -- I didn't realize that could be done at the file level vs. per-message. |
api/envoy/extensions/filters/http/thrift_to_metadata/v3/thrift_to_metadata.proto
Outdated
Show resolved
Hide resolved
api/envoy/extensions/filters/http/thrift_to_metadata/v3/thrift_to_metadata.proto
Show resolved
Hide resolved
api/envoy/extensions/filters/http/thrift_to_metadata/v3/thrift_to_metadata.proto
Show resolved
Hide resolved
api/envoy/extensions/filters/http/thrift_to_metadata/v3/thrift_to_metadata.proto
Outdated
Show resolved
Hide resolved
Signed-off-by: kuochunghsu <kuochunghsu@pinterest.com>
Signed-off-by: kuochunghsu <kuochunghsu@pinterest.com>
api/envoy/extensions/filters/http/thrift_to_metadata/v3/thrift_to_metadata.proto
Outdated
Show resolved
Hide resolved
api/envoy/extensions/filters/http/thrift_to_metadata/v3/thrift_to_metadata.proto
Outdated
Show resolved
Hide resolved
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 api
/retest |
we got approval and api reviewed so i think we're good to merge. |
Implement filter config from #33919. doc: https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/thrift_to_metadata_filter.html#envoy-thrift-to-metadata-filter Risk Level: low (new filter) Testing: unit Docs Changes: n/a Release Notes: added Fixes #29371 Signed-off-by: kuochunghsu <kuochunghsu@pinterest.com> Co-authored-by: kuochunghsu <kuochunghsu@pinterest.com>
Commit Message:
For apache thrift compatible HTTP requests and responses, this filter parses the thrift metadata and put them into filter dynamic metadata for other filter usage.
This is the initial proto design, which refers to other filters like json_to_metadata and payload_to_metadata.
Additional Description:
Risk Level: low
Testing: build
Docs Changes: yes
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue] #29371
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]