Thread View: news.software.nntp
5 messages
5 total messages
Started by D. Stussy
Thu, 05 Feb 2009 23:25
control.ctl action "verify-"[mailbox]
Author: D. Stussy
Date: Thu, 05 Feb 2009 23:25
Date: Thu, 05 Feb 2009 23:25
8 lines
1313 bytes
1313 bytes
It appears that the action when a PGP-signed message comes in and is verified is to mail the news admin. It would be nice if there were an option to simply execute the operation requested. Such an option may vary according to the type of operation requested from the control message. Thoughts?
Re: control.ctl action "verify-"[mailbox]
Author: Russ Allbery
Date: Fri, 06 Feb 2009 00:06
Date: Fri, 06 Feb 2009 00:06
42 lines
2960 bytes
2960 bytes
"D. Stussy" <spam@bde-arc.ampr.org> writes:
> It appears that the action when a PGP-signed message comes in and is
> verified is to mail the news admin. It would be nice if there were an
> option to simply execute the operation requested.
The default is already what you want. See the control.ctl man page:
verify-*
If the action starts with the string "verify-", as in:
verify-news.announce.newgroups
then PGP verification of the control message will be done and the
user ID of the key of the authenticated signer will be checked
against the expected identity defined by the rest of the string
("news.announce.newgroups" in the above example. This verification
is done via pgpverify; see pgpverify(8) for more details.
If no logging is specified (with =file as mentioned below), logging
will be done the same as with doit as described above.
Perhaps you're running into:
Processing of a checkgroups message will never actually change the
active file (the list of groups carried by the server). The difference
between a doit or verify action and a mail action for a checkgroups
control message lies only in what e-mail is sent; doit or verify will
mail the news administrator a shell script to create, delete, or modify
newsgroups to match the checkgroups message, whereas mail will just
mail the entire message. In either case, the news administrator will
have to take action to implement the checkgroups message, and if that
mail is ignored, nothing will be changed.
which is how INN has always worked with checkgroups, but which ideally
should be changed, at least optionally.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: control.ctl action "verify-"[mailbox]
Author: D. Stussy
Date: Fri, 06 Feb 2009 20:46
Date: Fri, 06 Feb 2009 20:46
51 lines
3487 bytes
3487 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message
news:871vuc2zto.fsf@windlord.stanford.edu...
> "D. Stussy" <spam@bde-arc.ampr.org> writes:
> > It appears that the action when a PGP-signed message comes in and is
> > verified is to mail the news admin. It would be nice if there were an
> > option to simply execute the operation requested.
>
> The default is already what you want. See the control.ctl man page:
>
> verify-*
> If the action starts with the string "verify-", as in:
>
> verify-news.announce.newgroups
>
> then PGP verification of the control message will be done and the
> user ID of the key of the authenticated signer will be checked
> against the expected identity defined by the rest of the string
> ("news.announce.newgroups" in the above example. This
verification
> is done via pgpverify; see pgpverify(8) for more details.
>
> If no logging is specified (with =file as mentioned below),
logging
> will be done the same as with doit as described above.
>
> Perhaps you're running into:
>
> Processing of a checkgroups message will never actually change the
> active file (the list of groups carried by the server). The
difference
> between a doit or verify action and a mail action for a checkgroups
> control message lies only in what e-mail is sent; doit or verify will
> mail the news administrator a shell script to create, delete, or
modify
> newsgroups to match the checkgroups message, whereas mail will just
> mail the entire message. In either case, the news administrator will
> have to take action to implement the checkgroups message, and if that
> mail is ignored, nothing will be changed.
>
> which is how INN has always worked with checkgroups, but which ideally
> should be changed, at least optionally.
Actually, what I'm observing is that PGP-signed NEWGROUP messages aren't
being executed but are instead being mailed to the news admin mailbox for
manual implementation. I would prefer that they be executed without my
intercession.
I would expect a checkgroups message that finds everything matching to
result in no message.
Re: control.ctl action "verify-"[mailbox]
Author: Russ Allbery
Date: Fri, 06 Feb 2009 20:54
Date: Fri, 06 Feb 2009 20:54
14 lines
1607 bytes
1607 bytes
"D. Stussy" <spam@bde-arc.ampr.org> writes:
> Actually, what I'm observing is that PGP-signed NEWGROUP messages aren't
> being executed but are instead being mailed to the news admin mailbox
> for manual implementation. I would prefer that they be executed without
> my intercession.
All I can say here is that it works for me.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: control.ctl action "verify-"[mailbox] (Fixed - but take note)
Author: D. Stussy
Date: Fri, 06 Feb 2009 23:05
Date: Fri, 06 Feb 2009 23:05
48 lines
3293 bytes
3293 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message news:874oz7477o.fsf@windlord.stanford.edu... > "D. Stussy" <spam@bde-arc.ampr.org> writes: > > Actually, what I'm observing is that PGP-signed NEWGROUP messages aren't > > being executed but are instead being mailed to the news admin mailbox > > for manual implementation. I would prefer that they be executed without > > my intercession. > > All I can say here is that it works for me. Upon exploring further, I'm finding: pgpverify version 1.27, 2005-07-02 ~news/bin/pgpverify -test </tmp/msg (which contained a valid message) FAILED. I had my keyring in ~news/.gnupg/pubring.gpg, which is supposed to be a fallback location per the man page: "By default, when running as part of INN, pgpverify expects the PGP key ring to be found in pathetc/pgp (as either pubring.pgp or pubring.gpg depending on whether PGP or GnuPG is used to verify signatures). If that directory doesn't exist, it will fall back on using the default key ring, which is in a .pgp or .gnupg subdirectory of the running user's home directory." (Third paragraph of the manual page). The "HOME" environment variable is set to the [news] user's home directory*. Moving the keyring file into ~news/etc/pgp/ from ~news/.gnupg/ fixed the problem. It appears that the manual page is wrong. It didn't seem to fall back to the specified directory location of "~news/.gnupg/" in my case. The other issue I had is that the generated e-mail was NOT telling me that it was being e-mailed because the PGP key could not be found in my (apparently missing) keyring (or the pgpverify program's exit status). I had to reconstruct the pgp subsystem after a hard-drive crash in December. Apparently, I installed it slightly differently than before. ------------------- So, 1) Let's fix the manual page (no fallback in some/all(?) cases). 2) May we have better informative messages on failure? * - verified by looking at the appropriate /proc/_process-id_/environ pseudo-file for "/usr/bin/perl -w ~news/bin/controlchan".
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