Report sensitive configuration values instead of the configuration source

This commit is contained in:
Vitaliy Filippov
2021-04-17 23:11:16 +03:00
parent 33f9d03d22
commit bd7b177707
3 changed files with 16 additions and 5 deletions
+1
View File
@@ -84,6 +84,7 @@ void osd_t::parse_config(blockstore_config_t & config)
run_primary = config["run_primary"] != "false" && config["run_primary"] != "0" && config["run_primary"] != "no";
no_rebalance = config["no_rebalance"] == "true" || config["no_rebalance"] == "1" || config["no_rebalance"] == "yes";
no_recovery = config["no_recovery"] == "true" || config["no_recovery"] == "1" || config["no_recovery"] == "yes";
allow_test_ops = config["allow_test_ops"] == "true" || config["allow_test_ops"] == "1" || config["allow_test_ops"] == "yes";
// Cluster configuration
bind_address = config["bind_address"];
if (bind_address == "")