All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Veillard <veillard@redhat.com>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Re: [RFC][PATCH] Secure XML-RPC for Xend
Date: Fri, 9 Jun 2006 11:45:46 -0400	[thread overview]
Message-ID: <20060609154546.GK31509@redhat.com> (raw)
In-Reply-To: <pan.2006.06.09.14.57.24.87401@us.ibm.com>

On Fri, Jun 09, 2006 at 09:57:24AM -0500, Anthony Liguori wrote:
> On Fri, 09 Jun 2006 09:54:44 +0100, Anil Madhavapeddy wrote:
> 
> > On Fri, Jun 09, 2006 at 04:41:48AM -0400, Daniel Veillard wrote:
> >> 
> >>    SSH authentication is really expensive especially when you compare to
> >> other cost in the XML-RPC. I would really like some persistency
> >> of the connection if possible, especially for operations like monitoring,
> >> it's okay to reopen from time to time, but without reuse it would just not
> >> work.
> > 
> > Yes, but the right place to do it is not in Xend.  The auth caching
> > can be set up outside of Xend much more robustly depending on your
> > version of OpenSSH.  If done in Xend, then it definitely needs to
> > use the wildcard support in ControlPath to avoid the authentication
> > race condition, and an OpenSSH version check.
> 
> I think Daniel is suggesting that we use HTTP Keep-Alive which I also
> think is a really good idea.  I think this will come in handy regardless
> of whether we use SSH.

  Activating Keep-Alive would be a really good idea in any case,
local or remote, direct auth or tunnelling ! IIRC the main question
was about activating it at the Python level, that's something we
discussed on IRC but never formally I guess :-)

> This makes my patch a lot nicer though.  I just would make sure the
> client uses Keep-Alive and then you get the same 1-time auth without
> any of the SSH trickery.

  Is that just client side ?

> I'm investigating this right now.  I seem to recall the HTTP server in
> python providing support for Keep-Alive...

  Okay, maybe I'm off base :-)

> > 
> > As Ian says, stunnel/SSL is probably easier from the client's point
> > of view (although I do like the easier SSH key management this patch
> > allows).
> 
> There doesn't have to be one solution.  The only real code that's needed
> here is xm serve which is not more than 100 lines.  The client code is
> more of an example.  I see no reason why we couldn't support all of these
> protocols (httpu, http, https, ssh).

  Agreed, those are layered features, they should not have to conflict.

Daniel

-- 
Daniel Veillard      | Red Hat http://redhat.com/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

  reply	other threads:[~2006-06-09 15:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-09  2:13 [RFC][PATCH] Secure XML-RPC for Xend Anthony Liguori
2006-06-09  2:45 ` Matthew Palmer
2006-06-09  8:34 ` Anil Madhavapeddy
2006-06-09  8:41   ` Daniel Veillard
2006-06-09  8:54     ` Anil Madhavapeddy
2006-06-09 14:57       ` Anthony Liguori
2006-06-09 15:45         ` Daniel Veillard [this message]
2006-06-09 15:57           ` Anthony Liguori
2006-06-09 12:00   ` Anthony Liguori
2006-06-14  8:36 ` Ewan Mellor
2006-06-14 17:26   ` Anthony Liguori
2006-06-14 17:36     ` Ewan Mellor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060609154546.GK31509@redhat.com \
    --to=veillard@redhat.com \
    --cc=aliguori@us.ibm.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.