redact vcenter pw from logs
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -89,7 +89,10 @@ func (s *Settings) ReadYMLSettings() error {
|
|||||||
return fmt.Errorf("unable to decode settings file : '%s'", err)
|
return fmt.Errorf("unable to decode settings file : '%s'", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
s.Logger.Debug("Updating settings", "settings", settings)
|
// Avoid logging sensitive fields (e.g., credentials).
|
||||||
|
redacted := settings
|
||||||
|
redacted.Settings.VcenterPassword = "REDACTED"
|
||||||
|
s.Logger.Debug("Updating settings", "settings", redacted)
|
||||||
s.Values = &settings
|
s.Values = &settings
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user