Received: from eggs.gnu.org ([2001:4830:134:3::10]:53304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPsQB-0004IT-V3 for qemu-devel@nongnu.org; Fri, 05 Sep 2014 08:15:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPsQ2-0003a5-EX for qemu-devel@nongnu.org; Fri, 05 Sep 2014 08:15:19 -0400 Received: from mail-we0-x22d.google.com ([2a00:1450:400c:c03::22d]:48060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPsQ2-0003Zy-8Q for qemu-devel@nongnu.org; Fri, 05 Sep 2014 08:15:10 -0400 Received: by mail-we0-f173.google.com with SMTP id t60so11691687wes.32 for ; Fri, 05 Sep 2014 05:15:09 -0700 (PDT) Date: Fri, 5 Sep 2014 13:15:06 +0100 From: Stefan Hajnoczi Message-ID: <20140905121506.GE27649@stefanha-thinkpad.redhat.com> References: <20140903164417.GA32748@stefanha-thinkpad.redhat.com> <20140904141916.GA28417@irqsave.net> <20140904220704.GB25871@grep.be> <20140904225445.GA25202@irqsave.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qOrJKOH36bD5yhNe" Content-Disposition: inline In-Reply-To: <20140904225445.GA25202@irqsave.net> Subject: Re: [Qemu-devel] NBD TLS support in QEMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Beno=EEt?= Canet Cc: Stefan Hajnoczi , libvir-list@redhat.com, nbd-generic@lists.sf.net, qemu-devel@nongnu.org, Max Reitz , Paolo Bonzini , Hani Benhabiles , nick@bytemark.co.uk, Wouter Verhelst --qOrJKOH36bD5yhNe Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 05, 2014 at 12:54:45AM +0200, Beno=EEt Canet wrote: > The Friday 05 Sep 2014 =E0 00:07:04 (+0200), Wouter Verhelst wrote : > > On Thu, Sep 04, 2014 at 04:19:17PM +0200, Beno=EEt Canet wrote: > > > The Wednesday 03 Sep 2014 =E0 17:44:17 (+0100), Stefan Hajnoczi wrote= : > > > > Hi, > > > > QEMU offers both NBD client and server functionality. The NBD prot= ocol > > > > runs unencrypted, which is a problem when the client and server > > > > communicate over an untrusted network. > > > >=20 > > > > The particular use case that prompted this mail is storage migratio= n in > > > > OpenStack. The goal is to encrypt the NBD connection between sourc= e and > > > > destination hosts during storage migration. > > >=20 > > > I agree this would be usefull. > > >=20 > > > >=20 > > > > I think we can integrate TLS into the NBD protocol as an optional f= lag. > > > > A quick web search does not reveal existing open source SSL/TLS NBD > > > > implementations. I do see a VMware NBDSSL protocol but there is no > > > > specification so I guess it is proprietary. > > > >=20 > > > > The NBD protocol starts with a negotiation phase. This would be the > > > > appropriate place to indicate that TLS will be used. After client = and > > > > server complete TLS setup the connection can continue as normal. > > >=20 > > > Prenegociating TLS look like we will accidentaly introduce some secur= ity hole. >=20 > I was thinking of the fallback to cleartext case. If the server or client were given a nbds:// URL then don't allow downgrading to unencrypted. I think we can implement this without a security hole. Stefan --qOrJKOH36bD5yhNe Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUCalKAAoJEJykq7OBq3PITWIIAIHMng6D7A7z31QJmLFrmfmX skxTAiHN3NEj6DCWvjo/E7CNLB8ZjfL2hPbw7qgLgrNwHWoiu7YCGLQg9NWaGhEF 46gG3U2ySwnoVFgGmemEpos3OniZtjXuwVdo0iM5s+r7bXrqcbCWjquY/xamARCV j/3Z7IBOX0XYHlPZl0Y2gy6NPhVrectzXQH8uUSu7pSFaC7ggXnGEJ5Nl/23i+mQ 5CaYthlRBJnmLfYKGXe8CqyJBefpOqOCsglkGp6TDZ8gpVqUc9r7EiHmmlRzOY4A hWj4Bih3RIapSozmOkmEIjQ21Gk2oClnTKcgSJV9paYWnzH55j8a2Sl/192+Ics= =u8iF -----END PGP SIGNATURE----- --qOrJKOH36bD5yhNe--