πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79402

Re: Syntax or permissions first?

#79402
From: Russ Allbery
Date: Wed, 03 Sep 2008 20:18
54 lines
3710 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

>> READER should only be advertised if the client can use reader commands.
>> If they don't have read access to any group, I wouldn't advertise
>> READER, unless I'm missing some subtlety about what commands are
>> included in that.
>
> The problem is that DATE is included in READER commands and it is
> allowed :)  (In fact, that was especially for that reason why I asked.)

Oh, huh.

I'm not sure this is something we talked about (although DATE as part of
READER rings a vague bell -- as I recall, that was done because the only
real protocol function of DATE is for NEWNEWS and NEWGROUPS).

I'm not sure that we spent a lot of time talking about capabilities in
conjunction with authentication.  The impression I left with was as I'd
said, that capabilities should change based on what the client is
permitted to do based on their current authentication status and other
state, but I'm not sure how strong of a requirement that is for the weird
authentication states that one can end up with.  Most of the language in
the standard talks about what the server "implements" rather than what the
client is permitted to do, which to me implies that you can advertise
capabilities that are implemented but are off-limits to the current
authenticated user.  You don't want to, since it deceives the client, but
it may in some cases not be easy to avoid.

> But I also read:
>
>   o  Reading mode, after a successful MODE READER command (see Section
>      5.3).
>      *  It MUST NOT advertise the MODE-READER capability.
>      *  It MUST advertise the READER capability.
>      *  It MAY NOT advertise the IHAVE capability, even if it was
>         advertising it in transit mode.
>
> So I understand that READER is mandatory when we are in MODE READER
> (thus nnrpd), be that as accessible commands may.
>
> The READER capability seems different than the other as for the
> availability of commands.

Yes, that may well be the case.  Specifically, I don't think we considered
the possibility of a POST-only permission structure after MODE READER, and
the standard right now rules out nnrpd after MODE READER allowing only
POST and no reader commands via capabilities.  I think in that case we
have to advertise READER and just reject the commands that read things.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87ljy99e6e.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mail
References: <g9hkag$i39$1@news.trigofacile.com> <878wuaqki6.fsf@windlord.stanford.edu> <g9l9ec$46l$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <87ljy99e6e.fsf@windlord.stanford.edu>
Subject: Re: Syntax or permissions first?
Date: Wed, 03 Sep 2008 13:18:01 -0700
From: Russ Allbery <rra@stanford.edu>
References: <g9hkag$i39$1@news.trigofacile.com> <878wuaqki6.fsf@windlord.stanford.edu> <g9l9ec$46l$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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 54
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.stanford.edu 1220473081 3783 171.64.19.147 (3 Sep 2008 20:18:01
 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)
Cancel-Lock: sha1:HrM9ZoFrFcpYtkPA/+KSnI8LmEY=