You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now handles multiple values in any of APIGroups, Resources, or Verbs.
Adds small utility function for trimming and splitting those values into
a string slice.
Signed-off-by: Tayler Geiger <[email protected]>
Copy file name to clipboardExpand all lines: internal/operator-controller/authorization/rbac.go
+16-4Lines changed: 16 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -563,7 +563,7 @@ func parseEscalationErrorForMissingRules(ecError error) ([]rbacv1.PolicyRule, er
563
563
// Group 2: Optional resolution errors
564
564
errRegex:=regexp.MustCompile(`(?s)^user ".*" \(groups=.*\) is attempting to grant RBAC permissions not currently held: (.*)(?:; resolution errors: (.*))?$`)
565
565
// permRegex extracts the details (APIGroups, Resources, Verbs) of individual permissions listed within the error message
0 commit comments