diff --git a/nomad/acl_endpoint.go b/nomad/acl_endpoint.go index 955b9680a..dfe92ba2e 100644 --- a/nomad/acl_endpoint.go +++ b/nomad/acl_endpoint.go @@ -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()) } }