RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1956817 - due to change of logging in satellite 6.9 satellite installer logs are not properly obfuscated
Summary: due to change of logging in satellite 6.9 satellite installer logs are not pr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sos
Version: 7.9
Hardware: All
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Jan Jansky
QA Contact: Maros Kopec
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-04 13:28 UTC by Jan Jansky
Modified: 2021-07-21 01:07 UTC (History)
10 users (show)

Fixed In Version: sos-3.9-5.el7_9.6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-21 01:06:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github sosreport sos pull 2522 0 None open [foreman] fix unmatched group error in scrubbing installer logs 2021-05-04 14:24:00 UTC
Red Hat Knowledge Base (Solution) 6015771 0 None None None 2021-05-04 13:31:01 UTC

Description Jan Jansky 2021-05-04 13:28:31 UTC
Description of problem: due to change of logging in satellite 6.9 satellite installer logs are not properly obfuscated.

Foreman plugin needs to be updated with new regexp.


How reproducible: Always


Steps to Reproduce:
1. sosreport --build --batch -o foreman
2. grep foreman_proxy::puppetca_token_ttl <sos destination>/var/log/foreman-installer/satellite.log


Actual results:

2021-05-04 09:35:33 [DEBUG ] [configure] Found key: "foreman_proxy::puppetca_token_ttl" value: 360

Expected results:
2021-05-04 09:35:33 [DEBUG ] [configure]  Found key: "foreman_proxy::puppetca_token_ttl" value: ********

Additional info:
Tested myself on Satellite 6.9 and Satellite 6.7.

Comment 2 Pavel Moravec 2021-05-04 13:36:18 UTC
The token_ttl value isnt the critical information not being scrubbed. More relevant examples are e.g.:

2021-04-26 16:32:02 [DEBUG ] [configure] Found key: "foreman::db_password" value: "QDUerNfEdag4qQ8S5sw6VsTjpLY2wp9B"

2021-04-26 16:32:02 [DEBUG ] [configure] Found key: "foreman::oauth_consumer_secret" value: "ePFyZXLkbB3vCW45NjY6V6PF4xJP7hWv"

and similar.

Basically nothing with "Found key:" is obfuscated, neither few further regexp replacements are applied, since the foreman plugin raises an uncaught exception.

So the business justification is "this BZ prevents obfuscating majority of foreman secret stuff".

Comment 10 errata-xmlrpc 2021-07-21 01:06:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (sos bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:2804


Note You need to log in before you can comment on or make changes to this bug.