🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by D. Stussy Wed, 03 Dec 2008 01:53
Thought about new control message type: pgpkey
#79806
Author: D. Stussy
Date: Wed, 03 Dec 2008 01:53
29 lines
2366 bytes
As we all know, some hierarchies of newsgroups are managed by messages
signed with the PGP key system.  However, should the key in use be changed,
all changes have to be manually done.  Is there any merit into creating an
automatic system to distribute new keys?

The control message would contain as its body the text representation of
the new key.  The message should (must*) be signed by the OLD, expiring
key.

* - Must: For hierarchies already under PGP-signed message management, the
pgpkey control message will probably be protected by a "verify-*" statement
in "~news/etc/control.ctl" and therefore must be signed with the old key.
For hierarchies establishing their first key, this obviously cannot a
requirement (as there is no key with which to sign the message).

The default action in "control.ctl" should be "pgpkey:*:*:log=pgpkeys" so
that no key message is lost (in addition to any normal filing of control
messages as articles).

The "doit" action could automatically install the key into the news user's
key ring, by executing a "gpg --import" operation, replacing any existing
key of the same "type."

Use of this type of control message is purely optional.  However, it may be
useful in key rollover by avoiding the necessity of manual updates.

Comments?

Re: Thought about new control message type: pgpkey
#79814
Author: Julien ÉLIE
Date: Thu, 04 Dec 2008 07:04
66 lines
3058 bytes
Hi D. Stussy,

> As we all know, some hierarchies of newsgroups are managed by messages
> signed with the PGP key system.  However, should the key in use be changed,
> all changes have to be manually done.  Is there any merit into creating an
> automatic system to distribute new keys?

Any news administrator can regularly download:

    ftp://ftp.isc.org/pub/usenet/CONFIG/control.ctl
    ftp://ftp.isc.org/pub/pgpcontrol/PGPKEYS

The first one contains an up-to-date control.ctl file; the second one, PGP keys.
(Supporting control.ctl.local would be useful for that purpose because updating
control.ctl would not remove local customizations.)

Then, from PGPKEYS, the ring can be created or updated.
See for instance this script from Marco d'Itri:

buildinnkeyring.sh
------------------

#!/bin/bash
. /usr/lib/news/innshellvars

cd $PATHTMP

KEYSURL=ftp://ftp.isc.org/pub/pgpcontrol/PGPKEYS
KEYSFILE=PGPKEYS

KEYRING=${NEWSETC}/pgp/pubring.gpg

trap "rm -f $KEYSFILE" 0 1 2 15

rm -f ${KEYSFILE}
${GETFTP} ${KEYSURL}

test -f ${KEYSFILE} || exit 1

gpg --batch --no-permission-warning \
 --no-default-keyring --keyring=${KEYRING} --no-options \
 --allow-non-selfsigned-uid --fast-import ${KEYSFILE}

exit $$



> The control message would contain as its body the text representation of
> the new key.  The message should (must*) be signed by the OLD, expiring
> key.

Hoping that a key is not lost by its owner.



> Use of this type of control message is purely optional.  However, it may be
> useful in key rollover by avoiding the necessity of manual updates.

Manual updates are not necessary.

-- 
Julien ÉLIE

« -- Il t'arrive une tuile ?
  -- Oui, je ne peux pas payer mon ardoise. » 
Re: Thought about new control message type: pgpkey
#79830
Author: D. Stussy
Date: Thu, 04 Dec 2008 20:41
77 lines
3435 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gh7vdm$btt$1@news.trigofacile.com...
> Hi D. Stussy,
>
> > As we all know, some hierarchies of newsgroups are managed by messages
> > signed with the PGP key system.  However, should the key in use be
changed,
> > all changes have to be manually done.  Is there any merit into creating
an
> > automatic system to distribute new keys?
>
> Any news administrator can regularly download:
>
>     ftp://ftp.isc.org/pub/usenet/CONFIG/control.ctl
>     ftp://ftp.isc.org/pub/pgpcontrol/PGPKEYS

That's a manual step....  The news admin also needs to know that new
data/configuration is available (i.e. they must pull the data).  What I
suggested is a push-type action construct.

> The first one contains an up-to-date control.ctl file; the second one,
PGP keys.
> (Supporting control.ctl.local would be useful for that purpose because
updating
> control.ctl would not remove local customizations.)
>
> Then, from PGPKEYS, the ring can be created or updated.
> See for instance this script from Marco d'Itri:
>
> buildinnkeyring.sh
> ------------------
>
> #!/bin/bash
> . /usr/lib/news/innshellvars
>
> cd $PATHTMP
>
> KEYSURL=ftp://ftp.isc.org/pub/pgpcontrol/PGPKEYS
> KEYSFILE=PGPKEYS
>
> KEYRING=${NEWSETC}/pgp/pubring.gpg
>
> trap "rm -f $KEYSFILE" 0 1 2 15
>
> rm -f ${KEYSFILE}
> ${GETFTP} ${KEYSURL}
>
> test -f ${KEYSFILE} || exit 1
>
> gpg --batch --no-permission-warning \
>  --no-default-keyring --keyring=${KEYRING} --no-options \
>  --allow-non-selfsigned-uid --fast-import ${KEYSFILE}
>
> exit $$
>
>
>
> > The control message would contain as its body the text representation
of
> > the new key.  The message should (must*) be signed by the OLD, expiring
> > key.
>
> Hoping that a key is not lost by its owner.

That would not be a problem introduced by this proposed mechanism.

> > Use of this type of control message is purely optional.  However, it
may be
> > useful in key rollover by avoiding the necessity of manual updates.
>
> Manual updates are not necessary.

OK, then show me the automatic process that currently exists where you
change the PGP key for "example.*" and I do NOTHING to have my server to
recognize the new key...?

Re: Thought about new control message type: pgpkey
#79831
Author: Julien ÉLIE
Date: Thu, 04 Dec 2008 20:58
27 lines
2230 bytes
Hi D. Stussy,

>> Any news administrator can regularly download:
>>
>>     ftp://ftp.isc.org/pub/usenet/CONFIG/control.ctl
>>     ftp://ftp.isc.org/pub/pgpcontrol/PGPKEYS
>
> That's a manual step....  The news admin also needs to know that new
> data/configuration is available (i.e. they must pull the data).  What I
> suggested is a push-type action construct.

Oh, when I wrote "regularly", I meant "by cron" :)


> OK, then show me the automatic process that currently exists where you
> change the PGP key for "example.*" and I do NOTHING to have my server to
> recognize the new key...?

Such a process does not currently exist but you can wget two files and
run buildinnkeyring.sh by cron.

-- 
Julien ÉLIE

« -- Il t'arrive une tuile ?
  -- Oui, je ne peux pas payer mon ardoise. »
Re: Thought about new control message type: pgpkey
#79832
Author: D. Stussy
Date: Thu, 04 Dec 2008 21:13
25 lines
2076 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gh9g9a$gi7$1@news.trigofacile.com...
> >> Any news administrator can regularly download:
> >>
> >>     ftp://ftp.isc.org/pub/usenet/CONFIG/control.ctl
> >>     ftp://ftp.isc.org/pub/pgpcontrol/PGPKEYS
> >
> > That's a manual step....  The news admin also needs to know that new
> > data/configuration is available (i.e. they must pull the data).  What I
> > suggested is a push-type action construct.
>
> Oh, when I wrote "regularly", I meant "by cron" :)
>
>
> > OK, then show me the automatic process that currently exists where you
> > change the PGP key for "example.*" and I do NOTHING to have my server
to
> > recognize the new key...?
>
> Such a process does not currently exist but you can wget two files and
> run buildinnkeyring.sh by cron.

Thus my proposal.....

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads