Container code runs as root #3

Closed
opened 2022-12-01 00:52:19 +00:00 by jlobbes · 1 comment
Owner

The container currently runs its code as root.
A dedicated user should be created inside the container to prevent this.

The container currently runs its code as root. A dedicated user should be created inside the container to prevent this.
jlobbes added the
medium priority
security
labels 2022-12-01 00:53:50 +00:00
jlobbes added
high priority
and removed
medium priority
labels 2022-12-01 01:11:50 +00:00
Author
Owner

Fixed in e9dd15d290.

Now, a new, non-root user gets created during the image build process.
The user's UID:GID defaults to 1000:1000, but this can be overridden by setting appropriate build arguments.

This newly created user now runs the WSGI server and application code inside the container.

Fixed in https://git.skyforest.net/jlobbes/lumi2/commit/e9dd15d2903f89d843f487f974cdb5759920723d. Now, a new, non-root user gets created during the image build process. The user's `UID:GID` defaults to `1000:1000`, but this can be overridden by setting appropriate build arguments. This newly created user now runs the WSGI server and application code inside the container.
jlobbes removed the
high priority
label 2022-12-01 13:44:42 +00:00
Sign in to join this conversation.
No description provided.