🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #11230

Re: ANTP Specification

#11230
From: Bryan Ogawa
Date: Sun, 29 Sep 1996 00:00
312 lines
14358 bytes
[a courtesy copy has been cc'ed to the sender]

elcabalero@aol.com (The Gentleman) writes:

I thought this was interesting, and I believe that the prolem you're
addressing is real, but I have some concerns about this proposal.

[...]
>Accelerated News Transport Protocol

>A Proposed Standard for Batch-Based
>News Transmission by Users
[...]

>2.2   The Central 'Clearing House'

>The 'Clearing House' (CH) will be a FTP/HTTP capable server which
>will be designated as the location for transfer of articles in a
>particular group.  Articles will be sent to the CH via FTP upload,
>and received from it by HTTP.  The CH will have certain mandatory
>configuration properties, and certain voluntary ones.  There will be
>two general classes of CH, Open and Secure.

>2.2.1.   Mandatory Configuration

>The CH 'transfer' directory will be required to be 'world readable'
>via HTTP.  If an open CH, the transfer directory must be also world
>writeable via anonymous FTP.  If a secure CH, it must be writeable
>by a site-selected username created for the purpose.  The name of
>the transfer directory is not set, but must be known to the client. 
>If the FTP and HTTP directories are not identical, this must also be
>known to the client.

I understand that there are good political reasons to make transfer
directories world readable (specifically, preventing the oligarchical
nature of NNTP).  However, the reasons that news servers don't accept
connections from the world are often legitimate ones.  Many people will
end up reading news directly off of the CH instead of using it to find and
inject news, especially since the CH will ideally represent a
world-readable "full feed" of all articles in the group. 

This sort of requirement makes it less appealing to run the CH.

>The articles will be placed in the CH by the clients, and must be
>given filenames that are identical to the message ID's assigned to
>that article per RFC 822 and RFC 1036.  This means that no article
>may be transferred via ANTP with a message ID longer than 255
>characters.  Some systems may require a shorter file name, the
>system limit will then become the maximum usable.  No architecture
>allowing less than 240 character filenames should be used for a CH.

Technical nit:  I believe that the recommended practice (and a good idea
in any case) is for standards documents to NOT specify an implementation
when it's not needed, and I believe it's specifically not needed here. Try
saying something like, "The clients must pass the message ID as per RFC
822 and RFC 1036 as the filename of the article, and the server must
identify the articles available for download by their message IDs, and
accept article requests via message ID."  The big thing is to try to NOT
tie the implementation to the definition.  Eventually, someone will
probably want to write a version which works with something unexpected
(like database software) and it's better if they are given the freedom to
do what they want when they do that.

Another problematic case is the directory separator in Message-IDs.  I
don't believe that either RFC822 or RFC1036 bans the / (the Unix file
separator) from Message-IDs, but this would specifically be a problem when
uploading to existing FTPs (at least, it's a problem with my ftp server,
which is a fairly standard 4.4BSD one), in that my server won't let me
upload such a file.  Admittedly not a likely problem, as far as I can tell
but who knows what creatively anarchistic people will do in the future? 
This problem extends to download as well.

>The CH must be capable of handling 'collision' between two clients
>attempting to upload the same article simultaneously by generating
>an error and refusing the duplicate article.

This is a major concern, as I believe that most current ftp servers do not
do this by default (e.g. simultaneous uploads produce no warning and may
produce various unexpected results).  Solving this problem, if it exists,
will rest upon the writers of ftp servers.

>2.2.2.   Optional Configuration

>To reduce system load from excessively large directory listings a
>rolling one-week window is suggested.  Articles should be 'retired'
>from the transfer directory on a regular basis.  Some retirement
>mechanism is required, exact details are subject to local option.

