Go-GRPC transport layer authentication

500 Views Asked by At

I am trying to implement transport layer /client/ authentication, that is not based on certificates. The problem is that I am using ALB(Application Load Balancer) which, unfortunately, terminates the SSL connection, so certificates are not an option. What are some reliable alternatives? Did you have similar problem on your side?

1

There are 1 best solutions below

0
Peter On

TLS is just one type of transport layer authentication. There are implementations for several other authentications mechanisms in the google.golang.org/grpc/credentials/* packages), both for the transport layer, and for per-call authentication (such as OAuth2).

If none of them suit your needs, you can write your own by implementing either the TransportCredentials interface or the PerRPCCredentials interface.