Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of https protocol #11

Open
saitejaprattipati opened this issue May 8, 2020 · 2 comments
Open

Usage of https protocol #11

saitejaprattipati opened this issue May 8, 2020 · 2 comments

Comments

@saitejaprattipati
Copy link

saitejaprattipati commented May 8, 2020

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.

@sonuame
Copy link

sonuame commented Jun 1, 2020

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?

@thangchung
Copy link
Owner

thangchung commented Jul 8, 2020

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants