https://github.com/vaayne/envoy-grpc-json-example
envoy-grpc-json-example
https://github.com/vaayne/envoy-grpc-json-example
envoyproxy grpc-gateway grpc-go
Last synced: 9 months ago
JSON representation
envoy-grpc-json-example
- Host: GitHub
- URL: https://github.com/vaayne/envoy-grpc-json-example
- Owner: vaayne
- Created: 2022-03-02T08:16:06.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-02T08:47:16.000Z (over 4 years ago)
- Last Synced: 2025-04-04T09:44:55.514Z (over 1 year ago)
- Topics: envoyproxy, grpc-gateway, grpc-go
- Language: Go
- Homepage:
- Size: 71.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# envoy-grpc-json-example
envoy-grpc-json-example
example for envoy grpc-json transcode
# Usage
- `make run` to run services
- `sh verify.sh` to check
# Tech Stack
- [envoy](https://github.com/envoyproxy/envoy)
- [grpc-go](https://github.com/grpc/grpc-go)
- [grpc-gateway](https://github.com/grpc-ecosystem/grpc-gateway)
- [buf](https://github.com/bufbuild/buf)
- [protoc-gen-validate](https://github.com/envoyproxy/protoc-gen-validate)
# Issues
### Route config not right
[Envoy doc](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/grpc_json_transcoder_filter#route-configs-for-transcoded-requests)
say path will be `./` , but it not act like that.
config already set `match_incoming_request_route=false`
For example:
`Status` only match `/status`, do not match `/helloworld.Greeter/Status`
```
service Greeter {
rpc Status(Empty) returns (StatusResponse) {
option (google.api.http) = {
get: "/status"
};
}
}
```
`SayHello` match `/helloworld.Greeter/Status` only because I set the path in `google.api.http`
```
service Greeter {
rpc SayHello (HelloRequest) returns (HelloReply) {
option (google.api.http) = {
get: "/helloworld.Greeter/SayHello"
};
}
}
```
### config not working
[config doc](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/filters/http/grpc_json_transcoder/v3/transcoder.proto#envoy-v3-api-msg-extensions-filters-http-grpc-json-transcoder-v3-grpcjsontranscoder)
- match_incoming_request_route
- auto_mapping