From: Wouter Verhelst <w@uter.be>
To: Alex Bligh <alex@alex.org.uk>
Cc: "nbd-general@lists.sourceforge.net"
<nbd-general@lists.sourceforge.net>,
"Daniel P. Berrange" <berrange@redhat.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [Nbd] [PATCH] Improve documentation for TLS
Date: Sat, 9 Apr 2016 12:33:18 +0200 [thread overview]
Message-ID: <20160409103318.GN19023@grep.be> (raw)
In-Reply-To: <FFE67E3D-997B-4AB5-9279-04B05DF9738A@alex.org.uk>
On Sat, Apr 09, 2016 at 11:04:09AM +0100, Alex Bligh wrote:
[...]
> > [...]
> >> +The server MUST NOT send `NBD_REP_ERR_TLS_REQD` in reply to
> >> +any command if TLS has already been neogitated. The server
> >
> > negotiated
>
> I'd make sure you're looking at the latest version as Eagle Eyed Eric
> pointed out a whole pile of these.
Yeah, I noticed :-)
> > [...]
> >> +The client MAY send `NBD_OPT_STARTTLS` at any time to initiate
> >> +a TLS session, except that the client MUST NOT send
> >> +`NBD_OPT_STARTTLS` if TLS has alreay been initiated. If the
> >> +cllient receives `NBD_REP_ACK` in response, it
> >> +MUST immediately upgrade the connection to TLS. If it receives
> >> +`NBD_ERR_REP_UNSUP` in response or any other error, it indicates
> >> +that the server cannot or will not upgrade the connection to
> >> +TLS and therefore MUST either continue the connection without
> >> +TLS, or discconnect.
> >
> > That, or NBD_REP_ERR_POLICY.
>
> Yeah I can make that an alternative.
POLICY is the correct message; UNSUP is the alternative ;-)
(as in "for backwards compatibility, a client should also be prepared...")
[...]
> > (actually, "any error". If STARTTLS errors, the server effectively does
> > not support TLS)
>
> Well NBD_REP_ERR_INVALID means "The option sent by the client is known by
> this server, but was determined by the server to be syntactically invalid."
> which means the client has done something wrong. Given we've defined the
> legal responses to NBD_OPT_STARTTLS I'd rather keep that one.
Fair enough. Also, INVALID is the correct error message when the client sent
NBD_OPT_STARTTLS while inside a TLS connection, too, so that would've been a
contradiction ;-)
> > [...]
> >> - `NBD_OPT_STARTTLS` (5)
> >>
> >> - The client wishes to initiate TLS. If the server replies with
> >> - `NBD_REP_ACK`, then the client should immediately initiate a TLS
> >> - handshake and continue the negotiation in the encrypted channel. If
> >> - the server is unwilling to perform TLS, it should reply with
> >> - `NBD_REP_ERR_POLICY`. For backwards compatibility, a client should
> >> - also be prepared to handle `NBD_REP_ERR_UNSUP`. If the client sent
> >> - along any data with the request, the server should send back
> >> - `NBD_REP_ERR_INVALID`. The client MUST NOT send this option if
> >> - it has already negotiated TLS; if the server receives
> >> - `NBD_OPT_STARTTLS` when TLS has already been negotiated, the server
> >> - MUST send back `NBD_REP_ERR_INVALID`.
> >> -
> >> - This functionality has not yet been implemented by the reference
> >> - implementation, but was implemented by qemu so has been moved out of
> >> - the "experimental" section.
> >> + The client wishes to initiate TLS.
> >> +
> >> + The server MUST either reply with `NBD_REP_ACK` after which
> >> + point the connection is upgraded to TLS, or reply with
> >> + `NBD_REP_ERR_UNSUP`.
> >
> > (or POLICY)
>
> OK
--
< ron> I mean, the main *practical* problem with C++, is there's like a dozen
people in the world who think they really understand all of its rules,
and pretty much all of them are just lying to themselves too.
-- #debian-devel, OFTC, 2016-02-12
prev parent reply other threads:[~2016-04-09 10:33 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-07 11:35 [Qemu-devel] [PATCH] Improve documentation for TLS Alex Bligh
2016-04-07 11:51 ` Daniel P. Berrange
2016-04-07 12:13 ` Alex Bligh
2016-04-07 12:36 ` Alex Bligh
2016-04-07 15:35 ` Eric Blake
2016-04-07 15:52 ` Alex Bligh
2016-04-07 13:56 ` Daniel P. Berrange
2016-04-07 14:08 ` Alex Bligh
2016-04-09 9:50 ` [Qemu-devel] [Nbd] " Wouter Verhelst
2016-04-09 10:05 ` Alex Bligh
2016-04-09 10:29 ` Wouter Verhelst
2016-04-07 14:33 ` [Qemu-devel] " Eric Blake
2016-04-07 14:31 ` Eric Blake
2016-04-07 14:57 ` Alex Bligh
2016-04-09 9:55 ` [Qemu-devel] [Nbd] " Wouter Verhelst
2016-04-09 10:06 ` Alex Bligh
2016-04-09 9:36 ` Wouter Verhelst
2016-04-09 10:04 ` Alex Bligh
2016-04-09 10:33 ` Wouter Verhelst [this message]
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=20160409103318.GN19023@grep.be \
--to=w@uter.be \
--cc=alex@alex.org.uk \
--cc=berrange@redhat.com \
--cc=nbd-general@lists.sourceforge.net \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).