diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2019-06-04 15:45:40 -0400 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2019-10-08 14:54:11 +0100 |
commit | df6deb2ff7acd84afe2e5f2823565329af333018 (patch) | |
tree | 73f376338c6d9b3c0353b9d33126044c3fa71976 /tests/importer_tests.py | |
parent | 6d623ceb2bc973a603c2abb1c8c64f2980667a0d (diff) | |
download | sos-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