Reflect DecisionNoOpinion in RBAC authorizer logs (#89608)

* Reflect DecisionNoOpinion in RBAC authorizer logs

* Modify RBAC authorizer log message
This commit is contained in:
Gaurav Sofat 2020-04-09 02:07:44 +05:30 committed by GitHub
parent 4a598aab10
commit ac0ce7338e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,7 @@ func (r *RBACAuthorizer) Authorize(ctx context.Context, requestAttributes author
scope = "cluster-wide"
}
klog.Infof("RBAC DENY: user %q groups %q cannot %s %s", requestAttributes.GetUser().GetName(), requestAttributes.GetUser().GetGroups(), operation, scope)
klog.Infof("RBAC: no rules authorize user %q with groups %q to %s %s", requestAttributes.GetUser().GetName(), requestAttributes.GetUser().GetGroups(), operation, scope)
}
reason := ""