Skip to content

Commit

Permalink
Merge pull request #4654 from rystsov/hide-secrets
Browse files Browse the repository at this point in the history
config: redact secrets on bootstrap logging
  • Loading branch information
rystsov committed May 10, 2022
2 parents c0c0ace + 74e2912 commit dc3fd67
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/v/cluster/config_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -145,18 +145,18 @@ void config_manager::start_bootstrap() {
ss::future<> config_manager::do_bootstrap() {
config_update_request update;

config::shard_local_cfg().for_each([&update](
const config::base_property& p) {
if (!p.is_default()) {
json::StringBuffer buf;
json::Writer<json::StringBuffer> writer(buf);
p.to_json(writer);
ss::sstring key_str(p.name());
ss::sstring val_str = buf.GetString();
vlog(clusterlog.info, "Importing property {}={}", key_str, val_str);
update.upsert.push_back({key_str, val_str});
}
});
config::shard_local_cfg().for_each(
[&update](const config::base_property& p) {
if (!p.is_default()) {
json::StringBuffer buf;
json::Writer<json::StringBuffer> writer(buf);
p.to_json(writer);
ss::sstring key_str(p.name());
ss::sstring val_str = buf.GetString();
vlog(clusterlog.info, "Importing property {}", p);
update.upsert.push_back({key_str, val_str});
}
});

// Version of the first write
_frontend.local().set_next_version(config_version{1});
Expand Down

0 comments on commit dc3fd67

Please sign in to comment.