Run the container as a non-root user #35

Open
opened 2026-06-06 19:58:16 +00:00 by tonym · 0 comments

Severity: medium
Category: infra
Location: Dockerfile

Problem

No USER directive — everything runs as UID 0; a parser RCE would have root in the container.

Suggested fix

Add an app user, chown /app and /data, and USER app (adjust volume perms).

Filed by automated code review.

**Severity:** medium **Category:** infra **Location:** `Dockerfile` ### Problem No USER directive — everything runs as UID 0; a parser RCE would have root in the container. ### Suggested fix Add an `app` user, chown /app and /data, and `USER app` (adjust volume perms). _Filed by automated code review._
tonym added the
infra
severity:medium
labels 2026-06-06 19:58:16 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bonna61/Moon-Household-Budget#35
No description provided.