Skip to content

Run the recCeiver image as a non-root user - #199

Merged
anderslindho merged 1 commit into
ChannelFinder:masterfrom
anderslindho:fix/docker-non-root
Nov 30, 2026
Merged

anderslindho merged 1 commit into
ChannelFinder:masterfrom
anderslindho:fix/docker-non-root

Conversation

@anderslindho

Copy link
Copy Markdown
Contributor

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.

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.
@sonarqubecloud

Copy link
Copy Markdown

@jacomago jacomago left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think need to go to 2.0.0 for this

@anderslindho

Copy link
Copy Markdown
Contributor Author

Your call, but I recall we said docker is api surface some time back.

@anderslindho
anderslindho merged commit 8e64fba into ChannelFinder:master Nov 30, 2026
26 of 27 checks passed
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.

2 participants