Skip to content

Commit ac0ce73

Browse files
authored
Reflect DecisionNoOpinion in RBAC authorizer logs (kubernetes#89608)
* Reflect DecisionNoOpinion in RBAC authorizer logs * Modify RBAC authorizer log message
1 parent 4a598aa commit ac0ce73

File tree

1 file changed

+1
-1
lines changed
  • plugin/pkg/auth/authorizer/rbac

1 file changed

+1
-1
lines changed

plugin/pkg/auth/authorizer/rbac/rbac.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func (r *RBACAuthorizer) Authorize(ctx context.Context, requestAttributes author
116116
scope = "cluster-wide"
117117
}
118118

119-
klog.Infof("RBAC DENY: user %q groups %q cannot %s %s", requestAttributes.GetUser().GetName(), requestAttributes.GetUser().GetGroups(), operation, scope)
119+
klog.Infof("RBAC: no rules authorize user %q with groups %q to %s %s", requestAttributes.GetUser().GetName(), requestAttributes.GetUser().GetGroups(), operation, scope)
120120
}
121121

122122
reason := ""

0 commit comments

Comments
 (0)