acoustic-carpenter-78188
06/10/2026, 8:52 PMRedisOptions.TLSConfig is a *tls.Config, which cannot be set from a YAML/JSON config file. As a result a config-driven deployment cannot enable TLS for the Redis-backed cache — e.g. pointing the cache at a TLS-only managed Redis (AWS ElastiCache / GCP Memorystore) is impossible without code changes.
This adds config-settable TLS to `RedisOptions`:
• UseTLS bool — negotiate TLS using the system certificate pool (TLS 1.2 minimum). Use this instead of TLSConfig when configuring from YAML/JSON.
• TLSInsecureSkipVerify bool — disable server certificate verification (testing only; defaults to false).
GetOptions builds the tls.Config when UseTLS is set and no explicit TLSConfig was provided; an explicit TLSConfig still takes precedence.
Test plan
TestRedisOptions_GetOptions_TLS covers: UseTLS builds a verifying tls.Config (TLS 1.2 floor, InsecureSkipVerify false), TLSInsecureSkipVerify honored, no TLS by default, and explicit TLSConfig precedence over UseTLS.
flyteorg/flyteacoustic-carpenter-78188
06/10/2026, 9:34 PM