Skip to content

Commit 64995dd

Browse files
committed
hardened webhook certificate management and rotation
1 parent 737c253 commit 64995dd

8 files changed

Lines changed: 809 additions & 149 deletions

File tree

charts/typesense-operator/templates/deployment.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ spec:
6666
- containerPort: 9443
6767
name: webhook-server
6868
protocol: TCP
69+
- containerPort: 8081
70+
name: health
71+
protocol: TCP
6972
readinessProbe:
7073
httpGet:
7174
path: /readyz
@@ -78,7 +81,7 @@ spec:
7881
| nindent 10 }}
7982
volumeMounts:
8083
- mountPath: /tmp/k8s-webhook-server/serving-certs
81-
name: webhook-certs
84+
name: cert-dir
8285
nodeSelector: {{- toYaml .Values.controllerManager.nodeSelector | nindent 8 }}
8386
securityContext: {{- toYaml .Values.controllerManager.podSecurityContext | nindent
8487
8 }}
@@ -90,4 +93,4 @@ spec:
9093
| nindent 8 }}
9194
volumes:
9295
- emptyDir: {}
93-
name: webhook-certs
96+
name: cert-dir

charts/typesense-operator/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ controllerManager:
1616
capabilities:
1717
drop:
1818
- ALL
19+
readOnlyRootFilesystem: true
1920
image:
2021
repository: example.com/typesense-operator
2122
tag: v0.0.1

0 commit comments

Comments
 (0)