Showing Chromeperf data results in error 403 |
||||||||
Issue descriptionExample: 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
,
Mar 12 2018
Setting to Pri-1 since this is a user-visible error on every commit page.
,
Mar 12 2018
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.
,
Mar 12 2018
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
,
Mar 12 2018
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
,
Mar 12 2018
That change should have just added a helper to api_auth not changed anything major.
,
Mar 12 2018
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.
,
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)
,
Mar 12 2018
But the client ID is clearly there: https://chromium.googlesource.com/catapult.git/+/6fbfa7cb/dashboard/dashboard/api/api_auth.py#21
,
Mar 12 2018
I'll deploy a dev instance with additional logging to see if we can get some more info here.
,
Mar 12 2018
I see that it's missing from OAUTH_CLIENT_ID_WHITELIST in the currently deployed version.
,
Mar 12 2018
If I deploy a new version it is present. Maybe someone went in manually and accidentally modified it?
,
Mar 12 2018
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
,
Mar 12 2018
Nice catch Prasad, fix is going through cq but I've deployed a dev instance with the fix.
,
Mar 12 2018
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!
,
Mar 12 2018
+kjharland, who added the Fuschia client id 4 days ago
,
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.
,
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
,
Mar 12 2018
Ah! Apologies for the mistake. Thanks for fixing so quickly
,
Mar 13 2018
Looks like this got resolved before I had a chance to look at it. Thanks a lot!
,
Mar 13 2018
,
Mar 15 2018
Thanks folks, works now. |
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by amineer@chromium.org
, Mar 12 2018Owner: machenb...@chromium.org
Status: Assigned (was: Unassigned)