Project

General

Profile

Actions

Bug #75900

closed
SS YL

quay.io/ceph/ceph:v19.2.2 ships `librdkafka 1.6.1`, which causes RGW Kafka bucket notifications to fail SCRAM auth against Kafka 4.1

Bug #75900: quay.io/ceph/ceph:v19.2.2 ships `librdkafka 1.6.1`, which causes RGW Kafka bucket notifications to fail SCRAM auth against Kafka 4.1

Added by Sina Sadeghi 8 months ago. Updated 4 months ago.

Status:
Won't Fix
Priority:
Normal
Target version:
-
Due date:
% Done:

0%

Source:
Community (user)
Backport:
squid tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

Description

Here’s a tightened version with the upstream references folded in:

```md
Environment:
- Ceph RGW: `ceph version 19.2.2 (...) squid (stable)`
- Image: `quay.io/ceph/ceph:v19.2.2`
- Rook-managed RGW
- Kafka: Strimzi / Kafka `4.1.0`
- Kafka auth: `SCRAM-SHA-512`
- RGW topic config:
- `mechanism=SCRAM-SHA-512`
- `use-ssl=false`
- `ack-level=broker`
- `rgw_allow_notification_secrets_in_cleartext=true`

Summary:
RGW Kafka bucket notifications fail against Kafka 4.1 with `SCRAM-SHA-512` when using the upstream Ceph 19.2.2 container image. The same Kafka username/password works with Kafka’s own client tools. Rebuilding the image with only `librdkafka` replaced by a newer upstream version makes the exact same RGW notification flow work.

Observed in the upstream image:
```text
rpm -qa | grep librdkafka
librdkafka-1.6.1-102.el9.x86_64
```

Symptom:
Object uploads to RGW succeed, but no notification is delivered to Kafka. With the stock image, RGW/Kafka report SCRAM auth failures even though the credentials are correct.

Representative logs:
RGW:
```text
SASL authentication error: Authentication failed during authentication due to invalid credentials with SASL mechanism SCRAM-SHA-512
```

Kafka broker:
```text
Failed authentication ... invalid credentials with SASL mechanism SCRAM-SHA-512
```

Why this looks like a Ceph image / dependency problem rather than a config problem:
1. The Kafka topic, Kafka user, and ACLs were correct.
2. `radosgw-admin topic get` showed RGW had the expected stored username/password.
3. A direct Kafka client test using the same username/password succeeded.
4. Replacing only `librdkafka` in the Ceph image fixed the problem, with no Ceph code changes and no Kafka config changes.

What we changed to verify:
- Base image remained `quay.io/ceph/ceph:v19.2.2`
- Replaced stock `librdkafka-1.6.1` with newer upstream `librdkafka1-2.10.1-1.cflt.el9` from Confluent
- Kept Ceph version and RGW config the same

The replacement package came from Confluent’s EL9 client RPM repo:
- `https://packages.confluent.io/clients/rpm/centos/9/x86_64/`
- signing key: `https://packages.confluent.io/clients/rpm/archive.key`

After replacing only `librdkafka`, the same RGW -> Kafka notification path worked.

Expected result:
RGW should be able to publish bucket notifications to Kafka 4.1 using `SCRAM-SHA-512` when the configured credentials are valid.

Actual result:
With the upstream Ceph 19.2.2 image, RGW fails Kafka SCRAM auth using valid credentials.

Suspected root cause:
The `librdkafka` version shipped in the upstream Ceph 19.2.2 EL9 image (`1.6.1`) appears too old / incompatible for this Kafka 4.1 SCRAM path.

Possibly related upstream reports:
- kcat issue: `SCRAM-SHA-512 auth fails with Kafka 4.0.0 brokers using the existing images`
- https://github.com/edenhill/kcat/issues/462
- reporter said upgrading to `librdkafka v2.10.0` fixed it
- librdkafka discussion: `Kafka 4.0 with SASL_SSL and SCRAM-SHA-512 not working when using with librdkafka 2.4.0`
- https://github.com/confluentinc/librdkafka/discussions/5165
- reporter later said upgrading to `v2.6.1` fixed it

These are not identical environments, but they look consistent with what we observed: older librdkafka versions fail against Kafka 4.x SCRAM, while newer versions work.

Question:
Is this a known compatibility issue, and should Ceph 19.2.2 container builds ship a newer `librdkafka` for RGW Kafka notifications against Kafka 4.x?

```

Sources:
- [kcat issue #462](https://github.com/edenhill/kcat/issues/462)
- [librdkafka discussion #5165](https://github.com/confluentinc/librdkafka/discussions/5165)
- [Confluent EL9 clients RPM repo](https://packages.confluent.io/clients/rpm/centos/9/x86_64/)
- [Confluent RPM signing key](https://packages.confluent.io/clients/rpm/archive.key)


Related issues 2 (0 open — 2 closed)

Related to rgw - Documentation #76068: kafka: add kafka supported version in docDuplicateYuval Lifshitz

Actions
Related to rgw - Enhancement #77336: kafka: support kafka 4.x brokerResolved

Actions

JI Updated by J. Eric Ivancich 8 months ago Actions #1

  • Assignee set to Yuval Lifshitz

CB Updated by Casey Bodley 8 months ago Actions #2

  • Backport set to squid tentacle

YL Updated by Yuval Lifshitz 8 months ago Actions #3

we never tested against kafka 4.X.
will add documentation to state that we only support kafka 3.9

YL Updated by Yuval Lifshitz 8 months ago Actions #4

YL Updated by Yuval Lifshitz 8 months ago Actions #5

  • Status changed from New to Won't Fix

we never tested against kafka 4.X.
will add documentation to state that we only support kafka 3.9

in order to support kafka4.x, we would need to add librdkafka as a git submodule, instead of using it as a system dependency.
this is something we may consider in the future

YL Updated by Yuval Lifshitz 6 months ago Actions #6

Actions

Also available in: PDF Atom