Skip to content

Commit f50ffd4

Browse files
author
eliranb
committed
Add read-only root filesystem to init container configuration for enhanced security.
1 parent b5205fe commit f50ffd4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/controller/patch_funcs.go

+1
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ func (r *LightrunJavaAgentReconciler) addInitContainer(deploymentApplyConfig *ap
141141
).
142142
WithAllowPrivilegeEscalation(false).
143143
WithRunAsNonRoot(true).
144+
WithReadOnlyRootFilesystem(true).
144145
WithSeccompProfile(
145146
corev1ac.SeccompProfile().
146147
WithType(corev1.SeccompProfileTypeRuntimeDefault),

0 commit comments

Comments
 (0)