Skip to content

Commit

Permalink
[ansible] Forbid collecting /etc/ansible/files
Browse files Browse the repository at this point in the history
The directory contains random server's files to copy, potentially with
sensitive data, not relevant to any troubleshooting.

Resolves: #3845

Signed-off-by: Pavel Moravec <[email protected]>
  • Loading branch information
pmoravec authored and TurboTurtle committed Nov 20, 2024
1 parent 5bcea30 commit 24e270e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sos/report/plugins/ansible.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def setup(self):
self.add_forbidden_path([
"/etc/ansible/facts.d/",
"/etc/ansible/roles/",
"/etc/ansible/files/",
"/etc/ansible/hosts",
])

Expand Down

0 comments on commit 24e270e

Please sign in to comment.