Skip to content

Wire CACHING_REDIS_TLS env var into redisConfig#1581

Open
qtomlinson wants to merge 2 commits into
clearlydefined:masterfrom
qtomlinson:qt/redis_tls
Open

Wire CACHING_REDIS_TLS env var into redisConfig#1581
qtomlinson wants to merge 2 commits into
clearlydefined:masterfrom
qtomlinson:qt/redis_tls

Conversation

@qtomlinson
Copy link
Copy Markdown
Collaborator

@qtomlinson qtomlinson commented May 12, 2026

Summary

  • Reads CACHING_REDIS_TLS from config and passes it to the Redis client
  • Defaults to true (TLS on) when the env var is absent, preserving existing production behaviour on Azure Redis
  • Set CACHING_REDIS_TLS=false to disable TLS — supports the Redis container added to the local Azurite docker-compose stack in docker_dev_env_experiment#22, which runs a plain (non-TLS) Redis
  • Value is parsed case-insensitively ('false', 'False', 'FALSE') and also accepts a boolean false

Test plan

  • New unit tests cover: TLS on (explicit 'true'), TLS on (env var absent), TLS off ('false'), TLS off ('False' case-insensitive), TLS off (boolean false)
  • Verify local Azurite stack with CACHING_REDIS_TLS=false connects to the Redis container without TLS errors

Reads CACHING_REDIS_TLS from config and passes it to the Redis client.
Defaults to true (TLS on) unless explicitly set to 'false', preserving
production Azure Redis behaviour while allowing local dev containers to
disable TLS via CACHING_REDIS_TLS=false.
@qtomlinson qtomlinson marked this pull request as ready for review May 12, 2026 22:34
@qtomlinson qtomlinson requested a review from JamieMagee May 12, 2026 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants