Skip to content

[NuLink] Image user should not be 'root'#139

Open
nulink-fixer[bot] wants to merge 1 commit intodevfrom
fix/nulink-cloud-fixer-1768759821
Open

[NuLink] Image user should not be 'root'#139
nulink-fixer[bot] wants to merge 1 commit intodevfrom
fix/nulink-cloud-fixer-1768759821

Conversation

@nulink-fixer
Copy link
Contributor

@nulink-fixer nulink-fixer bot commented Jan 18, 2026

This fix addresses the security vulnerability of running containers as the 'root' user. By adding a 'USER nonrootuser' line after creating a non-root user with 'useradd -m nonrootuser', the container now executes commands under a user with limited privileges. This significantly reduces the risk of container escape and potential system compromise, as non-root users have restricted access to the underlying host system and resources.

Severity: high

NuLink used AI to generate this PR.

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.

0 participants