Skip to content

Owner and group changed to root for systemd service file. - #51

Open
marek-cuper wants to merge 1 commit into
sleighzy:masterfrom
triviadata:security/systemd-unit-file-permissions
Open

Owner and group changed to root for systemd service file.#51
marek-cuper wants to merge 1 commit into
sleighzy:masterfrom
triviadata:security/systemd-unit-file-permissions

Conversation

@marek-cuper

Copy link
Copy Markdown

The Kafka systemd service file was owned by kafka:kafka — which got flagged by the security scan.
Files in /etc/systemd/system/ are system territory, so for consistency I changed owner and group to root. The Kafka process doesn't read or write its own unit file at runtime, so there's no reason it should own it. Beyond the scan, it's also a real risk — a compromised kafka user could edit the unit file and get code running as root on the next service restart.

@sleighzy

Copy link
Copy Markdown
Owner

Thanks for that, much appreciated. Away for a week but will test and merge when I get back.

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