Article View: news.software.nntp
Article #11252Re: ANTP Specification
From: The Gentleman
Date: Mon, 30 Sep 1996 00:00
Date: Mon, 30 Sep 1996 00:00
386 lines
19245 bytes
19245 bytes
In article <52nboh$ork@nnrp1.news.primenet.com>,
bkogawa@primenet.com (Bryan Ogawa) wrote:
}[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.
}>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.
This is a possible problem, except that without an index file, you would
be trying to guess a filename that might be 255 characters long, and
deliberately chosen near-randomly. Also, you have only the Message ID, not
the Subject, From, or any other useful fields. I think it would take
deliberate effort in the form of a CGI script to really make it a place to
read the group. In which case, why not use DejaNews?
However, if it does prove to be a problem, I think it likely CH operators
would say to hell with the spec, and use a more selective access model.
}
}>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.
The placing of an upper limit is neccesary, to keep the CH as simple as
possible, otherwise you would need a constantly updated index file, and have
some serious collision problems or a much more complex CH. Placing a lower
limit on the capability of the CH filename length may be uneccesary. Perhaps
I should just say that no article should be transferred that has an article ID
longer than the maximum filename size for the CH?
}
}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.
Somebody else brought this up, I'll look into a solution. Windows systems
would have an equal problem with the '\' character. I may just look at a few
thousand posts, if I don't see any unacceptable characters, I'll just exclude
them from transport, like excessively long message ID's.
}
}>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.
Which is why I was specific about mentioning it. At least a few FTP
implementations do create errors on collision, many others would simply
overwrite the file that arrived first. This section probably needs a little
revision.
}
}>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).
I may try to look at multiple directories, but this opens another can of
worms.
}
}[...]
}>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.
It's a potential option, and lies outside of the scope I'm addressing. I
included it because it would be possible to have IP as well as NNTP barriers
during peak load. I could leave this portion out, as it is more of a FTP
issue than ANTP.
}
}>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.
Not if the CH spec is kept so simple. If everything devolves on the
Client, the client can more easily be configured to match the particular
circumstances it is dealing with. Which is why I place so much importance on
clients identifying themselves, if they start generating spew, it needs to be
spotted quickly.
}
}[...]
}>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.
Again, smart clients reduces CH host system load, not a small
consideration. I am deliberately departing from the traditional client/server
model with smart servers, to one more in line with modern distributed
computing, where everything possible is placed on the client.
}
}>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?
At least one implementation of an FTP server for Linux does this, and the
standard FTP server for Windows NT. Others will 'fail safe', by overwriting
the first file received. As far as I know, very few would automatically
rename the file.
}
}[...]
}>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]:
}
}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.
Since the intent is to make the route traceable, so that a source of
errors may be identified, I should find a different separator. Perhaps '^',
as I have never seen that in a group name or address, and it is 7-bit ASCII.
}
}[...]
}>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.
It assumes that the client isn't going to lie. I can't see a way to
establish absolute authentication. A 'Secure' CH can provide that, if
neccesary. Eventually, a 'smart' CH could be created, but it isn't neccesary
to begin with one.
}
}>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.
Because I'm a lazy bugger in my coding. You're right, I should lose this
one.
}
}[...]
}
}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.
If security problems arise, a change to the 'Secure' CH can be made, at
which point it is as secure as the FTP server hosting the CH. This requires
only getting the admins of the host site to add a user, whose only privilege
is to upload to that directory.
}
}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.
That is one purpose, yes. Admins rarely have time to trace back and find
out exactly why 2/3 of the posts in alt.thing are arriving a week late, when
the rest of the feed is okay. They usually don't class getting a one-group
feed as a worthwhile use of their time, either. And users are unequipped to
do so, as it currently stands.
}
}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.
Which is why the CH is made as simple as possible. Other than arranging
for the hosting of the CH, and possibly securing it against improper use, his
task is pretty simple. And, after all, he is a volunteer, presumably because
he likes the group.
}
}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).
Which would make one think twice before using ANTP for
alt.sex.pedophilia.pictures . What FTP site is going to serve as the CH for
that? It's a legal issue, not a technical one. The other issues can be
solved through use of a 'Secure' CH.
}
}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.
Again, this is why the specific mention of the 'Secure' CH. If only
'trusted' users have access, the problem becomes much more tractable. Since
even a small (around 12) number of particpants can have a sizable benefit for
the group, this is not a major drawback.
}
}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.
Which is why I am going through this, rather than just building it and
making everyone live with the result.
}
}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 am on fairly good terms with most of the admins I know on the net, and I
am trying to design this to prevent extra headaches for them. Yes, their
tacit permission is necessary for its use. But since articles can only hit
their server if they have already started carrying that group, it shouldn't be
any extra headaches for them.
}
}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.
Sounds fine to me. I hope that admins will not be reflexively hostile to
it, it really can make their lives simpler.
}
}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.
Yeah, I know. I hope to walk this tightrope successfully.
}
}I hope my comments are of assistance.
}
Much, thank you.
Regards,
The Gentleman
--
There comes a time in the affairs of man when he must take the bull by the
tail and face the situation
W. C. Fields
//.sig created by Inscrutable V0.2a
//Please report any irregularities to elcabalero@aol.com
Technical Details
Message-ID:
<52nipe$55s@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-mailReferences:
<52mm8p$54d@library.airnews.net> <52nboh$ork@nnrp1.news.primenet.com>Show Full Headers
Complete Article Headers
Message-ID: <52nipe$55s@library.airnews.net> Subject: Re: ANTP Specification Date: Mon, 30 Sep 1996 00:00:00 +0000 From: elcabalero@aol.com (The Gentleman) References: <52mm8p$54d@library.airnews.net> <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 X-Deja-AN: 186151598 Organization: White Knight Consulting Newsgroups: news.admin.net-abuse.misc,news.admin.misc,news.software.nntp X-us-congress: FUCK OFF!,