From 8988f72b3c9f519aebf6c895f274a2bbfd6eacfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Cuadrado=20Juan?= Date: Thu, 27 Jun 2024 14:35:48 +0200 Subject: [PATCH 1/2] feat: Update metadata.yml to target all workload resources MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Víctor Cuadrado Juan --- metadata.yml | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/metadata.yml b/metadata.yml index 0fe5afc..27d5a92 100644 --- a/metadata.yml +++ b/metadata.yml @@ -1,13 +1,20 @@ rules: - - apiGroups: - - '' - apiVersions: - - v1 - resources: - - pods - operations: - - CREATE - - UPDATE + - apiGroups: [""] + apiVersions: ["v1"] + resources: ["pods"] + operations: ["CREATE", "UPDATE"] + - 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: true contextAware: false executionMode: kubewarden-wapc @@ -19,7 +26,8 @@ annotations: # kubewarden specific io.kubewarden.policy.ociUrl: ghcr.io/kubewarden/policies/verify-image-signatures io.kubewarden.policy.title: verify-image-signatures - io.kubewarden.policy.description: A Kubewarden Policy that verifies all the signatures + io.kubewarden.policy.description: + A Kubewarden Policy that verifies all the signatures of the container images referenced by a Pod io.kubewarden.policy.author: Kubewarden developers io.kubewarden.policy.url: https://github.com/kubewarden/verify-image-signatures From 6529b8825083a1d4ed90fcd207b6a7182e624b59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Cuadrado=20Juan?= Date: Thu, 27 Jun 2024 14:43:32 +0200 Subject: [PATCH 2/2] chore: Update artifacthub-pkg.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Víctor Cuadrado Juan --- artifacthub-pkg.yml | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/artifacthub-pkg.yml b/artifacthub-pkg.yml index a653296..5e57211 100644 --- a/artifacthub-pkg.yml +++ b/artifacthub-pkg.yml @@ -7,7 +7,7 @@ version: 0.2.9 name: verify-image-signatures displayName: Verify Image Signatures -createdAt: 2024-01-19T10:37:32.708987931Z +createdAt: 2024-06-27T12:43:21.116601507Z description: A Kubewarden Policy that verifies all the signatures of the container images referenced by a Pod license: Apache-2.0 homeURL: https://github.com/kubewarden/verify-image-signatures @@ -267,3 +267,34 @@ annotations: operations: - CREATE - UPDATE + - 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