Friday, 2019-10-25

*** jamesmcarthur has joined #storyboard00:14
*** jamesmcarthur has quit IRC00:27
*** jamesmcarthur has joined #storyboard00:28
*** jamesmcarthur has quit IRC00:53
*** diablo_rojo has quit IRC01:01
*** jamesmcarthur has joined #storyboard01:07
*** jamesmcarthur has quit IRC01:19
*** jamesmcarthur has joined #storyboard01:43
*** jamesmcarthur has quit IRC01:46
*** udesale has joined #storyboard04:44
*** ianychoi has quit IRC04:59
*** ianychoi has joined #storyboard05:01
*** udesale has quit IRC06:24
*** udesale has joined #storyboard06:25
*** udesale has quit IRC06:27
*** jtomasek has joined #storyboard06:36
*** udesale has joined #storyboard06:52
*** tosky has joined #storyboard07:18
*** udesale has quit IRC07:49
*** udesale has joined #storyboard07:49
*** zbr has joined #storyboard07:53
*** efried has quit IRC08:02
*** efried has joined #storyboard08:02
*** jamesmcarthur has joined #storyboard12:10
*** jamesmcarthur has quit IRC12:20
*** jamesmcarthur has joined #storyboard12:45
*** jamesmcarthur has quit IRC13:05
*** tosky_ has joined #storyboard15:04
*** tosky has quit IRC15:06
*** jamesmcarthur has joined #storyboard15:08
fungihitting a bit of a dead end on the cors regex implementation. for whatever reason, things are working from the webclient deployment on storyboard-dev, but if i try a draft build i'm getting a "405 Method Not Allowed - The method POST is not allowed for this resource."15:15
fungii think that must be coming from wsgiref.simple_server15:15
*** tosky_ is now known as tosky15:36
fungiconfirmed i get the same behavior with drafts published on rackspace and ovh15:41
fungibasically oauth seems to work, but on returning from the openid provider page to the storyboard api, it complains about the post request15:42
fungithe request as logged by apache looks like...15:43
fungiPOST /api/v1/openid/authorize_return?scope=user&state=EmR...Isf&response_type=code&client_id=storage.gra1.cloud.ovh.net&sb_redirect_uri=https%3A%2F%2Fstorage.gra1.cloud.ovh.net%2Fv1%2FAUTH_dca...44c%2Fzuul_opendev_logs_66c%2F661834%2F1%2Fcheck%2Fbuild-javascript-content%2F66c585e%2Fnpm%2Fhtml%2F%23%21%2Fauth%2Ftoken HTTP/1.115:44
fungi... in there elides some of the lengthy oauth blobs15:45
*** diablo_rojo has joined #storyboard15:46
fungilooks like the working authentication from the webclient deployed on storyboard-dev does...15:48
fungiGET /api/v1/openid/authorize_return?scope=user&state=Qxd...jhh&response_type=code&client_id=storyboard-dev.openstack.org&sb_redirect_uri=https%3A%2F%2Fstoryboard-dev.openstack.org%2F%23%21%2Fauth%2Ftoken&...[lots of openid parameters]... HTTP/1.115:49
fungiso, get is working, post is not15:49
fungiwhy when i use a webclient draft build from object storage does the openid provider send the client to the api with post instead of get?15:50
fungianybody have ideas? i suppose i could try temporarily configuring for another openid provider and see if the behavior is the same15:55
diablo_rojoI've got no ideas unfortunately.16:05
diablo_rojoSotK,?16:05
SotKI also have no ideas off the top of my head, I'll look at the code in a bit16:08
*** udesale has quit IRC16:48
*** jamesmcarthur has quit IRC16:57
*** zbr has quit IRC17:45
*** efried has quit IRC18:44
*** zbr has joined #storyboard19:02
SotKfungi: that API call is what we send to the openid provider as the return_to URL, so I suspect Ubuntu One is deciding which method to use based on the size of the request or something19:06
SotKwe should probably update that endpoint to support POST as well19:07
fungiyeah, maybe. i'm mostly wondering why it seems to want to do a post if i use a draft webclient but uses get if i use the webclient deployed on the server19:12
*** lifeless has quit IRC19:29
*** jamesmcarthur has joined #storyboard19:51
SotKI can reproduce it locally by using a really long string as my hostname, so suspect its related to that20:11
fungioh, i bet it decides if the string is too long it should switch to post20:19
fungiin that case, yeah, we should probably plumb that method to support post as well as get20:19
fungii wonder how hard that would be20:20
SotKshouldn't be too hard20:20
SotKI'll have a look now20:20
fungioh, thanks! if you have a poc i'm happy to toss it up on storyboard-dev along with the test deployment i have for the regex patch20:21
*** jamesmcarthur has quit IRC20:24
*** jamesmcarthur has joined #storyboard20:24
*** jamesmcarthur has quit IRC20:24
*** jamesmcarthur has joined #storyboard20:40
SotKheh, that turned out even easier than I expected20:42
openstackgerritAdam Coldrick proposed opendev/storyboard master: Add support for POST requests to /v1/openid/authorize_return  https://review.opendev.org/69142820:49
SotKfungi: that fixed it in my local instance20:50
funginice! checking that out into the install now20:51
fungihrm... testing with a preview at https://726cff15bf9da77ab255-026d87b5247a083263bcb91063c570fa.ssl.cf5.rackcdn.com/691051/1/check/build-javascript-content/4ce7fc3/npm/html/ and the return from launchpad is tossing up a "-1" error in the webclient. maybe it's that change causing it?20:56
fungiwill try out another20:56
fungihrm, nope, same problem20:57
fungibut maybe this is a new problem20:57
fungii'll check for wsgi errors20:57
*** jamesmcarthur has quit IRC20:58
SotKworks for me20:59
fungiyeah, last thing logged in the apache access log is the 302 redirect from the post, so at least that part looks right (same as get, no longer a 405)20:59
fungioh, that url is working for you?20:59
SotKhave you added an exception for storyboard-dev's self-signed cert in your browser?20:59
SotKyeah20:59
fungiyou're able to log in with it?20:59
SotKyep20:59
fungimaybe something wrong with my account or browser or session20:59
fungiif so, that's excellent news20:59
fungii'll troubleshoot my end then21:00
fungiohh, that's a great point, i switched to friday evening relaxation in the living room, and the browser on this machine may never have used storyboard-dev21:00
fungiahh, it had, but... i just realized eff privacy badger reporting one cross-domain url callout it was blocking21:02
fungistoryboard-dev.o.o21:02
* fungi sighs21:02
SotKwe should really make that "-1" error more informative21:02
fungiyep, works now!21:03
fungiwe added a message to the zuul dashboard which would probably be appropriate to crib there, yeah21:03
fungisomething about failing to reach the api and to check browser privacy extensions and network configuration21:04
openstackgerritJeremy Stanley proposed opendev/storyboard master: Regular expression support for CORS and OAuth ACLs  https://review.opendev.org/69103421:06
fungiguess i'll go ahead and write up the associated config change for storyboard-dev21:14
fungibut i'll leave configuration management disable for it until we get those merged so we can validate webclient changes with it in the meantime21:14
*** diablo_rojo has quit IRC21:25
fungiSotK: i can go either way on the config change. would you rather we amend the regex implementation to require them to start with a ^ so existing deployments don't suddenly end up with slightly looser interpretation of their hostnames?21:43
fungican basically look for entry.startswith("^") and use that to decide whether it should perform a strict == or re.match()21:44
fungii've switched 691034 from approved to wip in the meantime21:45
SotKI think it'd be nice to do that actually just to not weaken any existing checks, not that I think there's really much chance of someone attempting a cross-site scripting attack like that21:48
fungihappy to. just a sec while i respon22:08
fungirespin22:08
mordredfungi: I'd prefer if you respon22:09
SotKthanks22:10
fungiresponning nearly done22:18
fungijust running pep8 locally to check my syntax22:18
fungibah, flake8 is breaking with python 3.8. trying again with 3.722:19
openstackgerritJeremy Stanley proposed opendev/storyboard master: Regular expression support for CORS and OAuth ACLs  https://review.opendev.org/69103422:23
openstackgerritMerged opendev/storyboard master: Add support for POST requests to /v1/openid/authorize_return  https://review.opendev.org/69142822:24
fungithat's all redeployed on storyboard-dev manually now22:28
fungiwith the updated config in the new patchset of the system-config change22:28
fungiseems to be working for me even from draft webclient builds22:28
fungiSotK: mordred: ^22:29
SotKlooks good to me, thanks for the quick respon22:30
fungii like responning, especially on weekends22:32
*** jtomasek has quit IRC22:58
*** jtomasek has joined #storyboard22:59
*** jtomasek has quit IRC22:59
openstackgerritMerged opendev/storyboard master: Regular expression support for CORS and OAuth ACLs  https://review.opendev.org/69103423:14
*** tosky has quit IRC23:42
*** jamesmcarthur has joined #storyboard23:59

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!