From e361197dec00733c89a4eb3170425ea4099cfc77 Mon Sep 17 00:00:00 2001 From: Flavio Castelli Date: Tue, 21 Nov 2023 22:35:50 +0100 Subject: [PATCH] test: add more policies to the e2e environment This is going to be useful also to perform the k6 tests. Signed-off-by: Flavio Castelli --- e2e-tests/test_data/policies.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/e2e-tests/test_data/policies.yaml b/e2e-tests/test_data/policies.yaml index 2485ac32..bf16f2ee 100644 --- a/e2e-tests/test_data/policies.yaml +++ b/e2e-tests/test_data/policies.yaml @@ -77,3 +77,26 @@ raw-mutation-wasi: - "banana" - "carrot" defaultResource: "hay" + +apparmor: + url: ghcr.io/kubewarden/tests/apparmor-psp:v0.1.13 + allowedToMutate: false + settings: + allowed_profiles: + - runtime/default + +psp-user-group: + url: ghcr.io/kubewarden/tests/user-group-psp:v0.4.9 + allowedToMutate: true + settings: + run_as_user: + rule: MustRunAs + ranges: + - min: 1000 + max: 2000 + run_as_group: + rule: RunAsAny + overwrite: false + supplemental_groups: + rule: RunAsAny + overwrite: false