This is a significant problem with current news server software, since
Unix (the platform I'm familiar with) takes a time which increases
linearly with the number of directory entries to return a directory
listing (plain english--double the number of files in a directory, double
to time to list the directory).  This problem becomes _very_ difficult to
address in this suggested implementation, since the design of the protocol
seems tied to this implmentation (all articles in one newsgroup sit in one
directory).

[...]
>Mirroring of the CH is possible, however such mirroring should be
>done on a frequent basis, at least 4 full exchanges per day. 
>Mirroring should take place in both directions.

This requirement increases the responsibility of CHs, although I can again
see reasons for this requirement.

>2.3.   The ANTP Client

>ANTP requires 'Smart Clients'.  Most of the activity will be
>initiated by the clients, and most error-protection will be the
>responsibility of the client.  The client must be capable of

I think I understand why you are placing the burden on the clients, but I
think that this is misguided, since I think it more likely that
client-writers will make mistakes (as there will presumably exist more
clients than servers (in numbers and in types)).  Additionally, it is
likely that server-maintainers will be held responsble for errors and
problems with this transport mechanism.

[...]
>from the NNTP server.  Either NOV commands or NNTP commands may be
>used for this purpose, other news database commands may be used as
>well.  The absolute message ID must be recovered, although a local
>article reference may also be used for streamlining the process.

This is the sort of phrasing that should go above.  Give the
server-writers the sort of freedoms you're giving the client-writers.

>The client must be capable of dealing with collision, and of noting
>these collisions and adding the associated article to the history,
>to avoid looping.  NNTP servers or CH's that will not generate
>errors in case of collision should not be used with a ANTP client. 
>The client must be capable of testing the NNTP server and CH to
>ensure that collision will not lead to article duplication.  This
>testing should be done at least once per installation, and repeated
>as necessary.

This is good, and fits well with what appear to be your operating
principles, but I remained concerned about the part you did hand off to
the server (preventing simultaneous duplicate uploads).  Have you found an
ftp server that does this?

[...]
>3.1.   Format for ANTP Client-Added Headers

>All header lines added by the ANTP client will follow a specified
>format.  This format will take the form of:

>X-ANTP-[Group-name]-[ANTP-client-ID]-[Header-name]:

This header form produces possibly ambiguous headers, which may or may not
matter, depending on what you are looking for.

Consider the following Groups, headers, and client ID:

Newsgroup: alt.john-perry

Header: X-Net-Fun.com:

ClientID: flames-more@X.Net-Fun.com

This should be

X-ANTP-alt.john-perry-flames-more@X.Net-Fun.com-X-Net-Fun.com:

But this could also come from a post like so:

Newsgroup: alt.john-perry-flames
Header: Fun.com-X-Net-Fun.com:
ClientID: more@X.Net

Or, with a bit more playing with other stuff, even more variants.

Admittedly, it may not be your intent to produce unambiguously traceable
headers (but only produce unique variant headers), but I think that
unambiguous headers have something to be said for them.

[...]
>3.3.   ANTP Identifier Header

>Each ANTP handled article uploaded to the CH will include one X-
>header at the end of the header section of the article, which will
>be used specifically for identifying the last ANTP client that
>handled the article.  This will be a Break: X-header, and will
>include any additional information that may be needed to identify
>the operator of the ANTP client:

>X-ANTP-alt.thing-johndoe@baz.com-Break:1-555-555-1212

I would consider the method used above to be insufficient to identify the
operator of the ANTP client.

>This header will be followed by a newline, and then the symbols:

><BREAK>

>This will be used by later ANTP clients to mark the break between
>article headers and the article body.  The article body should
>follow immediately after the <BREAK> line.

Without meaning to flame, why?  Unless I'm sorely mistaken (which is
possible), there is already an umanbiguous separator of article header
and body, an empty line (one which only has CRLF).  I don't see the reason
for this <BREAK> thing.

[...]

After reading this through more carefully, I have the following concerns,
as well:

1.  Security.  Netnews is hardly secure, but this introduces yet another
way to insert forged postings.  And, unlike a fair number of other
methods, it's even more difficult for the perpetrator to be traced.  To
trace a forgery, you will need:

   a)  to realize it is a forgery.
   b)  possibly, the help of the news admin at the site where it was
	injected by a client.
   c)  possibly, the help of the injecting client.
   d)  the help of all CHs which the message passed through before this,
	and possibly their site administrators (you will need to
	trace through anonymous ftp upload logs).
   e)  possibly, additional news hosts, clients, and CHs (not likely, but
	possibly).
   f)  the help of the administrator of the ISP of the offender.

