Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgw/notification: Do not log endpoint as it could contain broker user-id & password. #57098

Merged
merged 1 commit into from
May 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/rgw/driver/rados/rgw_notify.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "rgw_perf_counters.h"
#include "services/svc_zone.h"
#include "common/dout.h"
#include "rgw_url.h"
#include <chrono>

#define dout_subsys ceph_subsys_rgw_notification
Expand Down Expand Up @@ -71,9 +72,14 @@ WRITE_CLASS_ENCODER(event_entry_t)

static inline std::ostream& operator<<(std::ostream& out,
const event_entry_t& e) {
std::string host;
std::string user;
std::string password;
parse_url_authority(e.push_endpoint, host, user, password);
return out << "notification id: '" << e.event.configurationId
<< "', topic: '" << e.arn_topic
<< "', endpoint: '" << e.push_endpoint
<< "', endpoint: '" << host
<< "', endpoint_user: '" << user
<< "', bucket_owner: '" << e.event.bucket_ownerIdentity
<< "', bucket: '" << e.event.bucket_name
<< "', object: '" << e.event.object_key
Expand Down