Skip to content

Fix Docker security hotspots: non-root user, specific COPY#2

Merged
nickmarden merged 1 commit into
mainfrom
more-sonarcube-fixes
Jan 19, 2026
Merged

Fix Docker security hotspots: non-root user, specific COPY#2
nickmarden merged 1 commit into
mainfrom
more-sonarcube-fixes

Conversation

@nickmarden
Copy link
Copy Markdown
Contributor

  • Add .dockerignore to exclude sensitive files from build context
  • Replace recursive COPY with specific directory copies
  • Create non-root gatekeeper user (uid/gid 1000)
  • Use setcap to allow privileged port binding without root
  • Switch to non-root user for runtime execution

- Add .dockerignore to exclude sensitive files from build context
- Replace recursive COPY with specific directory copies
- Create non-root gatekeeper user (uid/gid 1000)
- Use setcap to allow privileged port binding without root
- Switch to non-root user for runtime execution
@sonarqubecloud
Copy link
Copy Markdown

@nickmarden nickmarden merged commit 8fa7c32 into main Jan 19, 2026
7 checks passed
@nickmarden nickmarden deleted the more-sonarcube-fixes branch January 19, 2026 10:51
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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