Skip to content

Robin cannot authenticate to Valkey nodes when auth.secret is configured #47

@Lyonk71

Description

@Lyonk71

Description

When auth.secret is configured on a RedkeyCluster CR, the operator correctly sets requirepass on the Valkey pods via the StatefulSet config. However, Robin is never given the password — it has no auth handling in its codebase (internal/robin/robin.go has zero references to auth/password/secret).

This causes Robin to fail with failed to connect after 10 retries on every node, leaving the cluster permanently stuck in Configuring status.

Steps to Reproduce

  1. Create a Secret with a requirepass key
  2. Configure a RedkeyCluster CR with auth.secret pointing to that secret
  3. Observe Robin logs: Error initializing node ... "failed to connect after 10 retries"

Expected Behavior

Robin should receive the auth credentials (via configmap or environment variable) and use them when connecting to Valkey nodes.

Workaround

Remove auth.secret from the CR and use a NetworkPolicy to restrict access instead.

Environment

  • Redkey Operator v0.1.0
  • Robin v0.1.0
  • OpenShift 4.18 / OKD
  • Valkey 8

Metadata

Metadata

Assignees

No one assigned

    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