Repository navigation
Run the recCeiver image as a non-root user - #199
Merged
anderslindho merged 1 commit intoNov 30, 2026
Merged
Conversation
The recCeiver binds unprivileged ports and only reads its config, so it has no use for root. Sonar raises the root default as a security hotspot. BREAKING CHANGE: the image no longer runs as root. A deployment that binds a port below 1024, or mounts files or directories that only root can read or write, will fail to start.
|
jacomago
approved these changes
Nov 27, 2026
jacomago
left a comment
Contributor
There was a problem hiding this comment.
Don't think need to go to 2.0.0 for this
Contributor
Author
|
Your call, but I recall we said docker is api surface some time back. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



The recCeiver binds unprivileged ports and only reads its config, so the image has no reason to run as root. Sonar raises it as the one security hotspot left after #198.
This is a breaking change for the published image. A deployment that binds a port below 1024, or mounts files or directories that only root can read or write, will fail to start after upgrading. The compose setup in this repo is not affected, since it mounts its config read-only and uses unprivileged ports.
Since our tags are plain version numbers, merging this means the next release should be 2.0.0, unless we decide the image is not covered by the version.