GrpcJsonTranscoder icon indicating copy to clipboard operation
GrpcJsonTranscoder copied to clipboard

Usage of https protocol

Open saitejaprattipati opened this issue 5 years ago • 2 comments

Really appreciate for your efforts but i have few clarification to confirm they are as below.

  1. While communicating from ocelot gateway to grpc service (microservice) the protocol should be used is https (grpc is designed to use for https) but the protocol that you have mentioned is http in configuration file of ocelot gateway. However we can use http with grpc but the features like encryption, compression will not work.
  2. The client side auto generated code for the grpc which is based on proto file is the one which does the communication by using the features of grpc how are you handling all those features.

If possible can you please put a video of the code functionality in detail so that it will be used for everyone.

saitejaprattipati avatar May 08 '20 07:05 saitejaprattipati

Would love to know the answers for the same. Plus how the re-direction will be handled? if base microservice returns "Redirect(string url)"

currently it works with ocelot. But how grpc client code will handle it here?

sonuame avatar Jun 01 '20 20:06 sonuame

@saitejaprattipati In this case, you need to pass the credential to

https://github.com/thangchung/GrpcJsonTranscoder/blob/master/src/GrpcJsonTranscoder/DownStreamContextExtensions.cs#L24

SslCredentials secureCredentials = null

We use http protocol for the example because we do SSL termination, and then use service mesh such as istio or linkerd to configure the mTLS inside the cluster

thangchung avatar Jul 08 '20 07:07 thangchung