[rsync] Add plugin for the rsync daemon - #4420
Conversation
|
Congratulations! One of the builds has completed. 🍾 You can install the built RPMs by following these steps:
Please note that the RPMs should be used only in a testing environment. |
|
please test the plugin to ensure that all is collected correctly |
arif-ali
left a comment
There was a problem hiding this comment.
as per previous message, please test the plugin
rsyncd is packaged and shipped as a service on RHEL, Fedora, Debian and Ubuntu, but sos has no plugin for it and no other plugin references rsync. An sosreport taken from an rsync server currently contains none of its configuration, logs or service state. The plugin collects rsyncd.conf and the drop-in directory, the distribution defaults files, the daemon log, rsync --version, and the service status and journal for both the service and socket-activated forms. A module using "auth users" points at a secrets file holding username:password pairs in cleartext. Those paths are added to the forbidden list so they cannot be collected under any option combination, including --all-logs. Signed-off-by: Suraj Patil <surajpatil522@gmail.com>
9059180 to
e754d98
Compare
|
Tested on RHEL 10 (aarch64), rsync 3.4.1, with a module using Collected: Not collected, as intended: The collected rsyncd.conf still contains |
|
One clarification on the output above: rsync-daemon isn't installable on that The force-push also declares the units in the |
|
Tested with default configuration of Collected files as expected: |
|
@bmr-cymru, can we merge this if everything is working as expected? |
|
@bmr-cymru or @arif-ali can we gohead with merge or is there any problem here ? |
TurboTurtle
left a comment
There was a problem hiding this comment.
One note follows.
Please add an Assisted-by line to the commit message when using an AI assistant as per our AI policy.
|
|
||
| packages = ('rsync', 'rsync-daemon') | ||
| files = ('/etc/rsyncd.conf',) | ||
| services = ('rsyncd', 'rsyncd.socket') |
There was a problem hiding this comment.
Don't put sockets here, as sockets are not services under systemd.
rsyncdis packaged and shipped as a service on RHEL, Fedora, Debian andUbuntu, but sos has no plugin for it and no other plugin references rsync. An
sosreport taken from an rsync server currently contains none of its
configuration, logs or service state.
The plugin collects
rsyncd.confand the drop-in directory, the distributiondefaults files, the daemon log,
rsync --version, and the service status andjournal for both the service and socket-activated forms.
A module using
auth userspoints at a secrets file holdingusername:passwordpairs in cleartext. Those paths are added to the forbiddenlist so they cannot be collected under any option combination, including
--all-logs.I do not have an rsyncd deployment to test against. Confirmation of the
/etc/rsyncd.d/drop-in path and of the systemd unit names acrossdistributions would be welcome — the forbidden-path list is the part I would
most like a second opinion on.
Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines