mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user