From d229cd4c8dfdce2cc755de6c8f09ea16b4463ff0 Mon Sep 17 00:00:00 2001 From: yati1998 Date: Wed, 19 Jan 2022 12:07:46 +0530 Subject: [PATCH] csi: restrict csiaddons to use only 1 port This commit restrict csiaddons to open only 1 port as per the requirement which is required for security. Fixes: #9604 Signed-off-by: yati1998 (cherry picked from commit c559bbdf6bdf5727530b080129c21c4bf91a2437) --- build/rbac/rbac.yaml | 4 ++-- deploy/charts/rook-ceph/templates/psp.yaml | 4 ++-- deploy/examples/common.yaml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build/rbac/rbac.yaml b/build/rbac/rbac.yaml index 0a78706c3..8e372e4bb 100644 --- a/build/rbac/rbac.yaml +++ b/build/rbac/rbac.yaml @@ -758,8 +758,8 @@ spec: - min: 9283 max: 9283 # port for CSIAddons - - min: 9061 - max: 9079 + - min: 9070 + max: 9070 --- kind: Role apiVersion: rbac.authorization.k8s.io/v1 diff --git a/deploy/charts/rook-ceph/templates/psp.yaml b/deploy/charts/rook-ceph/templates/psp.yaml index c158e2e7b..23c5a415b 100644 --- a/deploy/charts/rook-ceph/templates/psp.yaml +++ b/deploy/charts/rook-ceph/templates/psp.yaml @@ -77,8 +77,8 @@ spec: - min: 9283 max: 9283 # port for CSIAddons - - min: 9061 - max: 9079 + - min: 9070 + max: 9070 {{- if .Values.rbacEnable }} --- apiVersion: rbac.authorization.k8s.io/v1 diff --git a/deploy/examples/common.yaml b/deploy/examples/common.yaml index 81df9f3a5..254a03b2e 100644 --- a/deploy/examples/common.yaml +++ b/deploy/examples/common.yaml @@ -842,8 +842,8 @@ spec: - min: 9283 max: 9283 # port for CSIAddons - - min: 9061 - max: 9079 + - min: 9070 + max: 9070 --- kind: Role apiVersion: rbac.authorization.k8s.io/v1