Skip to content

VULN-53954 and VULN-53956: Added to enforce a read-only root filesystem and configured the containers to mount to use a temporary place for writing files with emptyDir volume (which acts as a tmpfs) to /tmp.#1081

Merged
jcatera-splunk merged 3 commits intomainfrom
VULN-53956-jcatera
Jan 29, 2026

Conversation

@jcatera-splunk
Copy link
Contributor

@jcatera-splunk jcatera-splunk commented Jan 27, 2026

Key Changes Made:

  • securityContext.readOnlyRootFilesystem: true: - This directly addresses the vulnerability report. It ensures that the container cannot modify any files in its root filesystem. If a process attempts to write to a directory that isn't explicitly mounted as writable, the operation will fail.

  • volumeMounts and volumes: - I added an emptyDir volume named tmp-storage. I mounted this volume at /tmp. This provides the container with a writable space for temporary files (using the node's storage or RAM) without compromising the security of the entire container image.

Additional Hardening (Recommended):

  • runAsNonRoot: true: - Ensures the container does not run with root privileges.
  • allowPrivilegeEscalation: false: - Prevents a process from gaining more privileges than its parent process.

Added default user to prevent the container running as root: runAsUser: 1001

…iners to mount to use a temporary place for writing files with emptyDir volume (which acts as a tmpfs) to /tmp.
@jcatera-splunk jcatera-splunk requested a review from a team as a code owner January 27, 2026 19:22
@jcatera-splunk jcatera-splunk changed the title Added to enforce a read-only root filesystem and configured the containers to mount to use a temporary place for writing files with emptyDir volume (which acts as a tmpfs) to /tmp. VULN-53954 and VULN-53956: Added to enforce a read-only root filesystem and configured the containers to mount to use a temporary place for writing files with emptyDir volume (which acts as a tmpfs) to /tmp. Jan 27, 2026
@jcatera-splunk jcatera-splunk merged commit b23f946 into main Jan 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants