Skip to content

Commit fb2b839

Browse files
authored
Merge pull request #4044 from mercedes-benz/feature-4043-helm-server-access-with-role
server access only with role sechub-frontend #4043
2 parents ae3a7f8 + 2aa0ef6 commit fb2b839

File tree

5 files changed

+4
-9
lines changed

5 files changed

+4
-9
lines changed

sechub-solution/helm/sechub-server/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ type: application
99
# This is the chart version.
1010
# This version number should be incremented each time you make changes to the chart and its templates.
1111
# Versions are expected to follow Semantic Versioning (https://semver.org/)
12-
version: 2.8.0
12+
version: 2.9.0

sechub-solution/helm/sechub-server/templates/networkpolicy.yaml

+1-5
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@ spec:
88
ingress:
99
- from:
1010
- podSelector:
11-
{{- if .Values.security.allowAccessFromSameNamespace }}
12-
{}
13-
{{- else }}
1411
matchLabels:
15-
name: web-ui # Allow SecHub Web-UI access
16-
{{- end }}
12+
role: sechub-frontend # Allow SecHub Web-UI access
1713
ports:
1814
- protocol: TCP
1915
port: 8443

sechub-solution/helm/sechub-server/values.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,6 @@ security:
218218
# Secret key used to encrypt the access token which is sent back to the user after sucessful authentication (or login).
219219
# Must be AES256 compatible (256 bit / 32 byte)
220220
secretKey: Insert-your-32-byte-string-here.
221-
# When set to `true` then Pods from the same k8s namespace are allowed to connect. `false`: only web-ui is allowed.
222-
allowAccessFromSameNamespace: false
223221

224222
storage:
225223
local:

sechub-web-ui-solution/helm/web-ui/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ type: application
1111
# This version number should be incremented each time you make changes to the chart and its templates.
1212
# Versions are expected to follow Semantic Versioning (https://semver.org/)
1313

14-
version: 1.1.0
14+
version: 1.2.0

sechub-web-ui-solution/helm/web-ui/templates/deployment.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ spec:
1818
metadata:
1919
labels:
2020
name: web-ui
21+
role: sechub-frontend
2122
{{- if .Values.templateMetadataAnnotations }}
2223
annotations:
2324
{{ .Values.templateMetadataAnnotations | indent 8 | trim }}

0 commit comments

Comments
 (0)