Article View: news.software.nntp
Article #32448Re: A way to deal with Supersedes: (was Re; Cat bathing)
From: Matt Dillon
Date: Sun, 25 Oct 1998 00:00
Date: Sun, 25 Oct 1998 00:00
165 lines
7527 bytes
7527 bytes
Ok, Lets put this on a more positive note and discuss a general solution
to the problem.
How about this. I could implement this in about three days for Diablo
using the RSAREF library, inclusive of all the key-ring management
functions.
README.RSA
Diablo Experimental Feature
This feature is designed to implement a new RSA public-key authenticated
control message format. It works in a manner similar to PGP but is
somewhat easier to use. The existing control infrastructure is used.
The new authentication format may also be used for authenticating cancels
and supersedes.
Usage:
* Used by individuals to sign articles with their public key
* Used by individuals to add their own administrative control
keys (such as a key to allow the individual to securely cancel
his own article).
* Used by news systems to add their own adminstrative control
keys.
* Used by moderators to add their own administrative control or
authentication keys, allowing articles posted to moderated groups
to be authenticated with the moderator's key (that is included
in the newgroup message for the group or otherwise propogated).
* Used by third parties to authenticate control messages such as
cancels, newgroup, rmgroup, and so forth, with their public
keys distributed via a separate mechanism.
* Used by anyone to propogate a public key.
* Allows key associations, where the distribution of a public key may
be authenticated with a pre-existing key.
For example, a moderator could hand out keys to helpers or even to
various spam-canceling bodies that he wishes to give administrative
control (or just cancel access) to.
Field definitions:
identifier:
Identify the public or private key. May contain
alpha-numerics, dashes, colon, slash, question-mark,
period, at-sign, plus-sign, and tilde.
Typically in the form of a URL, user@fqdn, or group-name.
format:
Encryption format used, typically RSA128 for an article
and RSA1024 for a control message.
headerlist:
a list of comma delimited headers. Only headers with
alpha-numerics and dashes may be specified here.
signature:
The signature computed from the specified headers and (if
specified) body, matching the MD5 of the article after
encrypting with the public key. Only the specified headers
and/or body is involved in the encryption/md5 check.
public-key:
A public key in the specified format, in ascii (typically
in hex ascii).
private-key:
A private key in the specified format, in ascii (typically
in hex ascii).
access-list:
Administrative access list. The list is further restricted
by the context of the message and the access the related parent
key was given. i.e. when you have a relationship between
a parent key and sub-key, the sub-key cannot grant access
beyond what the parent key granted it.
md5:
An md5 checksum of the current header, non-inclusive
of the '5=md5' or terminating LF, but inclusive of
the space preceeding the 5= key-value pair. This
key-value pair must be the last key-value pair on the
line.
HEADERS
X-DRsaSig: I=identifier F=format H=headerlist S=signature 5=md5
Used to sign a normal posting or control message. There are no guard
characters. The specified headers and body (if included) must be
8-bit clean. This also means that the body must terminate with an LF
prior to escaping. The 8-bit clean article must be '.' and LF->CRLF
escaped by the NNTP protocol and de-escaped (remove '.' and CRLF ->LF)
on the remote side. An article containing CR's in de-escaped form is
allowed but must be properly escaped/deescaped, i.e. CRLF->CRCRLF
and CRCRLF->CRLF.
Multiple X-DRsaSig headers may be specified, allowing a user to give
access to second parties, allowing a news system to append its own
X-DRsaSig header for additional administrative control, and allowing
third party mechanisms to sign control messsages with their own
(possibly separately distributed) keys. Administrative control is
a propogation mechanism so, for example, an intermediate hop may
add its own signature to the header. This capability, however, is
not recommended for general purpose use.
The signature is based on the unescaped 8-bit clean form of the
article.
The news system tests the signature on an as-needed basis, typically
from the news system's public key ring file or DBM'd key ring.
X-DRsaKey: I=identifier F=format P=public-key A=access-list 5=md5
Optional in messages, allows the user to distribute his public-key
via the news system. These keys are typically picked up by news
admins manually but a self-authentication URL form is allowed to
give administrators and users the ability to pick up publically
distributed keys either manually, semi-automatically, or automatically
(and, as a consequence, with varying levels of security associated with
the key).
It is also possible to sign a public key with a separately
authenticated private key (have both X-DRsaKey and X-DRsaSig, where
XDRsaSig signs all XDRsaKey's) and to have the news system
automatically pick up the new key if it already trusts the
authentication key. The relationship is recorded in the keyfile and
may later be destroyed by the same mechanism by specifying
a format in X-DRsaKey of '@destroy' and a wildcard for the identifier.
In this case, any relationships based on the private key and matching
the wildcard are recursively destroyed (removed) from the key ring.
X-DRsaAway: I=identifier F=format U=private-key 5=
May be used in cancels, supersedes, or any article which creates a
side effect on some other article. Allows a user or administrator
to sign postings with a random key. If the user then wishes to
override (cancel or supersede) the posting, hey may provide the
private key in this header. The private key is only used to
authenticate the original posting. The original posting need not
contain the X-DRsaKey header to be overriden in this manner.
The distribution of any private key will, if authenticated against
a public key for that identifier in the news system's key-ring file,
destroy the public key in the news system's key-ring file as well
as any recursive relationships based on that key.
SPECIFIC FORMATS USED FOR USENET NEWS
--
Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet
Communications
<dillon@best.net> (Please include original email in any response)
Technical Details
Message-ID:
<7104cs$fes$1@flea.best.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:
<70tcof$ogh$1@flea.best.net> <3633D116.669B@skynet.be> <yl7lxo6cpd.fsf@windlord.stanford.edu> <36338045.AEC96338@skynet.i8spam.be>Show Full Headers
Complete Article Headers
Message-ID: <7104cs$fes$1@flea.best.net> Subject: Re: A way to deal with Supersedes: (was Re; Cat bathing) Date: Sun, 25 Oct 1998 00:00:00 +0000 From: dillon@best.net (Matt Dillon) References: <70tcof$ogh$1@flea.best.net> <3633D116.669B@skynet.be> <yl7lxo6cpd.fsf@windlord.stanford.edu> <36338045.AEC96338@skynet.i8spam.be> 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: 404979126 X-Trace: nntp1.ba.best.com 909350121 29740 dillon@206.184.139.131 Organization: BEST Internet Communications, Inc. www.best.com Newsgroups: news.software.nntp