aboutsummaryrefslogtreecommitdiffstats
path: root/tests/importer_tests.py
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2019-06-04 15:45:40 -0400
committerBryn M. Reeves <bmr@redhat.com>2019-10-08 14:54:11 +0100
commitdf6deb2ff7acd84afe2e5f2823565329af333018 (patch)
tree73f376338c6d9b3c0353b9d33126044c3fa71976 /tests/importer_tests.py
parent6d623ceb2bc973a603c2abb1c8c64f2980667a0d (diff)
downloadsos-df6deb2ff7acd84afe2e5f2823565329af333018.tar.gz
[Plugin] Add method to scrub certs/keys from collected files
This adds a new do_file_private_sub() method to the Plugin class to allow for easy, and standardized scrubbing of private data such as certificates or key pairs from files collected by sos, in much the same way that do_cmd_private_sub() provides that functionality for command output. This method only takes a path or path regex representing the filename/pattern to match against. Matches are replaced with "-----SCRUBBED $thing" where $thing is the specific type of content being replaced as provided in the collected file content. For example, a private key would be replaced with "-----SCRUBBED RSA PRIVATE KEY-----". This is done so that support representatives can still know the type of information that was collected, without knowing the actual sensitive content. Resolves: #1690 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'tests/importer_tests.py')
0 files changed, 0 insertions, 0 deletions