Re: [grpc-io] grpc go authority different than other languages implementation

2018-02-28 Thread 'Doug Fawley' via 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



On Fri, Feb 23, 2018 at 7:46 AM  wrote:

> 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
>
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to grpc-io@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.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@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/CAMTLis%2BcC2_p%3DrBLjGYUFGBYhazW8baw3RSNt21rNJ_CcQNeXg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[grpc-io] grpc go authority different than other languages implementation

2018-02-23 Thread iman . sadooghi
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 
 

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@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.