Re: [Sugar-devel] [PATCH] webactivity: seed the XS cookie at startup

2009-02-20 Thread Martin Langhoff
On Thu, Feb 19, 2009 at 7:20 PM, Simon Schampijer si...@schampijer.de wrote: Martin Langhoff wrote: On Tue, Feb 17, 2009 at 11:03 AM, Simon Schampijer si...@schampijer.de wrote: Well, your call - using the schoolserver url then? The fqdn from backup server or jabber server. Either will do

Re: [Sugar-devel] [PATCH] webactivity: seed the XS cookie at startup

2009-02-20 Thread Hal Murray
The fqdn from backup server or jabber server. Either will do until we fix the registration stuff. Please state exactly which one you want - I want this to be your call. How about adding a layer of indirection and letting DNS do the binding? -- I'm not a DNS wizard. DNS has C

Re: [Sugar-devel] [PATCH] webactivity: seed the XS cookie at startup

2009-02-19 Thread Martin Langhoff
On Thu, Feb 19, 2009 at 10:08 PM, Simon Schampijer si...@schampijer.de wrote: Ok, I pushed to browse git master now. Do you have a way to test if it is working fine against a schoolserver or should I create you the 0.82 xo bundle? I have a git checkout - but on the 8.2.x so master won't work

Re: [Sugar-devel] [PATCH] webactivity: seed the XS cookie at startup

2009-02-18 Thread Martin Langhoff
On Tue, Feb 17, 2009 at 12:17 PM, Martin Langhoff martin.langh...@gmail.com wrote: On Tue, Feb 17, 2009 at 11:03 AM, Simon Schampijer si...@schampijer.de wrote: I take it you're happy to fix things up so that the 2 branches are reasonably in sync? Thanks! a git fetch from 'mainline.git'

Re: [Sugar-devel] [PATCH] webactivity: seed the XS cookie at startup

2009-02-18 Thread Simon Schampijer
Martin Langhoff wrote: On Tue, Feb 17, 2009 at 11:03 AM, Simon Schampijer si...@schampijer.de wrote: Well, your call - using the schoolserver url then? The fqdn from backup server or jabber server. Either will do until we fix the registration stuff. Please state exactly which one you want

Re: [Sugar-devel] [PATCH] webactivity: seed the XS cookie at startup

2009-02-18 Thread Simon Schampijer
Martin Langhoff wrote: On Tue, Feb 17, 2009 at 12:17 PM, Martin Langhoff martin.langh...@gmail.com wrote: On Tue, Feb 17, 2009 at 11:03 AM, Simon Schampijer si...@schampijer.de wrote: I take it you're happy to fix things up so that the 2 branches are reasonably in sync? Thanks! a git

Re: [Sugar-devel] [PATCH] webactivity: seed the XS cookie at startup

2009-02-16 Thread Simon Schampijer
Martin Langhoff wrote: On Sat, Feb 14, 2009 at 9:11 AM, Simon Schampijer si...@schampijer.de wrote: Please find attached the patch against master. Looks good to me (but I know nothing of what's changed in master...) - i use the backup_url to see if we are associated with a schoolserver -

Re: [Sugar-devel] [PATCH] webactivity: seed the XS cookie at startup

2009-02-16 Thread Hal Murray
note that if the XS is acting as a proxy the cache issue can be addressed. The XS can get a copy of the XO client cert at registration time, and with it can decrypt the HTTPS traffic and cache the unencrypted version. this is a lot of cpu, but it's on the XS not the XO, so it shouldn't be

Re: [Sugar-devel] [PATCH] webactivity: seed the XS cookie at startup

2009-02-16 Thread david
On Fri, 13 Feb 2009, Martin Langhoff wrote: On Thu, Feb 12, 2009 at 11:54 PM, Simon Schampijer si...@schampijer.de wrote: Plan A - HTTPS to the rescue Just to understand better. Is the main issue that we have to change the protocol - or are you more worried about the CPU cost? Both. And

Re: [Sugar-devel] [PATCH] webactivity: seed the XS cookie at startup

2009-02-16 Thread Martin Langhoff
On Mon, Feb 16, 2009 at 9:36 PM, Simon Schampijer si...@schampijer.de wrote: Our registration URL is REGISTER_URL = 'http://schoolserver:8080/', wouldn't the right Domain than be 'schoolserver'? Since the cookie is about the registration with the schoolserver this makes most sense to me (the

Re: [Sugar-devel] [PATCH] webactivity: seed the XS cookie at startup

2009-02-16 Thread Simon Schampijer
Martin Langhoff wrote: On Mon, Feb 16, 2009 at 9:36 PM, Simon Schampijer si...@schampijer.de wrote: Our registration URL is REGISTER_URL = 'http://schoolserver:8080/', wouldn't the right Domain than be 'schoolserver'? Since the cookie is about the registration with the schoolserver this makes

Re: [Sugar-devel] [PATCH] webactivity: seed the XS cookie at startup

2009-02-16 Thread Martin Langhoff
On Tue, Feb 17, 2009 at 11:03 AM, Simon Schampijer si...@schampijer.de wrote: Well, your call - using the schoolserver url then? The fqdn from backup server or jabber server. Either will do until we fix the registration stuff. Well, it gets the core functionality. If a method can only throw

Re: [Sugar-devel] [PATCH] webactivity: seed the XS cookie at startup

2009-02-13 Thread Martin Langhoff
On Sat, Feb 14, 2009 at 9:11 AM, Simon Schampijer si...@schampijer.de wrote: Please find attached the patch against master. Looks good to me (but I know nothing of what's changed in master...) - i use the backup_url to see if we are associated with a schoolserver - why did you use the jabber

Re: [Sugar-devel] [PATCH] webactivity: seed the XS cookie at startup

2009-02-12 Thread Simon Schampijer
Martin Langhoff wrote: On Thu, Feb 12, 2009 at 11:54 PM, Simon Schampijer si...@schampijer.de wrote: Plan A - HTTPS to the rescue Just to understand better. Is the main issue that we have to change the protocol - or are you more worried about the CPU cost? Both. And also HTTPS network

Re: [Sugar-devel] [PATCH] webactivity: seed the XS cookie at startup

2009-02-12 Thread Martin Langhoff
On Fri, Feb 13, 2009 at 12:19 AM, Simon Schampijer si...@schampijer.de wrote: When thinking about it a bit more - the big plus with your approach that it's only affects Browse - code wise, which is when back porting to 0.82 a big plus, actually maybe the only way. Bingo! I think you're

Re: [Sugar-devel] [PATCH] webactivity: seed the XS cookie at startup

2009-02-12 Thread Carol Farlow Lerche
Martin, I want to understand what https traffic you are concerned will affect performance and caching. As far as I understand the need for https, it would only be used infrequently, when reauthenticating to the server. I.e..: 1. XO connects to Moodle without valid cookie and is redirected to

Re: [Sugar-devel] [PATCH] webactivity: seed the XS cookie at startup

2009-02-11 Thread Martin Langhoff
On Thu, Feb 12, 2009 at 6:47 PM, martin.langh...@gmail.com wrote: When starting up, call seed_xs_cookie() to Hi Simon, Hoping for some review :-) . Do you think this patch can make it into the sucrose-0.82 branch? With a tad of elbow grease, it also applies on top of master. The reason I ask