What is ALTS and how does it differ from TLS for authenticating gRPC connections?
Last updated
ALTS (Application Layer Transport Security) is Google's mutual-authentication and encryption system for service-to-service RPCs inside trusted infrastructure like Google Cloud.
It authenticates by environment-issued service identities, not X.509 hostname certificates. Mutual auth is the default, and handshakes are handled by trusted infrastructure services.
TLS is the open standard that works everywhere, typically authenticating servers by hostname cert. ALTS avoids per-host cert provisioning but is Google-specific.
- https://grpc.io/docs/languages/python/alts/
- https://www.baeldung.com/java-grpc-authentication-application-layer-transport-security-alts
- https://letsdotech.medium.com/implementing-ssl-tls-auth-in-grpc-lets-do-tech-ad7754332bc5
- https://github.com/grpc/grpc-go/blob/master/examples/features/encryption/README.md
- https://pkg.go.dev/google.golang.org/grpc/credentials/alts
- https://grpc.io/docs/languages/go/alts/