From e87bce1f8ae30e72a055943ec1ff0e0b8492ca8a Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Fri, 28 Apr 2017 12:40:38 -0400 Subject: [PATCH] Quote groups in deny log message --- plugin/pkg/auth/authorizer/rbac/rbac.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/pkg/auth/authorizer/rbac/rbac.go b/plugin/pkg/auth/authorizer/rbac/rbac.go index 7851cf2a388..25d773909e7 100644 --- a/plugin/pkg/auth/authorizer/rbac/rbac.go +++ b/plugin/pkg/auth/authorizer/rbac/rbac.go @@ -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 := ""