Realize that there is nothing that a large ISP can do to make this attack
harder--they must use post-facto means to trace the offender, since they
_cannot_ force posters to insert revealing headers (since the CH is NOT
their host, and besides, this is happening through anonymous ftp upload,
which is decidedly low-security). In addition, it is even more likely that
the offending ISP will not face the brunt of complaints, since common
posters cannot trace the articles past the CH. 

In addition, the news administrator at the point where posts are injected
also faces complaints, which he/she is most likely to pass on to the
person who is propogating the message.

Finally, remember that such forged posts may easily be made to ANY
newsgroup, since the Newsgroups: line is preserved.

2.  The CH admin's burden.

It seems to me that this is designed to transport without the need for
news administrators or their time.

However, the replacement "thankless beast of burden" is the administrator
of the CH, and this person is even more ill-equipped than the news
admin for the task.

For this analysis, the CH admin is presumed to be the person in charge of
the FTP and HTTP sites on the CH, and responsible for their upkeep and
maintenance.

First, the CH admin bears the responsibility for the traffic on the site. 
They are the ones who get in trouble if people choose to point newsreaders
directly at the HTTP site, or upload "nekkid pics" to the FTP server under
the guise of new articles (at which point people will start using their
web browsers on the results).

They are the ones that have to make sure that people don't do things like
put in new directories with names like ".. " and stuff like that in them.

They are the ones that need to trace back posts forged from their sites,
and then they probably can't even kick the offenders of their system, but
must politely ask some other entity to do so.

A lot of this can be improved by making the CHs protected, and choosing
responsible individuals to handle news transport into and out of the
newsgroup.

3.  If it works, it'll be with us forever.

Remember, if what you do is popular, everyone will keep using it for the
next decade.  Choose wisely now, or everyone will pay tomorrow.

4.  You must make news admins happy.

While it may seem like news admins are a group of wild and crazy folks who
basically let most folks say what they want, beware them if agitated.
News admins have the power to completely destroy the ability of ANTP (or
things reasonably like it) to work.  They can do so by the following
actions:

	1.  Rejecting all articles with ANTP-style headers sent by local
		posters.
	2.  Rejecting all articles anywhere with ANTP-style headers.
	3.  Holding ANTP repost clients liable for all articles posted
		by them.

Realize that you need the good will of news admins to keep this from being
stillborn.

I expect that most comments from news admins to this proposal will be
negative.  I encourage you to find and use this commentary as positively
as possible, since (1) it will probably be educational if nothing else (I
will certainly read responses by others and expect to learn quite a bit),
(2) may help you shape this proposal into something better, (3) may spawn
new and different ideas which someone else can use.

I also encourage you to accept flaming with patience.  It's the angry
people who are most likely to do things that will doom ANTP as it
stands--they are the people you need to convince most that this is a
workable idea.

I hope my comments are of assistance.


--
bryan k. ogawa  <bkogawa@primenet.com>  <bkogawa@netvoyage.net>

Technical Details
Message-ID: <52nboh$ork@nnrp1.news.primenet.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.mbox.zip!not-for-mail
References: <52mm8p$54d@library.airnews.net>

Show Full Headers
Complete Article Headers
Message-ID: <52nboh$ork@nnrp1.news.primenet.com>
Subject: Re: ANTP Specification
Date: Sun, 29 Sep 1996 00:00:00 +0000
From: bkogawa@primenet.com (Bryan Ogawa)
References: <52mm8p$54d@library.airnews.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.mbox.zip!not-for-mail
X-Deja-AN: 186135814
Organization: Primenet Services for the Internet
X-posted-by: bkogawa@206.165.5.104 (bkogawa)
Newsgroups: news.admin.net-abuse.misc,news.admin.misc,news.software.nntp