Quote groups in deny log message

This commit is contained in:
Jordan Liggitt 2017-04-28 12:40:38 -04:00
parent 310c914a6d
commit e87bce1f8a
No known key found for this signature in database
GPG Key ID: 24E7ADF9A3B42012

View File

@ -111,7 +111,7 @@ func (r *RBACAuthorizer) Authorize(requestAttributes authorizer.Attributes) (boo
scope = "cluster-wide"
}
glog.Infof("RBAC DENY: user %q groups %v cannot %s %s", requestAttributes.GetUser().GetName(), requestAttributes.GetUser().GetGroups(), operation, scope)
glog.Infof("RBAC DENY: user %q groups %q cannot %s %s", requestAttributes.GetUser().GetName(), requestAttributes.GetUser().GetGroups(), operation, scope)
}
reason := ""