mosn / htnn

Currently, it's another gateway based on Istio/Envoy. (TODO: give it a better description)
Apache License 2.0
62 stars 16 forks source link

Support configuring RESTAPI to GRPC via HTTPFilterPolicy #605

Open spacewander opened 2 months ago

spacewander commented 2 months ago

Description

No response

Use Scenes

We can leverage the https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/grpc_json_transcoder_filter#config-http-filters-grpc-json-transcoder filter to do it.

Let's add it as a plugin under https://github.com/mosn/htnn/tree/main/controller/plugins. The test needs to be added under https://github.com/mosn/htnn/tree/main/controller/internal/translation/testdata/plugins. (Maybe we can move the tests to https://github.com/mosn/htnn/tree/main/controller/plugins in a new PR?)

Don't forget to add e2e test under https://github.com/mosn/htnn/tree/main/e2e/tests. We can setup a GPRC backend using the image from gateway-api repo.

Feel free to submit the doc in a separate PR if this PR is too big.

Advice

No response

hanxiantao commented 2 months ago

plz assign this issue to me