New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 820908 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Last visit 26 days ago
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

Showing Chromeperf data results in error 403

Project Member Reported by hablich@chromium.org, Mar 12 2018

Issue description

Example: 

1.) Log into chromiumdash
2.) goto 
 https://chromiumdash.appspot.com/commit/0d26307046625251bc9b5f568265854f35ba7630
3.) Notice the popups about the 403 error
4.) Look into the DevTool's Network tab and notice it has errors like the following:

Request URL: https://chromeperf.appspot.com/api/alerts/rev/51812
Request Method: POST
Status Code: 403 
Remote Address: [2a00:1450:4016:80c::2014]:443
Referrer Policy: no-referrer-when-downgrade

Request URL: https://chromeperf.appspot.com/api/alerts/rev/542101
Request Method: POST
Status Code: 403 
Remote Address: [2a00:1450:4016:80c::2014]:443
Referrer Policy: no-referrer-when-downgrade


 
Cc: -machenb...@chromium.org
Owner: machenb...@chromium.org
Status: Assigned (was: Unassigned)
machenbach@, can you PTAL and get in touch with the Chrome Perf team to have them help address this?

If you can't do this in 1-2 days, can you let me know who we should talk to so that I can start to reach out?
Labels: -Pri-2 Dashboard-Polish Pri-1
Setting to Pri-1 since this is a user-visible error on every commit page.
Cc: machenb...@chromium.org
Owner: eakuefner@chromium.org
Hey Ethan, Did anything changed on Chrome Perf Dashboard APIs wrt to authenticating its users. Looks like Chromium Dash is getting authentication error
Request:
https://chromeperf.appspot.com/api/alerts/rev/542158

Repose
{"error": "User authentication error"}

Please feel free to re-assign back to me if this is not related to Chrome Perf.
Cc: eakuefner@chromium.org simonhatch@chromium.org
Owner: pras...@chromium.org
No, I don't think anything changed recently. What service account is Chromium Dash using? Can you confirm that it is present in the whitelist: https://github.com/catapult-project/catapult/blob/master/dashboard/dashboard/api/api_auth.py#L13
Cc: dtu@chromium.org
Yes, the Chromium Dash service account is avaialble in api_auth
"975044924533-p122oecs8h6eibv5j5a8fmj82b0ct0nk.apps.googleusercontent.com"
This was working last week, and there is no changes made to Chromium Dash in this area.
Could this be related to https://chromium-review.googlesource.com/c/catapult/+/956673/4/dashboard/dashboard/pinpoint/handlers/new.py#b20
That change should have just added a helper to api_auth not changed anything major.
Correct! I do see nothing major in this CL that could potentially impact authentication of Chromium Dash.
I'm clueless why this started appearing suddenly.


Comment 8 by dtu@chromium.org, Mar 12 2018

The perf dashboard log shows:

OAuth client id 975044924533-p122oecs8h6eibv5j5a8fmj82b0ct0nk.apps.googleusercontent.com for user hablich@chromium.org not in whitelist (/base/data/home/apps/s~chromeperf/clean-eakuefner-6fbfa7cb.408142309482323201/dashboard/api/api_auth.py:60)
I'll deploy a dev instance with additional logging to see if we can get some more info here.

Comment 11 by dtu@chromium.org, Mar 12 2018

I see that it's missing from OAUTH_CLIENT_ID_WHITELIST in the currently deployed version.

Comment 12 by dtu@chromium.org, Mar 12 2018

If I deploy a new version it is present. Maybe someone went in manually and accidentally modified it?

Comment 13 Deleted

There is a comma missing in the OAUTH_CLIENT_ID_WHITELIST here 
https://github.com/catapult-project/catapult/blob/master/dashboard/dashboard/api/api_auth.py
Not sure if this is causing any issue
Nice catch Prasad, fix is going through cq but I've deployed a dev instance with the fix.
Thank you Simon and Dave for the quick fix and deployment.
With the new deployed version of chromeperf which includes fix, we no longer see the authentication issue!

Comment 17 by dtu@chromium.org, Mar 12 2018

Cc: kjharland@google.com
+kjharland, who added the Fuschia client id 4 days ago

Comment 18 by dtu@chromium.org, Mar 12 2018

The missing comma would just cause Python to concatenate the two strings. Since '113172445342431053212' is in the list twice (also a bug?) the only client id that's affected is the new fuchsia one.
Project Member

Comment 19 by bugdroid1@chromium.org, Mar 12 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/catapult/+/4b356c746683e8e121179d050d15e3d09799be6f

commit 4b356c746683e8e121179d050d15e3d09799be6f
Author: Simon <simonhatch@chromium.org>
Date: Mon Mar 12 21:50:06 2018

Dashboard - Missing comma in api whitelist.

TBR=eakuefner@chromium.org

Bug:  chromium:820908 
Change-Id: I7cffb07f257305c60a19e959d6e31569e1a23fac
Reviewed-on: https://chromium-review.googlesource.com/959548
Commit-Queue: Simon Hatch <simonhatch@chromium.org>
Reviewed-by: Ethan Kuefner <eakuefner@chromium.org>
Reviewed-by: Simon Hatch <simonhatch@chromium.org>

[modify] https://crrev.com/4b356c746683e8e121179d050d15e3d09799be6f/dashboard/dashboard/api/api_auth.py

Ah! Apologies for the mistake. Thanks for fixing so quickly
Looks like this got resolved before I had a chance to look at it. Thanks a lot!
Status: Fixed (was: Assigned)
Status: Verified (was: Fixed)
Thanks folks, works now.

Sign in to add a comment