Bug 2227142
Summary: | RFE: Prevent message content being logged at any level | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Rehana <redakkan> |
Component: | rhc | Assignee: | Link Dupont <link> |
Status: | CLOSED ERRATA | QA Contact: | CSI Client Tools Bugs <csi-client-tools-bugs> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 7.9 | CC: | arpandey, cdonnell, cmarinea, csi-client-tools-bugs, link |
Target Milestone: | rc | Keywords: | FutureFeature, Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | 2227141 | Environment: | |
Last Closed: | 2023-10-10 16:13:49 UTC | Type: | Story |
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, 2227141 | ||
Bug Blocks: |
Comment 3
Archana Pandey
2023-09-14 09:04:59 UTC
Final Verification: Beaker Test information: HOSTNAME=hp-moonshot-01-c20.ml3.eng.bos.redhat.com JOBID=8356601 RECIPEID=14685076 RESULT_SERVER= DISTRO=RHEL-7.9-updates-20230919.5 ARCHITECTURE=x86_64 [root@hp-moonshot-01-c20 ~]# rpm -qa | grep rhc rhc-0.2.4-1.el7_9.x86_64 [root@hp-moonshot-01-c20 ~]# rpm -qa | grep insights-client insights-client-3.1.8-1.el7_9.noarch [root@hp-moonshot-01-c20 ~]# rpm -qa | grep subscription-manager subscription-manager-rhsm-certificates-1.24.52-2.el7_9.x86_64 subscription-manager-1.24.52-2.el7_9.x86_64 subscription-manager-rhsm-1.24.52-2.el7_9.x86_64 [root@hp-moonshot-01-c20 ~]# [root@hp-moonshot-01-c20 ~]# rpm -ivh rhc-worker-script-0.4-2.el7_9.x86_64.rpm warning: rhc-worker-script-0.4-2.el7_9.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID fd431d51: NOKEY Preparing... ################################# [100%] Updating / installing... 1:rhc-worker-script-0.4-2.el7_9 ################################# [100%] [root@hp-moonshot-01-c20 ~]# [root@hp-moonshot-01-c20 ~]# rhc status Connection status for hp-moonshot-01-c20.ml3.eng.bos.redhat.com: ● Connected to Red Hat Subscription Management ● Connected to Red Hat Insights ● The Remote Host Configuration daemon is active Manage your connected systems: https://red.ht/connector [root@hp-moonshot-01-c20 ~]# [root@hp-moonshot-01-c20 ~]# journalctl -u rhcd -f -- Logs begin at Tue 2023-09-26 01:30:29 EDT. -- Sep 26 03:36:49 hp-moonshot-01-c20.ml3.eng.bos.redhat.com rhcd[5207]: [rhcd] 2023/09/26 03:36:49 /builddir/build/BUILD/rhc/yggdrasil-0.2.2/cmd/yggd/exec.go:112: watching process: 5257 Sep 26 03:36:49 hp-moonshot-01-c20.ml3.eng.bos.redhat.com rhcd[5207]: [rhcd] 2023/09/26 03:36:49 /builddir/build/BUILD/rhc/yggdrasil-0.2.2/cmd/yggd/grpc.go:69: worker registered: {pid:5256 handler:package-manager addr:@ygg-package-manager-DaLvGA features:map[] detachedContent:false} Sep 26 03:36:49 hp-moonshot-01-c20.ml3.eng.bos.redhat.com rhcd[5207]: [rhcd] 2023/09/26 03:36:49 /builddir/build/BUILD/rhc/yggdrasil-0.2.2/cmd/yggd/grpc.go:69: worker registered: {pid:5257 handler:rhc-worker-script addr:@ygg-rhc-worker-script-QYYtQc features:map[] detachedContent:true} Sep 26 03:36:49 hp-moonshot-01-c20.ml3.eng.bos.redhat.com rhcd[5207]: [rhcd] 2023/09/26 03:36:49 /builddir/build/BUILD/rhc/yggdrasil-0.2.2/cmd/yggd/mqtt.go:131: published message 7002f1b7-bb61-4a08-9f00-d974b46287c7 to topic redhat/insights/189dd23a-3422-4cc4-8c64-1e92d7e0ccb4/control/out Sep 26 03:36:49 hp-moonshot-01-c20.ml3.eng.bos.redhat.com rhcd[5207]: [rhcd] 2023/09/26 03:36:49 /builddir/build/BUILD/rhc/yggdrasil-0.2.2/cmd/yggd/mqtt.go:131: published message d777987d-aa2d-4a21-82cf-aea2769427d4 to topic redhat/insights/189dd23a-3422-4cc4-8c64-1e92d7e0ccb4/control/out Sep 26 03:36:49 hp-moonshot-01-c20.ml3.eng.bos.redhat.com rhcd[5207]: [rhcd] 2023/09/26 03:36:49 /builddir/build/BUILD/rhc/yggdrasil-0.2.2/cmd/yggd/mqtt.go:131: published message c435f62c-387a-4d83-ac32-3836c6c488fa to topic redhat/insights/189dd23a-3422-4cc4-8c64-1e92d7e0ccb4/control/out Sep 26 03:36:56 hp-moonshot-01-c20.ml3.eng.bos.redhat.com rhcd[5207]: [rhcd] 2023/09/26 03:36:56 /builddir/build/BUILD/rhc/yggdrasil-0.2.2/cmd/yggd/mqtt.go:18: received a message on topic redhat/insights/189dd23a-3422-4cc4-8c64-1e92d7e0ccb4/data/in Sep 26 03:36:56 hp-moonshot-01-c20.ml3.eng.bos.redhat.com rhcd[5207]: [rhcd] 2023/09/26 03:36:56 /builddir/build/BUILD/rhc/yggdrasil-0.2.2/cmd/yggd/mqtt.go:25: message: 8048ce71-aeca-4331-8c78-c1a71ac4e04e ^^ Worker is registered [root@hp-moonshot-01-c20 ~]# subscription-manager identity system identity: 189dd23a-3422-4cc4-8c64-1e92d7e0ccb4 name: hp-moonshot-01-c20.ml3.eng.bos.redhat.com org name: 11789772 org ID: 11789772 [root@hp-moonshot-01-c20 ~]# [arpandey@fedora ~]$ yggctl generate data-message --directive rhc-worker-script "echo hello testing" | pub -config rhcconfig.txt -topic redhat/insights/189dd23a-3422-4cc4-8c64-1e92d7e0ccb4/data/in 2023/09/26 13:10:06 connected: wss://connect.cloud.stage.redhat.com:443 2023/09/26 13:10:07 published: [redhat/insights/189dd23a-3422-4cc4-8c64-1e92d7e0ccb4/data/in] [123 34 116 121 112 101 34 58 34 100 97 116 97 34 44 34 109 101 115 115 97 103 101 95 105 100 34 58 34 101 97 102 52 99 57 98 99 45 48 54 57 98 45 52 56 98 57 45 98 55 51 99 45 102 53 101 99 55 102 57 49 99 55 49 56 34 44 34 114 101 115 112 111 110 115 101 95 116 111 34 58 34 34 44 34 118 101 114 115 105 111 110 34 58 49 44 34 115 101 110 116 34 58 34 50 48 50 51 45 48 57 45 50 54 84 49 51 58 49 48 58 48 50 46 55 55 49 52 51 57 50 51 52 43 48 53 58 51 48 34 44 34 100 105 114 101 99 116 105 118 101 34 58 34 114 104 99 45 119 111 114 107 101 114 45 115 99 114 105 112 116 34 44 34 109 101 116 97 100 97 116 97 34 58 123 125 44 34 99 111 110 116 101 110 116 34 58 34 90 87 78 111 98 121 66 111 90 87 120 115 98 121 66 48 90 88 78 48 97 87 53 110 34 125 10] [arpandey@fedora ~]$ [root@hp-moonshot-01-c20 ~]# journalctl -u rhcd -f Sep 26 03:40:07 hp-moonshot-01-c20.ml3.eng.bos.redhat.com rhcd[5207]: [rhcd] 2023/09/26 03:40:07 /builddir/build/BUILD/rhc/yggdrasil-0.2.2/cmd/yggd/mqtt.go:18: received a message on topic redhat/insights/189dd23a-3422-4cc4-8c64-1e92d7e0ccb4/data/in Sep 26 03:40:07 hp-moonshot-01-c20.ml3.eng.bos.redhat.com rhcd[5207]: [rhcd] 2023/09/26 03:40:07 /builddir/build/BUILD/rhc/yggdrasil-0.2.2/cmd/yggd/mqtt.go:25: message: eaf4c9bc-069b-48b9-b73c-f5ec7f91c718 Sep 26 03:40:07 hp-moonshot-01-c20.ml3.eng.bos.redhat.com rhcd[5207]: [rhcd] 2023/09/26 03:40:07 /builddir/build/BUILD/rhc/yggdrasil-0.2.2/cmd/yggd/http.go:38: sending HTTP request: GET //cert.cloud.stage.redhat.com/ZWNobyBoZWxsbyB0ZXN0aW5n Sep 26 03:40:07 hp-moonshot-01-c20.ml3.eng.bos.redhat.com rhcd[5207]: [rh Verification- received messages no more showing content. Passed. 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 (rhc 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-2023:5619 |