Configure HTTP01 solver Pod with readOnlyRootFilesystem
Signed-off-by: Richard Wall <richard.wall@venafi.com>
This commit is contained in:
parent
c8640908e7
commit
9b5dd86084
@ -226,6 +226,7 @@ func (s *Solver) buildDefaultPod(ch *cmacme.Challenge) *corev1.Pod {
|
||||
},
|
||||
},
|
||||
SecurityContext: &corev1.SecurityContext{
|
||||
ReadOnlyRootFilesystem: ptr.To(true),
|
||||
AllowPrivilegeEscalation: ptr.To(false),
|
||||
Capabilities: &corev1.Capabilities{
|
||||
Drop: []corev1.Capability{"ALL"},
|
||||
|
||||
@ -116,6 +116,7 @@ func TestEnsurePod(t *testing.T) {
|
||||
},
|
||||
},
|
||||
SecurityContext: &corev1.SecurityContext{
|
||||
ReadOnlyRootFilesystem: ptr.To(true),
|
||||
AllowPrivilegeEscalation: ptr.To(false),
|
||||
Capabilities: &corev1.Capabilities{
|
||||
Drop: []corev1.Capability{"ALL"},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user