Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: missing notifier descriptors permissions in notification role te…
…mplate
- Loading branch information
Showing
2 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,14 @@ metadata: | |
name: role-template-notifier-config | ||
labels: | ||
halo.run/role-template: "true" | ||
halo.run/hidden: "true" | ||
annotations: | ||
rbac.authorization.halo.run/module: "Notification Configuration" | ||
rbac.authorization.halo.run/display-name: "Configure Notifier" | ||
rbac.authorization.halo.run/ui-permissions: | | ||
["system:notifier:configuration"] | ||
rules: | ||
- apiGroups: [ "notification.halo.run" ] | ||
resources: [ "notifierDescriptors" ] | ||
verbs: [ "*" ] | ||
Check warning Code scanning / SonarCloud Wildcards should not be used to define RBAC permissions Medium
Do not use wildcards when defining RBAC permissions. See more on SonarCloud
|
||
- apiGroups: [ "api.console.halo.run" ] | ||
resources: [ "notifiers/sender-config" ] | ||
verbs: [ "get", "update" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters