Redact pin and mac from config (#4657)

This commit is contained in:
premultiply 2022-09-30 21:26:50 +02:00 • committed by GitHub
parent eeae2f0b97
commit ea79afee58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -153,9 +153,9 @@ func unwrap(err error) (res []string) {
func redact(src string) string {
secrets := []string{
"url", "uri", "host", "broker", // infrastructure
"url", "uri", "host", "broker", "mac", // infrastructure
"sponsortoken", "plant", // global settings
"user", "password", // users
"user", "password", "pin", // users
"token", "access", "refresh", // tokens
"ain", "id", "secret", "serial", "deviceid", "machineid", // devices
"vin"} // vehicles