Skip to content

Make sure the dev docker image is not using root user - #43

Merged
RomanPszonka merged 7 commits into
openutm:mainfrom
atti92:root-permissions
Nov 23, 2025
Merged

Make sure the dev docker image is not using root user#43
RomanPszonka merged 7 commits into
openutm:mainfrom
atti92:root-permissions

Conversation

@atti92

@atti92 atti92 commented Nov 20, 2025

Copy link
Copy Markdown
Contributor

Resolves #41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR attempts to address security concerns by making the development Docker image run as a non-root user instead of root. It adds build arguments for user/group configuration in docker-compose.yml and updates Dockerfile.dev to accept these arguments and switch to a non-root user.

Key Changes:

  • Added build arguments (APP_USER, APP_GROUP, UID, GID) to docker-compose.yml for the dev service
  • Declared corresponding ARG variables in Dockerfile.dev
  • Added USER directive to switch from root to the non-root user

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

File Description
docker-compose.yml Defines build arguments for user/group configuration (UID=1000, GID=1000)
Dockerfile.dev Declares ARG variables and adds USER directive to switch to non-root user

Critical Issues Found:
The implementation is incomplete and will cause the Docker build to fail. The user and group referenced in the USER directive are never created, and file ownership is not properly configured. See the detailed comments for required fixes.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Dockerfile.dev
Comment thread Dockerfile.dev Outdated
@atti92
atti92 marked this pull request as ready for review November 20, 2025 18:55
@RomanPszonka
RomanPszonka requested a review from Copilot November 20, 2025 18:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Dockerfile.dev Outdated
Comment thread scripts/common.sh Outdated
Comment thread scripts/run.sh Outdated
Comment thread docker-compose.yml
Comment thread docker-compose.yml
Comment thread scripts/run.sh
atti92 and others added 3 commits November 20, 2025 20:06
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@RomanPszonka
RomanPszonka merged commit a52ff13 into openutm:main Nov 23, 2025
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.

Reports permissions updates / check

3 participants