🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87472

Re: Draft -03 for COMPRESS

#87472
From: Julien ÉLIE
Date: Thu, 16 Jun 2016 19:46
102 lines
6198 bytes
Hi Michael,

>> I suggest to also say that news servers MAY have a global or connection
>> based configuration parameter permitting to enforce more
>> confidentiality on specific newsgroups (notably by ensuring for these
>> newsgroups that the contents of two secret articles are not compressed
>> together).  The server will then clear the compression dictionary
>> before sending any article posted to these newsgroups.
>
> I think we can expect much more technical knowledge from server
> administrators than from users of newsreaders. Therefore I agree:
> More complex implementations should be allowed too.

OK, I'll take that into account for the next version.

At one time, I was wondering whether a new "LIST SECRETGROUPS"-like 
command would be useful to list "confidential" newsgroups but on second 
thoughts, I think it would in fact leak information about the name of 
confidential newsgroups, so it is a bad idea.
Do not hesitate to tell if you have another idea for a LIST command 
related to COMPRESS.

Anything else to fix in the draft?


I am still a bit puzzled by that:
    o  How are TLS (and SASL) specific exchanges supposed to be handled?
       Should it be mentioned in the RFC that they are outside the scope
       of NNTP compression?  (I speak of stuff like TLS handshakes,
       renegotiations, etc. that can occur after the use of COMPRESS.
       OpenSSL may use SSL_read/SSL_write on its own, mayn't it?  And it
       does not know that it should compress data...)

Maybe we should not say anything (when both an SASL confidentiality 
layer and TLS are in use, the RFC for AUTHINFO SASL does not say 
anything about that similar "issue" of adding the SASL confidentiality 
layer during a TLS renegotiation; maybe there is no issue at all in 
fact; I do not see much documentation about how SSL_read/SSL_write 
behaves during TLS specific exchanges).



> I have modified my current implementation in flnews like this:
> Version 0.13 only has a compile time switch 'CFG_CMPR_DISABLE' with
> default value 1 (=> disabled). But recompiling a program is not an
> "easy way" to enable something.
> Version 0.14 (next release) will set this switch to 0 by default
> (=> compression module will be compiled). To control the compression
> I have added a boolean parameter to the configfile and a GUI checkbox
> to toggle it (nonvolatile):
> <http://micha.freeshell.org/tmp/2016-06-16_flnews_config-window.png>
> (3 clicks into menu "Edit->Configuration")
> The default setting after updating from previous versions will be
> "deactivated".

That's a good idea.
No hint in the "Negotiate compression if available" text that it is not 
recommended when confidential newsgroups are accessed?


Hmm, shouldn't we be smarter for negotiating compression and reword the 
draft to say something like:
"Implementations SHOULD use a default configuration with disabled 
compression when a security layer is active, and MUST support an option 
to easily enable compression when a security layer is active [either 
with global scope or server/connection based].  Implementations MAY 
unconditionally support and negotiate compression when no security layer 
is active."

As a matter of fact, there is no security problem when TLS or SASL are 
not used; so why going without the improvement of compressing data when 
there is no security layer?
Does it sound good for you?

The name of the checkbox may then be "Negotiate compression with TLS if 
available (not recommended when confidential newsgroups are accessed)".



> This implementation should now be compliant to the new words for
> "easy" and the cases "global scope" and "server based" (because
> flnews doesn't support multiple servers).

Yep.  I also need updating INN to have a boolean parameter like yours. 
I think I will only add a global true/false parameter in inn.conf and 
not bother with readers.conf to tweak newsgroups access per connection. 
It could be an improvement in future versions when more news clients 
have implemented COMPRESS.
I also have to implement the right 501 response code when the algorithm 
name is not syntactically correct, and 502 instead of 480 after COMPRESS 
is used without being authenticated and the NNTP command is not 
available (AUTHINFO will then respond 502, but INN should have given 502 
just before, instead of 480).

-- 
Julien ÉLIE

« A man inserted an 'ad' in the classifieds:  "Wife wanted".
   Next day he received a hundred letters.
   They all said the same thing:  "You can have mine." »

Technical Details
Message-ID: <njuvm7$v0s$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: <njf91p$b3i$1@news.trigofacile.com> <AABXW+4JgdcAAA2l.A1.flnews@Server4.micha.freeshell.org> <njh71t$gq3$1@news.trigofacile.com> <AABXXSM2rvcAAAt6.A1.flnews@Server4.micha.freeshell.org> <njjo6n$ct3$1@news.trigofacile.com> <njjpno$eit$1@news.trigofacile.com> <AABXXXroib0AAA1G.A1.flnews@Server4.micha.freeshell.org> <njsf8k$663$1@news.trigofacile.com> <AABXYmsFDv0AAAd+.A1.flnews@WStation5.stz-e.de>

Show Full Headers
Complete Article Headers
Message-ID: <njuvm7$v0s$1@news.trigofacile.com>
Subject: Re: Draft -03 for COMPRESS
Date: Thu, 16 Jun 2016 21:46:14 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <njf91p$b3i$1@news.trigofacile.com> <AABXW+4JgdcAAA2l.A1.flnews@Server4.micha.freeshell.org> <njh71t$gq3$1@news.trigofacile.com> <AABXXSM2rvcAAAt6.A1.flnews@Server4.micha.freeshell.org> <njjo6n$ct3$1@news.trigofacile.com> <njjpno$eit$1@news.trigofacile.com> <AABXXXroib0AAA1G.A1.flnews@Server4.micha.freeshell.org> <njsf8k$663$1@news.trigofacile.com> <AABXYmsFDv0AAAd+.A1.flnews@WStation5.stz-e.de>
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=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 16 Jun 2016 19:46:15 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb080103c800f4b8a4d8b0d90d95.ipv6.abo.wanadoo.fr:2a01:cb08:103:c800:f4b8:a4d8:b0d9:d95";
 logging-data="31772"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0)
 Gecko/20100101 Thunderbird/45.1.1
In-Reply-To: <AABXYmsFDv0AAAd+.A1.flnews@WStation5.stz-e.de>
X-Received-Body-CRC: 2701504176
X-Received-Bytes: 6193