grpc go authority different than other languages implementation

36 views
Skip to first unread message

iman.s...@gmail.com

unread,
Feb 23, 2018, 10:46:30 AM2/23/18
to grpc.io
In order to set HTTP2 authority in go grpc with a secure connection, the following function cant be used:

func WithAuthority(a string) DialOption .   (in google.golang.org/grpc)
 
The above function only works with an insecure connection. The only way to pass the authority is to pass it with the following:

credentials.NewClientTLSFromCert(certpool, serverNameOverride) 
 
Which is overriding the servername that could be used as an authority! 
Could you tell me why the more conventional way which is directly adding the authority as an option would not work? this works for other languages such as python and java.

Thanks,
Iman 
 

Doug Fawley

unread,
Feb 28, 2018, 5:40:44 PM2/28/18
to iman.s...@gmail.com, grpc.io
Hi Iman,

There is some discussion about this where it was implemented; see the PR, starting from here: https://github.com/grpc/grpc-go/pull/1064#issuecomment-278445486

Thanks,
Doug



--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/8846fd5d-2413-4af4-9d71-72e25c94e351%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages