Azure / Azure/Azure-Data-Factory-Integration-Runtime-in-Windows-Container

SonarQube reporting default user of container

Open
#34 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
32
Forks
60
PR merge metrics
No merged PRs in 30d

Description

Hi,

As a sidestep in our deployment of the docker image, the docker file itself is investigated by Sonarqube. It is reporting the following: "This image runs with 'root' or 'containerAdministrator' as the default user. Make sure it is safe here.".

I see in the latest code that there are two users mentioned in the PowerShell script; one for the pod login and one for the actual process

Because I am not a Docker wizard .... could somebody help me assess this, please? Or even help me in trying to find a possible solution.

Might the following article be of help in this? https://learn.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/container-security#when-to-use-containeradmin-and-containeruser-user-accounts

Regards!

![Image](https://github.com/user-attachments/assets/c1b79cdb-8cc7-47b5-b2ba-c39c66b2b75d)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the Dockerfile and the PowerShell script sections that define the pod login and process users. Reproduce or inspect the SonarQube warning for the Windows container, then determine whether the default user can be changed safely without breaking the container's login or process behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, powershell
Domain
devops, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.