Skip to content

Commit cbdc1b3

Browse files
author
Jake Sanders
authored
add a writeable $HOME for the nonroot cosigned user (#1209)
Signed-off-by: Jake Sanders <[email protected]>
1 parent 4d4c830 commit cbdc1b3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

config/webhook.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ spec:
7171
drop:
7272
- all
7373

74+
volumeMounts:
75+
# Failing to provide a writable $HOME can cause TUF client initialization to panic
76+
- mountPath: /home/nonroot
77+
name: writable-home-dir
78+
7479
readinessProbe: &probe
7580
failureThreshold: 6
7681
initialDelaySeconds: 20
@@ -86,6 +91,10 @@ spec:
8691
# Our webhook should gracefully terminate by lame ducking first, set this to a sufficiently
8792
# high value that we respect whatever value it has configured for the lame duck grace period.
8893
terminationGracePeriodSeconds: 300
94+
95+
volumes:
96+
- emptyDir: {}
97+
name: writable-home-dir
8998
---
9099
apiVersion: v1
91100
kind: Secret

0 commit comments

Comments
 (0)