Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1845592

Summary: [RFE] Vector datasource from browser requires access to remote servers posing possible security issues
Product: Red Hat Enterprise Linux 8 Reporter: Shravan Kumar Tiwari <shtiwari>
Component: grafana-pcpAssignee: Andreas Gerstmayr <agerstmayr>
Status: CLOSED ERRATA QA Contact: Jan Kurik <jkurik>
Severity: high Docs Contact: Apurva Bhide <abhide>
Priority: unspecified    
Version: 8.2CC: abhide, agerstmayr, cww, grafana-maint, jkurik, mgoodwin, nathans, Steven268Danner, yuokada
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: grafana-pcp-3.0.0-1.el8 Doc Type: Enhancement
Doc Text:
.Accessing remote hosts through a central `pmproxy` for the Vector data source in `grafana-pcp` In some environments, the network policy does not allow connections from the dashboard viewer's browser to the monitored hosts directly. This update makes it possible to customize the `hostspec` in order to connect to a central `pmproxy`, which forwards the requests to the individual hosts.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 15:52:17 UTC Type: Feature Request
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: 1854093    
Bug Blocks:    

Description Shravan Kumar Tiwari 2020-06-09 15:16:59 UTC
Description of problem:

Customer used https://www.redhat.com/en/blog/getting-started-using-performance-co-pilot-and-vector-browser-based-metric-visualizations in previous RHEL 8 and 8.1 releases to get data from remote hosts on Vector dashboards


To achieve the same in RHEL8.2, PCP vector data-source is implemented to get the real time data from remote hosts (followed the doc- https://grafana-pcp.readthedocs.io/en/latest/guides/multiple-vector-hosts.html)

Here, customer found out that Grafana definition of browser access states that,
Browser access mode:
All requests will be made from the browser directly to the data source and may be subject to Cross-Origin Resource Sharing (CORS) requirements. The URL needs to be accessible from the browser if you select this access mode.


In case of Redis each host collects the data and stores it in a Redis database. Grafana connects to a single pmproxy instance on central pcp host, which in turn connects to the Redis database to gather the data.

BUT, In case of Vector dashboard it seems is not implemented in a same way and browser PC needs direct access to remote client/clients to get real time data.





Version-Release number of selected component (if applicable):
RHEL 8.2
PCP 5.x

How reproducible:



Steps to Reproduce:
1.
2.
3.

Actual results:
You need direct access from browser pc to remote client for getting real time data in dashboard for Vector datasource

Expected results:
For collecting remote host data in vecotr dashboard the request must go to central host pmroxy and then to remote client so no need for direct access from browser pc to pcp client is needed.

Additional info:

Comment 3 Andreas Gerstmayr 2020-06-10 10:55:38 UTC
In PCP terms: the hostspec in grafana-pcp needs to be configurable with Grafana templates.

Upstream issue: https://github.com/performancecopilot/grafana-pcp/issues/52

Comment 19 errata-xmlrpc 2021-05-18 15:52:17 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 (grafana-pcp 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/RHEA-2021:1865

Comment 20 Steven268Danner 2024-06-18 09:30:37 UTC
Thank you for sharing this info. I really liked the simplistic way of explanation.
https://www-panoramacharter.com