Skip to content

[BUG] Elastic cache TLS configuration #550

@hornv

Description

@hornv

Describe the bug
Cannot connect to AWS elasticcache endpoint (redis OSS caches)
the output is

INFO: 2025/08/01 11:48:24 main.go:50: chproxy ver. 1.26.6, rev. f3e128843392c502dd82709f073af73bb5b56d6c, built at 2024-11-21T11:20:35Z
INFO: 2025/08/01 11:48:24 main.go:51: Loading config: /etc/chproxy/config.yaml
FATAL: 2025/08/01 11:48:27 main.go:58: error while applying config: failed to reach redis: i/o timeout

To Reproduce
create chproxy config and TLS redis endpoint

Expected behavior
A clear and concise description of what you expected to happen.

Environment information
chproxy running in EKS based on 1.26.6

configuration for cache block is

    caches:
      - name: "redis"
        mode: "redis"
        redis:
          addresses:
            - "${ELASTIC_HOST}"
          password: ${ELASTIC_TOKEN}
          insecure_skip_verify: false
        expire: 10m

Tried adding tls: true

Additional context
I ran tcpdump on the same host and was able to see all data (token) in plain text, meaning tls configuration doesn't work.
I used to have redis-cache as a stateful set in the same namespace without TLS. worked perfectly.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions