Article View: news.software.nntp
Article #32562Control Authentication, Take3
From: Matt Dillon
Date: Tue, 27 Oct 1998 00:00
Date: Tue, 27 Oct 1998 00:00
212 lines
10014 bytes
10014 bytes
README.DGP
Diablo Experimental Feature
DGP Crypto Protocol Module
Take 3, 27-Oct-98
The DGP module is designed to support the following administrative news
functions:
* Arbitrary signing of articles
* Multiple signers
* Hierarchical delegation for both public keys and certificates,
including delegation of keys in semi-permanent storage (a key ring)
* General keyword based set of (wildcarded) access rights, group
wildcarding attribute, both logically AND propogated down the
delegation chain.
* Used by the Control infrastructure to manage control messages
for various functions, including newgroup, checkgroups, etc...
* Used by News admins to allow direct third party administrative
control (i.e. cancelbots and other features).
* Used by news servers to add their own signatures for later
administrative control (i.e. so a news admin can cancel/supersede
his own user's articles)
* Used to allow users to sign messages in order to authenticate
personal cancels & supersedes
The core for DGP support is the dgpkeys.kp file. This is a DKP database
implementing the public key keyring used by DGP. You can prime this file
with a single public key from a master delegation site or you can load
this file via the 'dgp' utility program with keys from a master delegation
site. In the former case, it may take upwards of a month for major key
delegations to appear in the keyring.
The dgpkeys.kp file is indexed by label. Each label is tagged with
(all tags optional): public keys, private keys (optionally password
protected), access rights, group hierarchy rights, delegation associations,
certificates, and other features.
CERTIFICATES, PUBLIC KEYS, AND DELEGATIONS
DGP uses a chain of delegations. All public keys relating to the chain
must either exist in the key ring or exist in the article. Certificates
glue the chain of delegations together and are also stored in the key ring
or in the article. Typically, a 'leaf node' is a certificate NOT stored
in the key ring. Even though certificates glue the chain of public keys
together, delegations in the middle of the chain are always associated
with a public key, not a certificate.
For example, if you have two entities A and B, and both A and B's public
keys are stored in your key ring, each entity can independantly head
its own delegation chain. If entity A then signs for entity B, a
certificate is added to the key ring for that association and effects
any control messages that require A's permission to operate. However,
control messages that only require B's permission (and not A's) to
operate follow the chain from B on down and ignore the certificate
gluing A to B. This allows B to operate certain control messages on
its own without having to use the certificate issued to it by A.
These independant operations are typically used for cancels and
supersedes... i.e. operations where you don't need permission from
someone else but can sign an article with your own private key, then
cancel it by sending a cancel control containing a certificate that
you issue to yourself AND also containing your public key.
ACCESS RIGHTS
The access rights list is a single string containing wildcarded elements
OR'd together with ','. For example, "rmgroup,newgroup,cancel" is a
valid access rights list. "rmgroup,save*,fubar?fubar" might be another
access rights lists.
Each public key stored in the key ring contains an access rights string.
Certificates also contain an access rights string. The actual access
rights associated with a public key or certificate is the logical AND
of all the access rights strings making up the chain leading to that
key or certificate, inclusive of the key or certificate itself. The
news system will typically query for a specific right, such as 'rmgroup'.
The queried right must match every access rights string in the delegation
chain to return as being valid.
Access right keywords are described below:
cancel The right to cancel an article
supersedes The right to supersede an article
rmgroup The right to send a rmgroup control
newgroup The right to send a newgroup control
checkgroups The right to send a checkgroups control
dgpstore The right to send a dgpstore (store to ring) control
delegate-* The right to delegate access rights to children
(e.g. 'delegate-cancel'). i.e. you can give a key
or certification the ability to, say, issue a cancel,
without giving it the ability to further delegate
the cancel right.
GROUP RIGHTS
The group rights list works in a manner similar to the access rights list.
In this case, a list of wildcarded groups is specified. Any control
message or posting issuing a control function (such as rmgroup, a cancel,
a supersedes, and so forth) may only operate if both the access and group
rights are found to be valid.
Group rights are typically used in the Control infrastructure to delegate
the responsibility for different subhierarchies to different entities.
EMBEDDING PUBLIC KEYS IN MESSAGES VS STORING IN A KEYRING
There are cases where you want to store public keys in your keyring, and
cases where you do not. In order to save space, public keys relating to
high volume functions must be stored in the key ring so they do not
have to be stored in the control messages. However, public keys relating
to personal cancels or supersedes typically only have to be stored in
the article containing the cancel control or supersedes.
PROTOCOL HEADERS
X-DGPSig: I=identifier F=format H=headerlist S=signature
This header allows you to sign portions of an article with your
private key. It is typically used to sign the Control: header,
message body, and other critical headers. A 'body' header in the
headerlist signifies that the body of the article should be part
of the signature.
The signature is the MD5 of the specified headers & optional body
encrypted with the identifier's private key and must match the
MD5 of the specified headers & optional body after decryption with
the identifier's public key. The signature is always inclusive of
this *specific* header, up to the S= field (and including any preceding
whitespace).
This header cannot be used to sign other X-DGP* headers, but other
DGP headers may exist to certify and/or specify the identifier. These
headers are considered independant and do not have to be signed. If
someone tried to spoof their own X-DGPKey or X-DGPCert, for example,
it would not have any access or group rights because none of the
certifications would match.
X-DGPKey: I=identifier F=format P=public-key
This header allows you to embed a public key in an article. Public
keys are typically embedded only in Control: articles and articles
containing a Supersedes header, and then only when necessary.
X-DGPCert: I1=certifying-identifier I2=certified-identifier C=cryptedtext
cryptedtext (after double decryption):
I1=certifying-identifier
I2=certified-identifier
A=access-rights G=group-rights D=expiration
This header defines a certificate. The certificate specifies both
the certifying and certified's public key identifiers plus
certification text crypted with the certifying entity's private key.
The crypted text is decrypted first the certifying identifier's
public key, and then with the certified identifier's public key.
The post-decryption data will contain I1, I2, and the access and
group rights associated with the certificate.
I2 is optional when self-certifying an article (see below). A and G
are also both optional. D is optional for self-certification cases
only.
Any identifier that does not exist in your key ring must, if the
article represents an operational control, exist in the article
in X-DGPKey headers. However, you do not have to include a X-DGPKey
header for articles you are simply self-certifying, such as a
normal posting. Instead, you supply your public key when you
later cancel or supersede the article.
DGP CONTROL MESSAGES
dgpstore - store keys and certifications in key ring
Requirements:
The body of the message and Control: header must be signed with
a key certified with this access right. The certification may
be included in the article headers in which case the key itself
must already exist in your key ring.
The body of the message will contain the certifications and public key
headers to be stored. These are simply X-DGPCert and X-DGPKey headers
in the body of the message.
Each certification is verified prior to being stored. Only
certifications and public keys which can be recursively delegated
from keys/certifications already in the keyring can be stored in
the keyring.
--
Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet
Communications
<dillon@best.net> (Please include original email in any response)
Technical Details
Message-ID:
<715928$gqu$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-mailShow Full Headers
Complete Article Headers
Message-ID: <715928$gqu$1@flea.best.net> Subject: Control Authentication, Take3 Date: Tue, 27 Oct 1998 00:00:00 +0000 From: dillon@best.net (Matt Dillon) 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: 405669592 X-Trace: nntp1.ba.best.com 909518734 29761 dillon@206.184.139.131 Organization: BEST Internet Communications, Inc. www.best.com Newsgroups: news.software.nntp