From 1d7776ecf021c20992d9c6bdd2cb1b64afbd3359 Mon Sep 17 00:00:00 2001 From: Jaehyun Nam Date: Tue, 8 Mar 2022 13:00:29 +0000 Subject: [PATCH] update deployment yamls (#641) Signed-off-by: Jaehyun Nam --- deployments/EKS/kubearmor.yaml | 44 ++++++++++++++--------------- deployments/GKE/kubearmor.yaml | 44 ++++++++++++++--------------- deployments/docker/kubearmor.yaml | 44 ++++++++++++++--------------- deployments/generic/kubearmor.yaml | 44 ++++++++++++++--------------- deployments/k3s/kubearmor.yaml | 44 ++++++++++++++--------------- deployments/microk8s/kubearmor.yaml | 44 ++++++++++++++--------------- deployments/minikube/kubearmor.yaml | 44 ++++++++++++++--------------- 7 files changed, 154 insertions(+), 154 deletions(-) diff --git a/deployments/EKS/kubearmor.yaml b/deployments/EKS/kubearmor.yaml index 12e10177e3..be689564d0 100644 --- a/deployments/EKS/kubearmor.yaml +++ b/deployments/EKS/kubearmor.yaml @@ -386,7 +386,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -435,13 +435,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -478,7 +478,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -487,7 +487,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string readOnly: type: boolean @@ -566,7 +566,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -618,13 +618,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -659,7 +659,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -668,7 +668,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string severity: maximum: 10 @@ -745,12 +745,12 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string message: type: string path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string readOnly: type: boolean @@ -870,7 +870,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -920,13 +920,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -963,7 +963,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -972,7 +972,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string readOnly: type: boolean @@ -1051,7 +1051,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -1111,13 +1111,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -1152,7 +1152,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -1161,7 +1161,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string severity: maximum: 10 diff --git a/deployments/GKE/kubearmor.yaml b/deployments/GKE/kubearmor.yaml index 12e10177e3..be689564d0 100644 --- a/deployments/GKE/kubearmor.yaml +++ b/deployments/GKE/kubearmor.yaml @@ -386,7 +386,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -435,13 +435,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -478,7 +478,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -487,7 +487,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string readOnly: type: boolean @@ -566,7 +566,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -618,13 +618,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -659,7 +659,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -668,7 +668,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string severity: maximum: 10 @@ -745,12 +745,12 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string message: type: string path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string readOnly: type: boolean @@ -870,7 +870,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -920,13 +920,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -963,7 +963,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -972,7 +972,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string readOnly: type: boolean @@ -1051,7 +1051,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -1111,13 +1111,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -1152,7 +1152,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -1161,7 +1161,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string severity: maximum: 10 diff --git a/deployments/docker/kubearmor.yaml b/deployments/docker/kubearmor.yaml index a530818a1a..4303fb7e30 100644 --- a/deployments/docker/kubearmor.yaml +++ b/deployments/docker/kubearmor.yaml @@ -379,7 +379,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -428,13 +428,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -471,7 +471,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -480,7 +480,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string readOnly: type: boolean @@ -559,7 +559,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -611,13 +611,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -652,7 +652,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -661,7 +661,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string severity: maximum: 10 @@ -738,12 +738,12 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string message: type: string path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string readOnly: type: boolean @@ -863,7 +863,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -913,13 +913,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -956,7 +956,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -965,7 +965,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string readOnly: type: boolean @@ -1044,7 +1044,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -1104,13 +1104,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -1145,7 +1145,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -1154,7 +1154,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string severity: maximum: 10 diff --git a/deployments/generic/kubearmor.yaml b/deployments/generic/kubearmor.yaml index 12e10177e3..be689564d0 100644 --- a/deployments/generic/kubearmor.yaml +++ b/deployments/generic/kubearmor.yaml @@ -386,7 +386,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -435,13 +435,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -478,7 +478,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -487,7 +487,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string readOnly: type: boolean @@ -566,7 +566,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -618,13 +618,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -659,7 +659,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -668,7 +668,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string severity: maximum: 10 @@ -745,12 +745,12 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string message: type: string path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string readOnly: type: boolean @@ -870,7 +870,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -920,13 +920,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -963,7 +963,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -972,7 +972,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string readOnly: type: boolean @@ -1051,7 +1051,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -1111,13 +1111,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -1152,7 +1152,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -1161,7 +1161,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string severity: maximum: 10 diff --git a/deployments/k3s/kubearmor.yaml b/deployments/k3s/kubearmor.yaml index 1df1b3c9ca..a97af52cbd 100644 --- a/deployments/k3s/kubearmor.yaml +++ b/deployments/k3s/kubearmor.yaml @@ -379,7 +379,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -428,13 +428,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -471,7 +471,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -480,7 +480,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string readOnly: type: boolean @@ -559,7 +559,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -611,13 +611,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -652,7 +652,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -661,7 +661,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string severity: maximum: 10 @@ -738,12 +738,12 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string message: type: string path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string readOnly: type: boolean @@ -863,7 +863,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -913,13 +913,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -956,7 +956,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -965,7 +965,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string readOnly: type: boolean @@ -1044,7 +1044,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -1104,13 +1104,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -1145,7 +1145,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -1154,7 +1154,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string severity: maximum: 10 diff --git a/deployments/microk8s/kubearmor.yaml b/deployments/microk8s/kubearmor.yaml index e1cd2ff49c..7a5bce27be 100644 --- a/deployments/microk8s/kubearmor.yaml +++ b/deployments/microk8s/kubearmor.yaml @@ -379,7 +379,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -428,13 +428,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -471,7 +471,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -480,7 +480,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string readOnly: type: boolean @@ -559,7 +559,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -611,13 +611,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -652,7 +652,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -661,7 +661,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string severity: maximum: 10 @@ -738,12 +738,12 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string message: type: string path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string readOnly: type: boolean @@ -863,7 +863,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -913,13 +913,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -956,7 +956,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -965,7 +965,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string readOnly: type: boolean @@ -1044,7 +1044,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -1104,13 +1104,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -1145,7 +1145,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -1154,7 +1154,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string severity: maximum: 10 diff --git a/deployments/minikube/kubearmor.yaml b/deployments/minikube/kubearmor.yaml index 5594a96a75..55036d8efd 100644 --- a/deployments/minikube/kubearmor.yaml +++ b/deployments/minikube/kubearmor.yaml @@ -378,7 +378,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -427,13 +427,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -470,7 +470,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -479,7 +479,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string readOnly: type: boolean @@ -558,7 +558,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -610,13 +610,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -651,7 +651,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -660,7 +660,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string severity: maximum: 10 @@ -737,12 +737,12 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string message: type: string path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string readOnly: type: boolean @@ -862,7 +862,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -912,13 +912,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -955,7 +955,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -964,7 +964,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string readOnly: type: boolean @@ -1043,7 +1043,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -1103,13 +1103,13 @@ spec: - Block type: string dir: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)+\/$ + pattern: ^\/$|^\/.*\/$ type: string fromSource: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -1144,7 +1144,7 @@ spec: items: properties: path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string type: object type: array @@ -1153,7 +1153,7 @@ spec: ownerOnly: type: boolean path: - pattern: ^\/([A-z0-9-_.]+\/)*([A-z0-9-_.]+)$ + pattern: ^\/+.*[^\/]$ type: string severity: maximum: 10