The sanctioned Helm chart could not promote ADR 0004 at all, and the emergency manifests selected enforce. That made a FLEX-WP-0011 apply either a no-op or a global 401. First production pin is now warn, per consumer, on CI digest sha256:138aa347… . Enforce stays a later per-consumer flip so USER-WP-0023-T03 can close without waiting on tenant-engine.
82 lines
2.9 KiB
YAML
82 lines
2.9 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ include "flex-auth.name" . }}
|
|
labels:
|
|
{{- include "flex-auth.labels" . | nindent 4 }}
|
|
spec:
|
|
replicas: {{ .Values.replicaCount }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "flex-auth.selectorLabels" . | nindent 6 }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
{{- include "flex-auth.labels" . | nindent 8 }}
|
|
spec:
|
|
automountServiceAccountToken: false
|
|
{{- if eq (include "flex-auth.callerAuth.enabled" .) "true" }}
|
|
serviceAccountName: {{ include "flex-auth.name" . }}
|
|
{{- end }}
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
containers:
|
|
- name: flex-auth
|
|
image: {{ include "flex-auth.image" . }}
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
args:
|
|
{{- toYaml .Values.args | nindent 12 }}
|
|
{{- if eq (include "flex-auth.callerAuth.enabled" .) "true" }}
|
|
{{- $binding := required "callerAuth.binding is required when callerAuth.mode is warn or enforce" .Values.callerAuth.binding }}
|
|
- --caller-auth-mode
|
|
- {{ include "flex-auth.callerAuth.mode" . | quote }}
|
|
- --caller-kubernetes-url
|
|
- {{ required "callerAuth.kubernetesURL is required when callerAuth.mode is warn or enforce" .Values.callerAuth.kubernetesURL | quote }}
|
|
- --caller-binding
|
|
- {{ $binding | quote }}
|
|
{{- end }}
|
|
ports:
|
|
- name: http
|
|
containerPort: {{ .Values.service.port }}
|
|
livenessProbe:
|
|
httpGet:
|
|
path: {{ .Values.health.path }}
|
|
port: http
|
|
periodSeconds: 20
|
|
readinessProbe:
|
|
httpGet:
|
|
path: {{ .Values.health.path }}
|
|
port: http
|
|
periodSeconds: 5
|
|
resources:
|
|
{{- toYaml .Values.resources | nindent 12 }}
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
drop:
|
|
- ALL
|
|
readOnlyRootFilesystem: true
|
|
{{- if eq (include "flex-auth.callerAuth.enabled" .) "true" }}
|
|
volumeMounts:
|
|
- mountPath: {{ .Values.callerAuth.reviewer.mountPath }}
|
|
name: flex-auth-reviewer
|
|
readOnly: true
|
|
{{- end }}
|
|
{{- if eq (include "flex-auth.callerAuth.enabled" .) "true" }}
|
|
volumes:
|
|
- name: flex-auth-reviewer
|
|
projected:
|
|
defaultMode: 0440
|
|
sources:
|
|
- serviceAccountToken:
|
|
audience: {{ .Values.callerAuth.reviewer.audience | quote }}
|
|
expirationSeconds: {{ .Values.callerAuth.reviewer.expirationSeconds }}
|
|
path: token
|
|
- configMap:
|
|
name: kube-root-ca.crt
|
|
items:
|
|
- key: ca.crt
|
|
path: ca.crt
|
|
{{- end }}
|