From: igomon Date: Thu, 2 May 2024 13:56:55 +0000 (-0400) Subject: rgw/s3-notifications: removed logic to dump POST body to prevent printing password... X-Git-Tag: testing/wip-khiremat-testing-20250422.120708-squid-debug~90^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b38f149e688b10b175f4128accd1e8df97664b74;p=ceph-ci.git rgw/s3-notifications: removed logic to dump POST body to prevent printing password associated with topics Signed-off-by: Igor Gomon (cherry picked from commit 334009fb7364bea6c4d4ba91901d18641811ac5f) --- diff --git a/src/rgw/rgw_kafka.cc b/src/rgw/rgw_kafka.cc index 63bf80b3a7b..dbb22dcb568 100644 --- a/src/rgw/rgw_kafka.cc +++ b/src/rgw/rgw_kafka.cc @@ -155,29 +155,6 @@ struct connection_t { } }; -// convert int status to string - including RGW specific values -std::string status_to_string(int s) { - switch (s) { - case STATUS_OK: - return "STATUS_OK"; - case STATUS_CONNECTION_CLOSED: - return "RGW_KAFKA_STATUS_CONNECTION_CLOSED"; - case STATUS_QUEUE_FULL: - return "RGW_KAFKA_STATUS_QUEUE_FULL"; - case STATUS_MAX_INFLIGHT: - return "RGW_KAFKA_STATUS_MAX_INFLIGHT"; - case STATUS_MANAGER_STOPPED: - return "RGW_KAFKA_STATUS_MANAGER_STOPPED"; - case STATUS_CONF_ALLOC_FAILED: - return "RGW_KAFKA_STATUS_CONF_ALLOC_FAILED"; - case STATUS_CONF_REPLCACE: - return "RGW_KAFKA_STATUS_CONF_REPLCACE"; - case STATUS_CONNECTION_IDLE: - return "RGW_KAFKA_STATUS_CONNECTION_IDLE"; - } - return std::string(rd_kafka_err2str((rd_kafka_resp_err_t)s)); -} - void message_callback(rd_kafka_t* rk, const rd_kafka_message_t* rkmessage, void* opaque) { ceph_assert(opaque); diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index 29e12e7720c..daeeaaed407 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -5163,8 +5163,6 @@ void update_attribute_map(const std::string& input, AttributeMap& map) { void parse_post_action(const std::string& post_body, req_state* s) { if (post_body.size() > 0) { - ldpp_dout(s, 10) << "Content of POST: " << post_body << dendl; - if (post_body.find("Action") != string::npos) { const boost::char_separator sep("&"); const boost::tokenizer> tokens(post_body, sep);