Bug 2150907 - [RFE] Bucket Notifications Using SASL with SCRAM-SHA-256 Mechanism
Summary: [RFE] Bucket Notifications Using SASL with SCRAM-SHA-256 Mechanism
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW
Version: 5.0
Hardware: All
OS: Linux
unspecified
urgent
Target Milestone: ---
: 6.0
Assignee: Yuval Lifshitz
QA Contact: Hemanth Sai
Akash Raj
URL:
Whiteboard:
Depends On:
Blocks: 2160209
TreeView+ depends on / blocked
 
Reported: 2022-12-05 15:46 UTC by Raz
Modified: 2023-03-20 19:00 UTC (History)
14 users (show)

Fixed In Version: ceph-17.2.5-50.el9cp
Doc Type: Enhancement
Doc Text:
.Kafka SASL/SCRAM security mechanism is added to bucket notifications With this release, Kafka SASL/SCRAM security mechanism is added to bucket notifications. To know how to use the feature, refer to the "kafka" section https://docs.ceph.com/en/latest/radosgw/notifications/#create-a-topic[_Create a topic_]. Note that end-to-end configuration for the feature,in case of testing, is out of scope of Ceph. To know more about end-to-end testing see https://github.com/ceph/ceph/blob/main/src/test/rgw/bucket_notification/README.rst#kafka-security-tests[_Kafka security tests_].
Clone Of:
: 2160209 (view as bug list)
Environment:
Last Closed: 2023-03-20 18:59:40 UTC
Embargoed:


Attachments (Terms of Use)
RGW log contaiing bucket notifications retries and eventually fails. (45.69 KB, image/jpeg)
2022-12-07 09:30 UTC, Raz
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-5734 0 None None None 2022-12-05 16:03:40 UTC
Red Hat Product Errata RHBA-2023:1360 0 None None None 2023-03-20 19:00:50 UTC

Description Raz 2022-12-05 15:46:27 UTC
Description of problem:
The mechanism for bucket notification utilizing SASL and SCRAM-SHA-256 does not work.


Version-Release number of selected component (if applicable):
5.0z4

How reproducible:


Steps to Reproduce:
1. Setup bucket notifications using SASL with SCRAM-SHA-256 Mechanism.


Actual results:
According to RGW logs, numerous bucket notifications have been retiring and eventually failing due to connection timeout.

Authentication fails, according to Kafka logs.

Expected results:
Notifications managed to be pushed to Kafka.

Additional info:

A customer asked that this be addressed as soon as possible and deamnds a hotfix when fixed

Adding Github PR 
https://github.com/ceph/ceph/pull/48911

Screenshots of the RGW's log will be added tomorrow.

Comment 1 Yuval Lifshitz 2022-12-05 17:35:52 UTC
note that PR #48911 is just for testing SASL with SCRAM-SHA-256 mechanism.
the actual work of supporting SASL with mechanisms other than PLAIN is this: https://github.com/ceph/ceph/pull/4818

please also note that the combination of SASL (regardless of mechanism) over non-TLS connection (a.k.a PLAINTEXT) will be supported only when:
rgw_allow_notification_secrets_in_cleartext=true
since we consider sending user/password over non-TLS connection a security issue.

Comment 2 Raz 2022-12-07 09:30:56 UTC
Created attachment 1930740 [details]
RGW log contaiing bucket notifications retries and eventually fails.

Comment 30 errata-xmlrpc 2023-03-20 18:59:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat Ceph Storage 6.0 Bug Fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:1360


Note You need to log in before you can comment on or make changes to this bug.