🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #32461

Take two (was: A way to deal with Supersedes)

#32461
From: Matt Dillon
Date: Sun, 25 Oct 1998 00:00
218 lines
10153 bytes
    Here's take two.  Capable of great complexity but simply implemented.
    Works under the existing infrastructure.


				README.PKE

			Diablo Experimental Feature

    This feature is designed to implement a new PKE 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 
    control messages, including cancels and supersedes, and may be used to 
    sign normal articles (as a way of implementing a cancel lock). 

    Essentially, what we want is a delegateable (recursive) public key
    infrastructure which redursively assigns and passes access rights
    and group restrictions (group wildcards).  Every control article
    in the system is authenticated by this mechanism, including 
    indirect control operations such as, say, Supersedes:.  If you trust
    the right entities, the system is auto-maintained.

    Usage:

	* Used by individuals to sign articles with their public key.
	  (note: the news server does not necessarily process such keys)

	* Used by individuals to add their own administrative control
	  keys (such as a key to allow the individual to securely cancel
	  his own article).

	  (note: the news server does not necessarily process such keys)

	* 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 'recursion' rights, where the distribution of a public 
	  key may be authenticated (delegated) 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, i.e. PKE1024 or something like
		that.

	headerlist:
		a list of comma delimited headers.  Only headers with 
		alpha-numerics and dashes may be specified here.

	signature:
		The signature of the article is computed from selected
		headers, the current header (minus the signature itself),
		and possibly the message-body.  The data is MD5'd and run
		through the private key.

		The signature is verified by separately MD5'ing the data
		and running the signature through the public key.  If a
		match occurs, the signature is considered validated.

	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.

				    HEADERS


    X-DPkeSig: I=identifier F=format H=headerlist S=signature

	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 article 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-DPkeSig headers may be specified, allowing a user to give
	access to second parties, allowing a news system to append its own
	X-DPkeSig 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-DPkeKey: I=identifier F=format P=public-key A=access-list G=group-list

	Generally occurs only in 'delegate' control message.  May occur
	in any message but may not necessarily be processed by the server.

	Allows the news admin to distribute his public-key via 
	the news system.  Allows a user to distribute his public-key via
	the news system.  Allows a trusted entity to propogate or destroy 
	a delegation to another key (if the X-DPkeSig header also exists
	and signs all X-DPkeKey headers).

	In the case of a delegated key, the hierarchical relationship is 
	recorded in the keyfile and may later be (recursively) destroyed 
	by the same mechanism by specifying a format in X-DPkeKey of 
	'#destroy'.

	A list of access rights and a group wildcard restriction is passed
	with the delegation.  While you can specify any set of access rights
	and '*' for the group, the actual access rights and group restrictions
	will be limited to access rights and group wildcards allowed by the
	delegating authority.  So, for example, the delegating authority for
	'comp.*' might delegate cancel authority for 'comp.binaries.*' to
	a third party spam canceler.

    X-DPkeAway: I=identifier F=format S=signature

	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, he can sign the header
	with the private key associated with the identifier.

	If the key being given away exists in the key ring, it is marked
	obsolete and will no longer be accepted by the system after the
	operation completes.  If the key does not exist in the key ring
	it is expected to exist as a X-DPkeKey header in the posting
	being canceled, superseded, or otherwise effected by this article.

				DIABLO OPERATIONS

    To enable diablo-based key rings within diablo, diablo must be compiled
    with a working rsaref.2 (XXX) library and the key ring must be initialized.
    dcontrol.ctl must be setup to require the use of the keys in a manner 
    similar to the way PGP is used.  Each key in the keyring is broken 
    up into several parameters:

	* The label, naming the key
	* The public portion of the key
	* The private portion of the key (only exists for keys which you
	  know the private side for.  May be password protected).
	* Group wildcard restrictions for the key, typically '*' (i.e. overall
	  group restriction is taken from dcontrol.ctl).
	* Access rights associated with the key (made up of keywords)

    Access rights are given below.   These are keyword-based, and therefore
    extensible.

	* rmgroup		allow auth source to issue rmgroup
	* newgroup		allow auth source to issue newgroup
	* checkgroups		allow auth source to issue checkgroups
	* moderator
	* supersedes		allow auth source to issue supersedes
	* cancel		allow auth source to issue cancels
	* recursion		allow delegation
	* subrecursion		allow delegated key to also delegate

    The KeyRing is stored in a Diablo DKP database (i.e. a human readable,
    machine editable key-token-value database).

    The KeyRing system is hierarchical.  At the top level are the keys that
    you yourself have created in the system.  You give your keys a set of base
    access rights.  These keys are typically never used to sign anything.

    Instead, you associate trusted key sources with your keys.  For example,
    if the ISC were to distribute a set of keys, you could ftp them and then
    associate them with one of your master keys.

    The hierarchy is used specifically to transfer access rights.  You specify
    a base set of access rights in your master keys.  Any keys created under
    your master keys are also created with a set of access rights, but each
    level in the hierarchy can only *restrict* access rights, so if you do
    not give, say, the cancel access right in a master key, the other keys
    you associate with it will not have the cancel access right even if they
    specify that they want it.



-- 
    Matthew Dillon  Engineering, HiWay Technologies, Inc. & BEST Internet
                    Communications
    <dillon@best.net> (Please include original email in any response)

Technical Details
Message-ID: <71170j$bnn$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-mail
References: <70tcof$ogh$1@flea.best.net> <slrn737959.j6f.aba@sol.muenchen.pro-bahn.org> <87lnm33n0f.fsf@erlenstar.demon.co.uk> <slrn7383rv.mal.usenet@hmmm.colo.erols.net>

Show Full Headers
Complete Article Headers
Message-ID: <71170j$bnn$1@flea.best.net>
Subject: Take two (was: A way to deal with Supersedes)
Date: Sun, 25 Oct 1998 00:00:00 +0000
From: dillon@best.net (Matt Dillon)
References: <70tcof$ogh$1@flea.best.net> <slrn737959.j6f.aba@sol.muenchen.pro-bahn.org> <87lnm33n0f.fsf@erlenstar.demon.co.uk> <slrn7383rv.mal.usenet@hmmm.colo.erols.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: 405104100
X-Trace: nntp1.ba.best.com 909385561 29740 dillon@206.184.139.131
Organization: BEST Internet Communications, Inc. www.best.com
Newsgroups: news.software.nntp