envoy icon indicating copy to clipboard operation
envoy copied to clipboard

Thrift to Metadata filter proto design

Open JuniorHsu opened this issue 1 year ago • 7 comments

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:]

JuniorHsu avatar May 02 '24 01:05 JuniorHsu

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/). envoyproxy/api-shepherds assignee is @htuch CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

:cat:

Caused by: https://github.com/envoyproxy/envoy/pull/33919 was opened by JuniorHsu.

see: more, trace.

@htuch could i have an early api review? the test failure is coverage which is expected

JuniorHsu avatar May 02 '24 23:05 JuniorHsu

@zuercher is it ok to assign this one to you?

phlax avatar May 10 '24 08:05 phlax

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

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.

JuniorHsu avatar May 14 '24 02:05 JuniorHsu

do you want to mark all the protobuf as not yet implemented

just notice i already set option (xds.annotations.v3.file_status).work_in_progress = true;

JuniorHsu avatar May 16 '24 04:05 JuniorHsu

@zuercher I addressed all the comments except this https://github.com/envoyproxy/envoy/pull/33919#discussion_r1599303324 which needs some input. Also add some trivial unit test, hopefully pass the coverage test

JuniorHsu avatar May 16 '24 05:05 JuniorHsu

do you want to mark all the protobuf as not yet implemented

just notice i already set option (xds.annotations.v3.file_status).work_in_progress = true;

Sorry -- I didn't realize that could be done at the file level vs. per-message.

zuercher avatar May 23 '24 00:05 zuercher

/retest

JuniorHsu avatar May 24 '24 19:05 JuniorHsu

we got approval and api reviewed so i think we're good to merge. https://github.com/envoyproxy/envoy/pull/33919#pullrequestreview-2072613349

JuniorHsu avatar May 24 '24 20:05 JuniorHsu