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
sos cleaner confuses version with IP address #2962
Comments
|
Can you give some examples of specific files this is happening in? We can set the IP parser to skip select files, but we want to be as exact as we can be here (i.e. we can't blindly just skip all |
|
There are product specific files such as /path/to/product/version and /etc/*-release. The version and maybe release files could be collected in sosreport custom plugin subdirectory in addition to top level sos path. The collection in plug-in subdirectory happens usually when application is running in container. There could be multiple container instances of same application. So, the version file is collected in a unique subdirectory for each container instance. |
I understand the premise. However, as I said we can't blindly block any file glob matching
I am not aware of any currently supported distro where these files would have a quad-notated version field. If there is one, please detail which distro that is. |
|
Veritas NetBackup has /usr/openv/netbackup/version file. It can be installed on the host or as a container. There are other similar other Veritas products that have their own different version path. Veritas has multiple purpose built appliances that are RHEL based. These appliances have their own versioning stored in /etc/appliance-version file. |
|
Hmm. After a bit of digging, we may be able to do this reasonably safely for files that end with |
For files that can be considered obvious version files - those that end specifically with either `version` or `version.txt` - skip processing via the IP parser, as this may lead to improper obfuscation of certain version strings. Closes: sosreport#2962 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
That will work. Thank you. Can something be done for /etc/*-release file too? |
Earlier you mentioned these products used |
|
There are two things.
|
For files that can be considered obvious version files - those that end specifically with either `version` or `version.txt` - skip processing via the IP parser, as this may lead to improper obfuscation of certain version strings. This is also applied to files ending in `release`. Closes: sosreport#2962 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
For files that can be considered obvious version files - those that end specifically with either `version` or `version.txt` - skip processing via the IP parser, as this may lead to improper obfuscation of certain version strings. This is also applied to files ending in `release`. Closes: #2962 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
|
Thanks @TurboTurtle. Any idea which RHEL release will this be part of? |
When a version string is in a.b.c.d format, e.g. 10.2.1.0, the sos cleaner takes it as an IP address and masks the information.
Can the cleaner be made aware to not mask versions stored in files named after "release" and "version"?
The text was updated successfully, but these errors were encountered: