Redact sensitive values from config in health data (#12421)

The health api returns the server configuration details. Redact
sensitive values from the config values like URLs and credentials.
This commit is contained in:
Shireesh Anjal
2021-06-03 20:45:44 +05:30
committed by GitHub
parent 7a3b5235bf
commit fb140c146b
8 changed files with 73 additions and 1 deletions

View File

@@ -1565,7 +1565,7 @@ func (a adminAPIHandlers) HealthInfoHandler(w http.ResponseWriter, r *http.Reque
}
} else {
healthInfo.Minio.Config = madmin.MinioConfig{
Config: config,
Config: config.RedactSensitiveInfo(),
}
}
partialWrite(healthInfo)