The gRPC server on SRĀ OS can operate in the following modes:
without TLS encryption
with TLS encryption
TLS encryption is used for added security; however, TLS encryption can be disabled in lab environments.
If TLS is not enabled, gRPC messages are not encrypted and usernames and passwords required in gRPC communication are visible to anyone capturing the packets. Therefore, Nokia recommends disabling TLS encryption only in a closed environment.
Before a gRPC connection comes up without TLS, the following conditions must be met:
no TLS server profile is assigned to the gRPC server
the allow-unsecure-connection flag is set
The following summarizes the process of encryption; to use TLS encryption:
The gRPC session must be in an encrypted state.
If the gRPC client and gRPC server are unable to negotiate an encrypted gRPC session, the gRPC session fails and the gRPC server sends an error.
Fallback from an encrypted to an unencrypted gRPC session is not allowed.
For information about how to configure TLS with gRPC, see the TLS chapter.