Skip to content

Commit 8f5fe2a

Browse files
committed
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]>
1 parent 0f38883 commit 8f5fe2a

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

metadata.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,30 @@
11
rules:
2-
- apiGroups: [""]
3-
apiVersions: ["v1"]
4-
resources: ["namespace"]
5-
operations: ["CREATE"]
2+
- apiGroups:
3+
- ''
4+
apiVersions:
5+
- v1
6+
resources:
7+
- namespace
8+
operations:
9+
- CREATE
610
mutating: false
711
contextAwareResources:
8-
- apiVersion: management.cattle.io/v3
9-
kind: Project
12+
- apiVersion: management.cattle.io/v3
13+
kind: Project
1014
executionMode: kubewarden-wapc
1115
annotations:
12-
# artifacthub specific:
16+
# artifacthub specific
1317
io.artifacthub.displayName: Rancher Project quotas namespace validator
1418
io.artifacthub.resources: management.cattle.io/Project
1519
io.artifacthub.keywords: rancher, project, quotas
20+
# kubewarden specific
1621
io.kubewarden.policy.ociUrl: ghcr.io/kubewarden/policies/rancher-project-quotas-namespace-validator
17-
# kubewarden specific:
1822
io.kubewarden.policy.title: rancher-project-quotas-namespace-validator
19-
io.kubewarden.policy.description: Prevent the creation of Namespace under a Rancher Project that doesn't have any resource quota left
20-
io.kubewarden.policy.author: "Kubewarden developers <[email protected]>"
23+
io.kubewarden.policy.description: Prevent the creation of Namespace under a Rancher
24+
Project that doesn't have any resource quota left
25+
io.kubewarden.policy.author: Kubewarden developers <[email protected]>
2126
io.kubewarden.policy.url: https://github.com/kubewarden/rancher-project-quotas-namespace-validator
2227
io.kubewarden.policy.source: https://github.com/kubewarden/rancher-project-quotas-namespace-validator
2328
io.kubewarden.policy.license: Apache-2.0
29+
io.kubewarden.policy.category: Rancher
30+
io.kubewarden.policy.severity: medium

0 commit comments

Comments
 (0)