greptimedb icon indicating copy to clipboard operation
greptimedb copied to clipboard

TLS for gRPC service

Open sunng87 opened this issue 1 year ago • 1 comments

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

sunng87 avatar Feb 20 '24 11:02 sunng87

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.

tisonkun avatar Feb 20 '24 11:02 tisonkun