UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects

Initial Argo STRICT mTLS updates

Merged Anthony Wendt requested to merge bb-1041-argocd-mtls into main
Files
9
# Conditional with the normal conditional + only apply the exception when set to STRICT mode
{{- if and .Values.istio.enabled (eq .Values.istio.mtls.mode "STRICT") }}
apiVersion: "security.istio.io/v1beta1"
kind: PeerAuthentication
metadata:
# Name with the package, "description", and exception
name: argocd-application-controller-metrcis-exception
namespace: {{ .Release.Namespace }}
spec:
mtls:
# Default here is still `mtls.mode`, this allows us to set `PERMISSIVE` just for the metrics port
mode: {{ .Values.istio.mtls.mode }}
selector:
matchLabels:
# Label selector to ONLY the pods that need the exception
app.kubernetes.io/name: argocd-application-controller
# Allow permissive mTLS to application controller metrics
portLevelMtls:
# Port number (in quotes due to Flux getting angry about a number as a yaml key)
"8082":
mode: PERMISSIVE
{{- end }}
Loading