greptimedb
greptimedb copied to clipboard
TLS for gRPC service
What type of enhancement is this?
Configuration
What does the enhancement do?
Add TLS support for our gRPC services (default port: 4001)
Implementation challenges
No response
FWIW, you may add .tls_config at L172:
https://github.com/GreptimeTeam/greptimedb/blob/450dfe324db20970ed88d70e5c047ae13f064be9/src/servers/src/grpc.rs#L171-L174
where the ServerTlsConfig is constructed like:
https://github.com/GreptimeTeam/greptimedb/blob/450dfe324db20970ed88d70e5c047ae13f064be9/src/common/grpc/src/channel_manager.rs#L74-L98
But I'm unfamiliar with TLS and don't know how to test it. So just share my finding that can be a start point.