Skip to content

[AutoFix] [missing-user] By not specifying a USER, a program in the container may run#42

Open
surinderunitone wants to merge 1 commit into
mainfrom
autofix/AFQ-853b12a1
Open

[AutoFix] [missing-user] By not specifying a USER, a program in the container may run#42
surinderunitone wants to merge 1 commit into
mainfrom
autofix/AFQ-853b12a1

Conversation

@surinderunitone
Copy link
Copy Markdown
Contributor

AutoFix: [missing-user] By not specifying a USER, a program in the container may run

Issue

  • ID: 1d021fd0be19
  • Severity: high
  • Category: static-analysis
  • File: testservers/Dockerfile

Fix

Added a non-root user 'appuser' with proper group, changed ownership of /app directory to this user, and switched to this user before running the application to prevent privilege escalation vulnerabilities.

Confidence

🟢 95% confidence


🤖 Generated by UnitOne AutoFix

Added a non-root user 'appuser' with proper group, changed ownership of /app directory to this user, and switched to this user before running the application to prevent privilege escalation vulnerabilities.

Issue: 1d021fd0be19
Severity: high
Job: AFQ-853b12a1
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.

1 participant