Open NikhilKakade-1 opened 2 years ago
This TODO has been present for a while. While it is technically possible, we need to decide if we want to take on the maintenance of nested extraction and repacking. There are a few hurdles we'd need to overcome, in no particular order:
And there's more we'd find along the way in implementing this. Let's start by identifying your use case - what needs compressed file obfuscation today?
yeah, I see
A few plugins support collecting additional debug logs in .zip file format. But adding to that it can be any other compression format.
The use case is straightforward it would be nice to have a mechanism in place to support the obfuscation of such files.
Note: These files currently are been identified as binary files and removed from the final archive. Which can be stopped with --keep-bins-files
option.
https://github.com/sosreport/sos/blob/a02e871e998eb0b031f35ef8db1fce800100ba09/sos/report/plugins/hpssm.py#L70 https://github.com/sosreport/sos/blob/ead8d48d12c84b88dee981efceb9c80dce7af418/sos/report/plugins/dellrac.py#L46
@TurboTurtle / @pmoravec , Is it possible to support extraction of flat .gz/.xz and archive files with sos clean? I see they are marked as
TODO:
ref: https://github.com/sosreport/sos/blob/main/sos/cleaner/archives/__init__.py#L367