]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw/s3-notifications: removed logic to dump POST body to prevent printing password...
authorigomon <igomon@bloomberg.net>
Thu, 2 May 2024 13:56:55 +0000 (09:56 -0400)
committerigomon <igomon@bloomberg.net>
Fri, 20 Dec 2024 17:29:57 +0000 (12:29 -0500)
Signed-off-by: Igor Gomon <igomon@bloomberg.net>
(cherry picked from commit 334009fb7364bea6c4d4ba91901d18641811ac5f)

src/rgw/rgw_kafka.cc
src/rgw/rgw_rest_s3.cc

index 63bf80b3a7b65b7ec0d8d5382c9034e1532e9fa7..dbb22dcb5689aabeeb337968a2d0f68162c67942 100644 (file)
@@ -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);
 
index 29e12e7720cd9f2ab895e0b27a1e8efce80a19dc..daeeaaed40708762f49585fbf50a8c626768343d 100644 (file)
@@ -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<char> sep("&");
       const boost::tokenizer<boost::char_separator<char>> tokens(post_body, sep);