-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: background audit config, severity and category annotations.
Updates policy metadata.yml file adding the new configuration to enabled background audit checks and adds two new annotations used by the audit scanner in its reports. Signed-off-by: José Guilherme Vanz <[email protected]>
- Loading branch information
Showing
1 changed file
with
43 additions
and
19 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 |
---|---|---|
@@ -1,33 +1,57 @@ | ||
rules: | ||
- apiGroups: [""] | ||
apiVersions: ["v1"] | ||
resources: ["pods"] | ||
operations: ["CREATE"] # kubernetes doesn't allow to add/remove privileged containers to an already running pod | ||
- apiGroups: [""] | ||
apiVersions: ["v1"] | ||
resources: ["replicationcontrollers"] | ||
operations: ["CREATE", "UPDATE"] | ||
- apiGroups: ["apps"] | ||
apiVersions: ["v1"] | ||
resources: ["deployments","replicasets","statefulsets","daemonsets"] | ||
operations: ["CREATE", "UPDATE"] | ||
- apiGroups: ["batch"] | ||
apiVersions: ["v1"] | ||
resources: ["jobs","cronjobs"] | ||
operations: ["CREATE", "UPDATE"] | ||
- apiGroups: | ||
- '' | ||
apiVersions: | ||
- v1 | ||
resources: | ||
- pods | ||
operations: | ||
- CREATE | ||
- apiGroups: | ||
- '' | ||
apiVersions: | ||
- v1 | ||
resources: | ||
- replicationcontrollers | ||
operations: | ||
- CREATE | ||
- UPDATE | ||
- apiGroups: | ||
- apps | ||
apiVersions: | ||
- v1 | ||
resources: | ||
- deployments | ||
- replicasets | ||
- statefulsets | ||
- daemonsets | ||
operations: | ||
- CREATE | ||
- UPDATE | ||
- apiGroups: | ||
- batch | ||
apiVersions: | ||
- v1 | ||
resources: | ||
- jobs | ||
- cronjobs | ||
operations: | ||
- CREATE | ||
- UPDATE | ||
mutating: false | ||
contextAware: false | ||
annotations: | ||
# artifacthub specific | ||
io.artifacthub.displayName: Pod Privileged Policy | ||
io.artifacthub.resources: Pod | ||
io.artifacthub.keywords: psp, pod, container, privileged | ||
# kubewarden specific | ||
io.kubewarden.policy.ociUrl: ghcr.io/kubewarden/policies/pod-privileged | ||
# io.kubewarden.hidden-ui: "true" | ||
# rest | ||
io.kubewarden.policy.title: pod-privileged-policy | ||
io.kubewarden.policy.description: Limit the ability to create privileged containers | ||
io.kubewarden.policy.author: "Kubewarden developers <[email protected]>" | ||
io.kubewarden.policy.author: Kubewarden developers <[email protected]> | ||
io.kubewarden.policy.url: https://github.com/kubewarden/pod-privileged-policy | ||
io.kubewarden.policy.source: https://github.com/kubewarden/pod-privileged-policy | ||
io.kubewarden.policy.license: Apache-2.0 | ||
io.kubewarden.policy.category: PSP | ||
io.kubewarden.policy.severity: medium |