gRPC-JSON transcoder filter syntax unclear

275 views
Skip to first unread message

m...@clicktherapeutics.com

unread,
Jan 25, 2018, 8:34:24 PM1/25/18
to envoy-users
Hello,

I am trying to get a gRPC-JSON transcoder working. According to the docs, the filter's "config" key has a key "services", which in the example documentation looks like:
"services": [ "grpc.service.Service" ]

I have generated a proto.pb descriptor set file from a proto file that looks like this:

syntax = "proto3";
package auth;

import "google/api/annotations.proto";

service Authenticator {
  rpc CreateUserSession(CreateUserSessionRequest) returns (CreateUserSessionResponse) {
    option (google.api.http) = {
      post: "/sessions"
      body: "*"
    };
  }
  rpc AuthenticateUser(AuthenticateUserRequest) returns (AuthenticateUserResponse) {}
  rpc AuthenticateService(AuthenticateServiceRequest) returns (AuthenticateServiceResponse) {}
}

Given this proto definition, how am I supposed to be able to reference the Authenticator service in the envoy config? Is it grpc.$package_name.$service_name (grpc.auth.Authenticator)? I keep getting the error "transcoding_filter: Could not find 'grpc.auth.Authenticator' in the proto descriptor", but its hard for me to figure out whether the problem is with my envoy config or my generated proto.pb because I don't know how the "services" values are supposed to relate to the proto.rb file.

Thanks in advance.

m...@clicktherapeutics.com

unread,
Jan 25, 2018, 9:24:33 PM1/25/18
to envoy-users
tried all possible permutations and found that $package.$service_name (in this case auth.Authenticator) did the trick. perhaps the documentation could be more clear at some point. 

Matt Klein

unread,
Jan 25, 2018, 9:44:23 PM1/25/18
to m...@clicktherapeutics.com, envoy-users
Please submit a documentation PR.

Thanks,
Matt

--
You received this message because you are subscribed to the Google Groups "envoy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to envoy-users+unsubscribe@googlegroups.com.
To post to this group, send email to envoy...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/envoy-users/b019a142-eb8a-40eb-982b-1c5e5e36a326%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages