stripe / veneur

A distributed, fault-tolerant pipeline for observability data
MIT License
1.73k stars 174 forks source link

Add ServerName to tls config #1041

Closed laurenl-stripe closed 1 year ago

laurenl-stripe commented 1 year ago

Summary

This lets us override the ServerName we share in TLS. This gets configured here: https://github.com/grpc/grpc-go/blob/master/credentials/tls.go#L69

Motivation

Setting an explicit servername is advantageous when there are one or more proxies in between the veneur proxy and client.

Test plan

/opt/homebrew/bin/go test -timeout 30s -run ^(TestGetTlsConfig|TestGetTlsConfigNoServerName|TestGetTlsConfigMissingField|TestGetTlsConfigEmpty|TestGetTlsConfigUnset)$ github.com/stripe/veneur/v14/util/tls

Rollout/monitoring/revert plan

@arnav-stripe to help with this post-merge!