mirror of
https://github.com/minio/minio.git
synced 2024-12-25 22:55:54 -05:00
4d6d4244f1
Ensure that hostnames / ip addresses are not printed in the subnet health report. Anonymize them by replacing them with `servern` where `n` represents the position of the server in the pool. This is done by building a `host anonymizer` map that maps every possible value containing the host e.g. host, host:port, http://host:port, etc to the corresponding anonymized name and using this map to replace the values at the time of health report generation. A different logic is used to anonymize host names in the `procinfo` data, as the host names are part of an ellipses pattern in the process start command. Here we just replace the prefix/suffix of the ellipses pattern with their hashes. |
||
---|---|---|
.. | ||
api | ||
cache | ||
compress | ||
dns | ||
etcd | ||
heal | ||
identity | ||
notify | ||
policy/opa | ||
scanner | ||
storageclass | ||
bool-flag_test.go | ||
bool-flag.go | ||
certs_test.go | ||
certs.go | ||
certsinfo.go | ||
config_test.go | ||
config.go | ||
constants.go | ||
crypto_test.go | ||
crypto.go | ||
errors-utils.go | ||
errors.go | ||
help.go | ||
legacy.go |