🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92481

About expiration dates in NoCeM PGP keys

#92481
From: Julien ÉLIE
Date: Thu, 18 Sep 2025 21:25
45 lines
2878 bytes
Hi all,

A few PGP keys used to sign NoCeM notices currently have an expiration 
date.  When the date is over, the notices are no longer processed, 
unfortunately.  The ones sent by Eternal September NoCeM bot have been 
in that case since a few days.  Other ones will come.

I think that no expiration date should be put in PGP keys used for NoCeM 
purpose (like the ones used for control articles in hierarchy management).
Updating such keys needs a manual intervention from each news admin, so 
it's not practical for them if they need doing that frequently.

Instead of the GOODSIG status, GnuPG sends an EXPKEYSIG status for valid 
signatures that have expired.
So for the users of perl-nocem shipped with INN, in case you want to go 
on processing notices signed with an expired PGP key, you may just want 
to add this status in the script:

--- a/control/perl-nocem
+++ b/control/perl-nocem
@@ -536,7 +536,7 @@ sub pgp_check {
          }
      }

-    if (/^\[GNUPG:\]\s+GOODSIG\s+\S+\s+(.*)/m) {
+    if (/^\[GNUPG:\]\s+(?:GOODSIG|EXPKEYSIG)\s+\S+\s+(.*)/m) {
          return 1 if $1 =~ /\Q$issuer\E/i;
          logmsg("Article $msgid: signed by $1 instead of $issuer for 
$type");
      } elsif (/^\[GNUPG:\]\s+NO_PUBKEY\s+(\S+)/m) {



I have successfully tested the change.


Also, I'm wondering whether we should not add an option to perl-nocem to 
accept notices signed with an expired PGP key (for instance "perl-nocem 
-e").  It could then be used by news admins, if needed, without 
modifying the code.

-- 
Julien ÉLIE

« Sol attigit talos. »
Technical Details
Message-ID: <10ahtbn$bsep$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srl.newsdeef.eu!srl.newsdeef.eu!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.2001:861:3f81:7990:996:39cc:2cd5:a242!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <10ahtbn$bsep$1@news.trigofacile.com>
Subject: About expiration dates in NoCeM PGP keys
Date: Thu, 18 Sep 2025 23:25:11 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srl.newsdeef.eu!srl.newsdeef.eu!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.2001:861:3f81:7990:996:39cc:2cd5:a242!not-for-mail
Newsgroups: news.admin.net-abuse.usenet,news.software.nntp
Organization: Groupes francophones par TrigoFACILE
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 18 Sep 2025 21:25:11 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2001:861:3f81:7990:996:39cc:2cd5:a242";
 logging-data="389593"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:2F7+YU6ITpXtSxbTdvNtlew/NM4= sha256:PUfxXmSS0PUDQofrttZ2ybbvLgrLa256KBafiD+8N/Q=
 sha1:zuHg8Uhcg6hdPpzm/QVFbNGuppI= sha256:j0oW5PNEB8Rc9Vi3HG/GojBH35b6WMxL530ybENXXkw=