🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87010

Re: STARTTLS testing

#87010
From: Julien ÉLIE
Date: Sun, 27 Sep 2015 10:15
60 lines
3840 bytes
Hi Steve,

> A related issue I can think of is a case where the server operator wants
> to match different auth groups for NNTPS and STARTTLS connections.

When using NNTPS, a separate nnrpd is used (with the -S flag).  If 
needed, one can then also use a separate readers.conf file (with the -f 
flag).



> Perhaps having require_ssl for NNTPS and require_tls for STARTTLS would
> be better?

Is there a real need for that?
I do not see why a server operator would like to treat the two cases 
differently.  (And if he wants, he could use a separate readers.conf file.)

Note that the preferred way (per RFC 4642) is to use STARTTLS:

    In some existing implementations, TCP port 563 has been dedicated to
    NNTP over TLS.  These implementations begin the TLS negotiation
    immediately upon connection and then continue with the initial steps
    of an NNTP session.  This use of TLS on a separate port is
    discouraged for the reasons documented in Section 7 of "Using TLS
    with IMAP, POP3 and ACAP" [TLS-IMAPPOP].

    This specification formalizes the STARTTLS command already in
    occasional use by the installed base.  The STARTTLS command rectifies
    a number of the problems with using a separate port for a "secure"
    protocol variant; it is the preferred way of using TLS with NNTP.



>> I also see that if AUTHINFO SASL is used and negotiates a security
>> layer, INN currently does not take that fact into account (that is to
>> say auth groups with require_ssl set to true still won't be matching
>> that connection).  I believe it should.
>
> This is probably another instance of require_ssl being used to match
> multiple conditions in the auth group.  The consequence is some
> ambiguity in exactly what connection states it should match.  There
> appear to be three connection states, clear, NNTPS and STARTTLS.  Any of
> those could be used with SASL.  Do auth groups require sufficient
> granularity to be able to match these combinations of conditions?

I don't think we really need to have different behaviours.
Aren't the "secure state" and the "unsecure state" enough?  (the fact 
that several means exist to reach a "secure state" should not transparent)

I'm not much in favour of adding extra complexity to readers.conf (that 
is already not that simple!) especially if there is no practical use case...

-- 
Julien ÉLIE

« Soldats, du haut de ces pyramides, vingt siècles nous
   contemplent. » (Napoléon)

Technical Details
Message-ID: <mu8fkr$jul$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
References: <slrnn0aagq.tso.steve@snorky.mixmin.net> <mu4a0d$s4e$1@news.trigofacile.com> <slrnn0d4eu.tso.steve@snorky.mixmin.net> <mu6rbm$nir$1@news.trigofacile.com> <slrnn0fe7s.tso.steve@snorky.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <mu8fkr$jul$1@news.trigofacile.com>
Subject: Re: STARTTLS testing
Date: Sun, 27 Sep 2015 12:15:55 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <slrnn0aagq.tso.steve@snorky.mixmin.net> <mu4a0d$s4e$1@news.trigofacile.com> <slrnn0d4eu.tso.steve@snorky.mixmin.net> <mu6rbm$nir$1@news.trigofacile.com> <slrnn0fe7s.tso.steve@snorky.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 27 Sep 2015 10:15:55 +0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="aaubervilliers-651-1-323-87.w83-200.abo.wanadoo.fr:83.200.90.87";
 logging-data="20437"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0)
 Gecko/20100101 Thunderbird/38.2.0
In-Reply-To: <slrnn0fe7s.tso.steve@snorky.mixmin.net>
X-Received-Body-CRC: 2422230810
X-Received-Bytes: 3883