Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansible: Add restricted rsync endpoint #53

Merged
merged 2 commits into from
Feb 28, 2024
Merged

Conversation

jbruechert
Copy link
Collaborator

@jbruechert jbruechert commented Feb 26, 2024

NOTE: The ssh key is of course not final, and will be replaced by one that is available on github actions.

General idea:

  • Only allow to start rrsync on the rsync account
  • Use dash as login shell for the rsync user, since ssh will start the command in this shell. Bash is known to do much magic. rrsync recommends dash.
  • Only allow writing to the target directory, not reading anything
  • Sandbox rrsync to only be able to read basic system binaries and its target directory. Notably not /etc or anything that could contain private keys.

Fixes: #28

@jbruechert jbruechert force-pushed the work/jbb/ansible-rsync branch 6 times, most recently from 63a16f1 to 072c5d8 Compare February 26, 2024 18:27
@jbruechert jbruechert force-pushed the work/jbb/ansible-rsync branch from 072c5d8 to 089d67e Compare February 26, 2024 18:32
@jbruechert jbruechert marked this pull request as ready for review February 26, 2024 18:38
@jbruechert jbruechert force-pushed the work/jbb/ansible-rsync branch from cd7b39e to 5f37bde Compare February 28, 2024 09:30
@jbruechert jbruechert merged commit a3609a3 into main Feb 28, 2024
2 checks passed
@jbruechert jbruechert deleted the work/jbb/ansible-rsync branch March 3, 2024 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Write ansible playbook for setting up a secured rsync server
1 participant