mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
sanitize auth method in create/update reply (#25519)
create/update APIs only work for someone who has the secret(s) in hand, but that someone could be a CI system, which might log output.
This commit is contained in:
@@ -1947,7 +1947,7 @@ func (a *ACL) UpsertAuthMethods(
|
||||
return structs.NewErrRPCCodedf(400, "ACL auth method lookup failed: %v", err)
|
||||
}
|
||||
if lookupAuthMethod != nil {
|
||||
reply.AuthMethods = append(reply.AuthMethods, lookupAuthMethod)
|
||||
reply.AuthMethods = append(reply.AuthMethods, lookupAuthMethod.Sanitize())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user