Skip to content

Commit 57cc98a

Browse files
Simplify FedRamp deployment (#429)
* Simplify FedRamp deployment Set `global.isFedRamp` to true for FedRamp deployments (default is false). Co-authored-by: nitzanzuler <[email protected]>
1 parent 1b6a341 commit 57cc98a

File tree

14 files changed

+60
-25
lines changed

14 files changed

+60
-25
lines changed

wiz-admission-controller/templates/_helpers.tpl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,3 +406,11 @@ Clean the list of deployments for the auto-update flag, removing quotes and brac
406406
value: "{{ .Values.global.istio.proxySidecarPort }}"
407407
{{- end }}
408408
{{- end -}}
409+
410+
{{- define "wiz-admission-controller.image" -}}
411+
{{- if .Values.global.isFedRamp -}}
412+
publicregistryfedrampwizio.azurecr.us/wiz-app/wiz-admission-controller-fips:{{ .Values.image.tag | default .Chart.AppVersion }}
413+
{{- else -}}
414+
{{ coalesce .Values.global.image.registry .Values.image.registry }}/{{ coalesce .Values.global.image.repository .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
415+
{{- end -}}
416+
{{- end -}}

wiz-admission-controller/templates/deploymentauditlogs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ spec:
5858
{{- else }}
5959
{{- toYaml .Values.securityContext | nindent 12 }}
6060
{{- end }}
61-
image: "{{ coalesce .Values.global.image.registry .Values.image.registry }}/{{ coalesce .Values.global.image.repository .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
61+
image: {{ include "wiz-admission-controller.image" . }}
6262
imagePullPolicy: {{ .Values.image.pullPolicy }}
6363
ports:
6464
- containerPort: {{ .Values.service.targetPort }}

wiz-admission-controller/templates/deploymentenforcement.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ spec:
5858
{{- else }}
5959
{{- toYaml .Values.securityContext | nindent 12 }}
6060
{{- end }}
61-
image: "{{ coalesce .Values.global.image.registry .Values.image.registry }}/{{ coalesce .Values.global.image.repository .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
61+
image: {{ include "wiz-admission-controller.image" . }}
6262
imagePullPolicy: {{ .Values.image.pullPolicy }}
6363
ports:
6464
- containerPort: {{ .Values.service.targetPort }}

wiz-admission-controller/values.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ commonLabels: {} # Labels applied on all the resources (not used for selection)
1010
wizApiToken:
1111
clientId: "" # Client ID of the Wiz Service Account.
1212
clientToken: "" # Client secret of the Wiz Service Account.
13-
clientEndpoint: "" # Set to 'gov' or 'fedramp' for gov/fedramp tenants only, otherwise leave blank.
13+
clientEndpoint: "" # Defaults to commercial.
14+
# If `global.isFedRamp` is `true`, this field gets automatically set to `fedramp`.
1415

1516
secret:
1617
# Should a Secret be created by the chart or not.
@@ -53,12 +54,11 @@ podDisruptionBudget:
5354

5455
image:
5556
registry: wiziopublic.azurecr.io/wiz-app
56-
# Use this if you are deploying on federal environments with FIPS endpoints.
57-
# repository: wiz-admission-controller-fips
5857
repository: wiz-admission-controller
5958
pullPolicy: Always
6059
# Overrides the image tag whose default is the chart appVersion.
6160
tag: ""
61+
6262
imagePullSecrets: [] # Secrets for container image registry keys as described in https://kubernetes.io/docs/concepts/containers/images/#referring-to-an-imagepullsecrets-on-a-pod
6363

6464
priorityClassName: ""
@@ -489,7 +489,8 @@ global:
489489
wizApiToken:
490490
clientId: ""
491491
clientToken: ""
492-
clientEndpoint: "" # Wiz endpoint to connect to (required for gov tenants).
492+
clientEndpoint: "" # Defaults to commercial.
493+
# If `global.isFedRamp` is `true`, this field gets automatically set to `fedramp`.
493494

494495
secret:
495496
# The name of the Wiz Service Account Secret.
@@ -556,3 +557,6 @@ global:
556557
#
557558
# lowPrivilegePodSecurityPolicy: {}
558559
# lowPrivilegeSecurityPolicy: {}
560+
561+
# Set to true to use FedRamp endpoints and FIPS-compliant images.
562+
isFedRamp: false

wiz-broker/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ description: Wiz Broker for tunneling http traffic to Wiz backend
44

55
type: application
66

7-
version: 2.1.0
7+
version: 2.2.0
88
appVersion: "2.5"

wiz-broker/templates/_helpers.tpl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,11 @@ Secrets names
103103
{{- define "wiz-broker.connectorSecretName" -}}
104104
{{ coalesce (.Values.wizConnector.secretName) (printf "%s-connector" .Release.Name) }}
105105
{{- end }}
106+
107+
{{- define "wiz-broker.image" -}}
108+
{{- if .Values.global.isFedRamp -}}
109+
publicregistryfedrampwizio.azurecr.us/wiz-app/wiz-broker-fips:{{ .Values.image.tag | default .Chart.AppVersion }}
110+
{{- else -}}
111+
{{ coalesce .Values.global.image.registry .Values.image.registry }}/{{ coalesce .Values.global.image.repository .Values.image.repository }}:{{ coalesce .Values.global.image.tag .Values.image.tag | default .Chart.AppVersion }}
112+
{{- end -}}
113+
{{- end -}}

wiz-broker/templates/wiz-broker-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ spec:
7777
{{- else }}
7878
{{- toYaml .Values.global.securityContext | nindent 12 }}
7979
{{- end }}
80-
image: "{{ coalesce .Values.global.image.registry .Values.image.registry }}/{{ coalesce .Values.global.image.repository .Values.image.repository }}:{{ coalesce .Values.global.image.tag .Values.image.tag | default .Chart.AppVersion }}"
80+
image: {{ include "wiz-broker.image" . }}
8181
imagePullPolicy: {{ coalesce .Values.global.image.pullPolicy .Values.image.pullPolicy }}
8282
volumeMounts:
8383
- name: connector-data

wiz-broker/values.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ commonLabels: {} # Labels applied on all the resources (not used for selection)
99

1010
image:
1111
registry: wiziopublic.azurecr.io/wiz-app
12-
# Use this if you are deploying on federal environments with FIPS endpoints.
13-
# repository: wiz-broker-fips
1412
repository: wiz-broker
1513
pullPolicy: Always
1614
# Overrides the image tag whose default is the chart appVersion.
@@ -71,7 +69,8 @@ wizConnector:
7169
wizApiToken:
7270
clientId: "" # Client ID of the Wiz Service Account.
7371
clientToken: "" # Client secret of the Wiz Service Account.
74-
clientEndpoint: "" # Set to 'gov' or 'fedramp' for gov/fedramp tenants only, otherwise leave blank.
72+
clientEndpoint: "" # Defaults to commercial.
73+
# If `global.isFedRamp` is `true`, this field gets automatically set to `fedramp`.
7574

7675
secret:
7776
# Should a Secret be created by the chart or not.
@@ -116,8 +115,6 @@ global:
116115

117116
image:
118117
registry: wiziopublic.azurecr.io/wiz-app
119-
# Use this if you are deploying on federal environments with FIPS endpoints.
120-
# repository: wiz-broker-fips
121118
repository: wiz-broker
122119
pullPolicy: Always # Always pull the image on every deployment
123120
# Overrides the image tag whose default is the chart appVersion.
@@ -151,11 +148,15 @@ global:
151148
runAsUser: 1000
152149

153150
wizApiToken:
154-
clientEndpoint: "" # Wiz endpoint to connect to (required for gov tenants).
151+
clientEndpoint: "" # Defaults to commercial.
152+
# If `global.isFedRamp` is `true`, this field gets automatically set to `fedramp`.
155153
secret:
156154
name: "" # Override with parent secret name
157155

158156
httpProxyConfiguration:
159157
enabled: false # Should the components use a proxy.
160158
create: false # Secret created by wiz-broker.
161159
secretName: "" # The name of the proxy Secret.
160+
161+
# Set to true to use FedRamp endpoints and FIPS-compliant images.
162+
isFedRamp: false

wiz-kubernetes-connector/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 3.1.1
18+
version: 3.2.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

wiz-kubernetes-connector/templates/_helpers.tpl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,3 +225,11 @@ delete-kubernetes-connector
225225
- >
226226
{{- printf "%s" $output | nindent 2 }}
227227
{{- end }}
228+
229+
{{- define "wiz-broker.image" -}}
230+
{{- if .Values.global.isFedRamp -}}
231+
publicregistryfedrampwizio.azurecr.us/wiz-app/wiz-broker-fips:{{ .Values.image.tag | default .Chart.AppVersion }}
232+
{{- else -}}
233+
{{ coalesce .Values.global.image.registry .Values.image.registry }}/{{ coalesce .Values.global.image.repository .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
234+
{{- end -}}
235+
{{- end -}}

0 commit comments

Comments
 (0)