Bug 2227141
Summary: | RFE: Prevent message content being logged at any level | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Rehana <redakkan> | |
Component: | rhc | Assignee: | CSI Client Tools Bugs <csi-client-tools-bugs> | |
Status: | CLOSED ERRATA | QA Contact: | CSI Client Tools Bugs <csi-client-tools-bugs> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 8.9 | CC: | ahitacat, arpandey, cmarinea, csi-client-tools-bugs, link, qianzhan | |
Target Milestone: | rc | Keywords: | FutureFeature, Triaged | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | rhc-0.2.4-1.el8 | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | ||
Clone Of: | 2227010 | |||
: | 2227142 (view as bug list) | Environment: | ||
Last Closed: | 2023-11-14 15:36:50 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | 2227010 | |||
Bug Blocks: | 2227142 |
Comment 2
qianzhan
2023-08-15 08:09:42 UTC
Verification: 1. Provision RHEL-8.9.0-20230821.d.56 in Beaker: [root@ibm-x3650m4-01-vm-11 ~]# rpm -qa | grep rhc rhc-0.2.4-1.el8.x86_64 [root@ibm-x3650m4-01-vm-11 ~]# dnf install -y rhc-worker-playbook 2. Configure for stage connection: [root@ibm-x3650m4-01-vm-11 ~]# subscription-manager config --server.hostname=subscription.rhsm.stage.redhat.com [root@ibm-x3650m4-01-vm-11 ~]# cat /etc/insights-client/insights-client.conf | grep base_url base_url=cert.console.stage.redhat.com [root@ibm-x3650m4-01-vm-11 ~]# cat /etc/rhc/config.toml # rhc global configuration settings broker = ["wss://connect.cloud.stage.redhat.com:443"] data-host = "cert.cloud.stage.redhat.com" cert-file = "/etc/pki/consumer/cert.pem" key-file = "/etc/pki/consumer/key.pem" log-level = "trace" [root@ibm-x3650m4-01-vm-11 ~]# systemctl cat rhcd # /usr/lib/systemd/system/rhcd.service [Unit] Description=Remote Host Configuration daemon Documentation=https://github.com/redhatinsights/yggdrasil After=network-online.target Requires=network-online.target [Service] Type=simple ExecStart=/usr/sbin/rhcd [Install] WantedBy=multi-user.target # /etc/systemd/system/rhcd.service.d/override.conf [Service] Environment=SYSTEMD_LOG_LEVEL=trace 3. Connect by rhc: [root@ibm-x3650m4-01-vm-11 ~]# rhc connect Connecting ibm-x3650m4-01-vm-11.ibm2.lab.eng.bos.redhat.com to Red Hat. This might take a few seconds. Username: insights-qa Password: ● Connected to Red Hat Subscription Management ● Connected to Red Hat Insights ● Activated the Remote Host Configuration daemon ● Enabled console.redhat.com services: compliance, remote configuration, insights, remediations Successfully connected to Red Hat! Manage your connected systems: https://red.ht/connector STEP DURATION Remote Host Configuration 20ms rhsm 13.81s insights 44.529s 4. Check the rhcd log: [root@ibm-x3650m4-01-vm-11 ~]# journalctl -u rhcd | grep 'received message' Aug 21 22:37:18 ibm-x3650m4-01-vm-11.ibm2.lab.eng.bos.redhat.com rhcd[21049]: [rhcd] 2023/08/21 22:37:18 /builddir/build/BUILD/rhc/yggdrasil-0.2.2/cmd/yggd/grpc.go:107: received message 439c3b7a-5177-451f-88e9-631497b481f3 Aug 21 22:37:58 ibm-x3650m4-01-vm-11.ibm2.lab.eng.bos.redhat.com rhcd[21049]: [rhcd] 2023/08/21 22:37:58 /builddir/build/BUILD/rhc/yggdrasil-0.2.2/cmd/yggd/grpc.go:107: received message b1ee3ac1-85ce-4488-84ab-fa1df0965190 Aug 21 22:38:06 ibm-x3650m4-01-vm-11.ibm2.lab.eng.bos.redhat.com rhcd[21049]: [rhcd] 2023/08/21 22:38:06 /builddir/build/BUILD/rhc/yggdrasil-0.2.2/cmd/yggd/grpc.go:107: received message 95e14cdf-4666-40d1-b55d-a514f2866476 As per step 4, rhcd received message with message ID, and message content is not shown. Move this bug from ON_QA to VERIFIED. 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 (Moderate: rhc security, 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/RHSA-2023:7058 |