Skip to content

Commit

Permalink
feat(istio): add configurable TLS version
Browse files Browse the repository at this point in the history
- Introduced support for configuring the minimum TLS version for UDS Core.
- Added 'supportTLSV1_2' boolean flag in values file to allow selection between TLS 1.2 and TLS 1.3.
- Updated Helm templates to conditionally set 'minProtocolVersion' based on 'supportTLSV1_2' value.
- Ensured backward compatibility by defaulting to TLS 1.3.
- Commented and documented the new configuration option for clarity.

Closes #599

Signed-off-by: jamestexas <[email protected]>
  • Loading branch information
jamestexas committed Jul 31, 2024
1 parent f2164e1 commit d5a0ee2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/istio/chart/templates/gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
mode: {{ $server.mode }}
{{- if ne $server.mode "PASSTHROUGH" }}
credentialName: gateway-tls
minProtocolVersion: TLSV1_3
minProtocolVersion: {{ if .Values.tls.supportTLSV1_2 }}TLSV1_2{{ else }}TLSV1_3{{ end }}
{{- end }}
{{ end }}
{{ end }}
2 changes: 2 additions & 0 deletions src/istio/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ domain: "###ZARF_VAR_DOMAIN###"
# # Hosts to add to this gateway
# hosts:
# - "*"
# # Whether to support TLS 1.2 (if false, only TLS 1.3 will be supported)
# supportTLSV1_2: false

0 comments on commit d5a0ee2

Please sign in to comment.