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 defenseunicorns#599

Signed-off-by: jamestexas <[email protected]>
  • Loading branch information
jamestexas committed Jul 31, 2024
1 parent f2164e1 commit af20fb9
Show file tree
Hide file tree
Showing 2 changed files with 4 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 }}
3 changes: 3 additions & 0 deletions src/istio/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ name: change-me
domain: "###ZARF_VAR_DOMAIN###"

# tls:
# # Set to true to support TLS 1.2, false for TLS 1.3 only
# supportTLSV1_2: false

# # The TLS certificate for the gateway, if not in 'PASSTHROUGH' mode (base64 encoded)
# cert: ""

Expand Down

0 comments on commit af20fb9

Please sign in to comment.