Grpc-web: Looking for Hello world example that uses SSL/TLS

Created on 27 Feb 2020  路  10Comments  路  Source: grpc/grpc-web

Looking for usage example(s) demonstrating the 2nd and 3rd parameters for the ctor of the generated client:

let apiClient = new APIServicePromiseClient(hostAndPort, null, null);

defined as:

constructor (hostname: string,
               credentials?: null | { [index: string]: string; },
               options?: null | { [index: string]: string; });

I'm looking for a way to establish an ssl Credential object, but not sure if is the same API as in the gRPC docs for Nodejs.

The followup on

https://github.com/grpc/grpc-web/issues/40
https://github.com/grpc/grpc-web/pull/125

has not progressed.

Thanks

Most helpful comment

Any progress on this?
Looking for a simple example that makes grpc-web calls over TLS
(browser-to-envoy TLS)

All 10 comments

I have similar problem, but i need Insecure permission

I have similar problem, but i need Insecure permission

I thought the default behavior (with 2nd & 3rd parameters nulled) is the Insecure Channel?

I thought the default behavior (with 2nd & 3rd parameters nulled) is the Insecure Channel?

In c# (ChannelCredentials.Insecure) and nodeJs (grpc.credentials.createInsecure()) this is different object (but by default Null)

Yes, understood there might be some parallels with the way the objc and c# client stubs were configured for ssl. All that is required in grpc-web is simply using "https://..." in this case apparently.

Did you find an example for this? I posted a similar question in https://github.com/grpc/grpc-web/issues/762

I use envoy to take care of the https issues. hope this helpful

I use envoy to take care of the https issues. hope this helpful

How can there be a trust established between my application in the browser and envoy in this case? In case of client certificate, shouldn't my application be adding the certificate and envoy passing it on upstream? Much like using the CURLOPT_SSLCERT option to add a client certificate.

Any progress on this?
Looking for a simple example that makes grpc-web calls over TLS
(browser-to-envoy TLS)

+1

Also seeking this

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jmzwcn picture jmzwcn  路  6Comments

aberasarte picture aberasarte  路  6Comments

TBoshoven picture TBoshoven  路  4Comments

henpanta picture henpanta  路  5Comments

oferb picture oferb  路  5Comments