Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1430888

Summary: Metrics API URL is blocked by uBlockOrigin browser extension
Product: OpenShift Container Platform Reporter: Will Gordon <wgordon>
Component: HawkularAssignee: Matt Wringe <mwringe>
Status: CLOSED DUPLICATE QA Contact: Liming Zhou <lizhou>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aos-bugs, jokerman, mmccomas, wgordon, wsun, xxia
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1446308 (view as bug list) Environment:
Last Closed: 2017-06-20 17:58:54 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:    
Bug Blocks: 1446308, 1447405    

Description Will Gordon 2017-03-09 19:12:00 UTC
Description of problem:
Viewing the Application dashboard will not show Metrics data while AdBlocking is enabled.

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. Install uBlockOrigin browser extension
2. View Application dashboard
3. Look for metrics data

Actual results:
No metrics data shown

Expected results:
Metrics data should not be blocked, since it's not an ad

Additional info:
The specific URL that's being blocked is "/metrics/metrics" by the EasyPrivacy blocking list: https://forums.lanik.us/

Many users browse with AdBlocking software enabled. They will assume the issue is on our end as they would not assume their AdBlocker would cause issues.

Comment 1 Matt Wringe 2017-03-09 19:56:23 UTC
Changing the title unless we have proof that this affects more than one adblocker

Comment 2 Will Gordon 2017-03-09 20:10:22 UTC
The "EasyPrivacy" list can be added to other AdBlockers, I was able to test just now with AdBlock and AdBlock Plus. But uBlock Origin seems to be the only one in Chrome that enables this list by default.

Comment 3 Matt Wringe 2017-03-09 20:48:51 UTC
I have opened a request with https://forums.lanik.us/ to see what our options are to get this unblocked.

I am not sure what else we can do here.

We could potentially change the route so that the "/hawkular/metrics" part of the url is no longer required. This would require changing the route and the URL in the master-config.yaml file. But this would also break anything else relying on the url to be formed like it is today, such as cloud forms.

Since the alerts endpoint is under /hawkular/alerts, it would mean that we would have to create a new route for the alerts to work.

Comment 4 Matt Wringe 2017-03-09 22:48:41 UTC
The upstream forum post to determine how to get our metric URLs unblocked: https://forums.lanik.us/viewtopic.php?f=64&t=35856

Comment 5 Matt Wringe 2017-03-28 19:01:52 UTC
I don't know if we can get any progress with the upstream privacy blockers to get them to fix there filtering problem.

A simple fix would be for Hawkular Metrics to alias the "/metrics" endpoint to be something like "/m". And then get the console team to update their code o that they use the aliased "/m" endpoint instead of the full "/metrics" one.

Do we know what version(s) this needs to be fixed for exactly?

Comment 6 Will Gordon 2017-03-28 19:17:06 UTC
3.4 would be ideal, although 3.5 and forward is really the only need.

Comment 8 Matt Wringe 2017-06-20 17:58:54 UTC
I am going to mark this as a duplicate of 1447405 which is already verified.

*** This bug has been marked as a duplicate of bug 1447405 ***