Skip to content

redpanda: Client auth failure: user 'kubernetes-controller' wrong password #1596

@chrisseto

Description

@chrisseto

It seems the chart (and/or operator) can get itself into a state where it generates the following log lines:

WARN  2024-11-12 11:32:11,242 [shard 5:admi] request_auth - request_auth.cc:150 - Client auth failure: user 'kubernetes-controller' wrong password
WARN  2024-11-12 11:32:11,253 [shard 6:admi] request_auth - request_auth.cc:150 - Client auth failure: user 'kubernetes-controller' wrong password
WARN  2024-11-12 11:32:13,121 [shard 5:admi] request_auth - request_auth.cc:150 - Client auth failure: user 'kubernetes-controller' wrong password
WARN  2024-11-12 11:32:13,127 [shard 6:admi] request_auth - request_auth.cc:150 - Client auth failure: user 'kubernetes-controller' wrong password
WARN  2024-11-12 11:32:13,136 [shard 0:admi] request_auth - request_auth.cc:150 - Client auth failure: user 'kubernetes-controller' wrong password
WARN  2024-11-12 11:32:13,140 [shard 5:admi] request_auth - request_auth.cc:150 - Client auth failure: user 'kubernetes-controller' wrong password

This has been discovered in a cloud cluster (5.9.8) and has been reported by a self hosted user in the community slack in both 5.9.8 and 5.9.7.

In both cases, SASL was enabled, admin_api_require_auth was NOT enabled, and users were being specified via a secret created out of band of the chart itself rather than the inline sasl.users option.


Manual Recovery for Affected Clusters

Good news: It's pretty easy to fix provided admin_api_require_auth is not set.

  • Ensure that admin_api_require_auth is NOT set.
    • If it is please contact support for assistance.
  • Make sure redpanda-bootstrap-user has the desired password
  • Perform a rolling restart of the redpanda cluster to ensure $RPK_PASS is up to date
  • From any redpanda Pod, run rpk acl user update $RPK_USER --mechanism $RPK_SASL_MECHANISM --new-password $RPK_PASS

JIRA Link: K8S-415

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