🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
9 messages
9 total messages Started by Julien ÉLIE Thu, 20 May 2010 13:28
Approved postings in a few groups
#83056
Author: Julien ÉLIE
Date: Thu, 20 May 2010 13:28
50 lines
2806 bytes
Hi,

We recently had someone in fr.usenet.distribution who complained
about not being able to post to fr.misc.bavardages.dinosaures;
it is an atypical newsgroup where auto-approval is needed to post :)

Reference to a previous discussion here:
    http://groups.google.fr/group/news.software.nntp/browse_frm/thread/d9b1725743aca549/

These three groups need to allow local approved postings:

    fr.misc.bavardages.dinosaures
    alt.sysadmin.recovery
    alt.tech-support.recovery


As Paolo noticed a few days ago, there is an issue in the default
cleanfeed.local file, where we currently have:


sub local_filter_first {
#   if ($gr{binary} and not is_binary()) {
#           saveart('is_binary')
#   };

    # local posts
    if ($localfeed) {
        if ($hdr{Approved}) {
            foreach (@groups) {
                if (not /^(?:alt|news\.admin\.net-abuse)\./) {
                    saveart('CF.approved');
                    return reject("Forged approval in $_ ($hdr{Approved})");
                };
            };
        };
    };


The fr.misc.bavardages.dinosaures should at least be added to the regexp.

Could it be included in the next Cleanfeed release?

Thanks!

-- 
Julien ÉLIE

« Je suis adroit de la main gauche et je suis gauche de la main droite. »
  (Raymond Devos) 
Re: Approved postings in a few groups
#83057
Author: Adam H. Kerman
Date: Thu, 20 May 2010 15:25
17 lines
1733 bytes
Julien <iulius@nom-de-mon-site.com.invalid> wrote:

>We recently had someone in fr.usenet.distribution who complained
>about not being able to post to fr.misc.bavardages.dinosaures;
>it is an atypical newsgroup where auto-approval is needed to post :)

>Reference to a previous discussion here:
   
>http://groups.google.fr/group/news.software.nntp/browse_frm/thread/d9b1725743aca549/

>These three groups need to allow local approved postings:

>    fr.misc.bavardages.dinosaures
>    alt.sysadmin.recovery
>    alt.tech-support.recovery

alt.dev.null should be on that list too.
Re: Approved postings in a few groups
#83060
Author: Steve Crook
Date: Fri, 21 May 2010 10:24
19 lines
1709 bytes
On Thu, 20 May 2010 15:28:28 +0200, Julien ÉLIE wrote in
Message-Id: <ht3ddt$r8k$1@news.trigofacile.com>:

> These three groups need to allow local approved postings:
>
>     fr.misc.bavardages.dinosaures
>     alt.sysadmin.recovery
>     alt.tech-support.recovery

Hi Julien,

I think the functionality for local approval should be taken out of
cleanfeed.local and put in the main cleanfeed.  Of course this means
admins will need to ensure $localfeed is correctly configured but that's
already the case in your local example.

In terms of defining which groups should be included in the regex, do
you want all those groups added by default?  This will imply that *any*
server will accept Approved headers for those groups.
Re: Approved postings in a few groups
#83059
Author: Julien ÉLIE
Date: Fri, 21 May 2010 12:28
21 lines
2052 bytes
Hi Steve,

> I think the functionality for local approval should be taken out of
> cleanfeed.local and put in the main cleanfeed.

OK, it indeed seems better.


> In terms of defining which groups should be included in the regex, do
> you want all those groups added by default?  This will imply that *any*
> server will accept Approved headers for those groups.

Yes, that is how they work.  Approved headers must be accepted for those
groups.  Otherwise, one cannot post to them!

-- 
Julien ÉLIE

« Se marier, c'est partager à deux les problèmes que l'on n'aurait pas
  eus tout seul. »
Re: Approved postings in a few groups
#83088
Author: Steve Crook
Date: Wed, 02 Jun 2010 09:50
25 lines
2114 bytes
On Fri, 21 May 2010 14:28:05 +0200, Julien ÉLIE wrote in
Message-Id: <ht5u8m$nv8$1@news.trigofacile.com>:

>> In terms of defining which groups should be included in the regex, do
>> you want all those groups added by default?  This will imply that *any*
>> server will accept Approved headers for those groups.
>
> Yes, that is how they work.  Approved headers must be accepted for those
> groups.  Otherwise, one cannot post to them!

Hi Julien,

I think I might have introduced an error in Control message handling
when the 'Local Approval' check was moved out of cleanfeed.local into
Cleanfeed itself.

Previously the Approval check was in local_filter_first which only
applies to non-Control messages.  i.e. Messages with a Control and
Approved header would bypass the check.

Where it is in Cleanfeed now, *any* message with an Approved header will
be rejected if it matches $localfeed.  This means that no server running
current Cleanfeed will accept a locally posted Control message with an
Approved header.  Am I correct in thinking that this isn't the desired
behaviour?
Re: Approved postings in a few groups
#83089
Author: Julien ÉLIE
Date: Wed, 02 Jun 2010 17:05
22 lines
2372 bytes
Hi Steve,

> Where it is in Cleanfeed now, *any* message with an Approved header will
> be rejected if it matches $localfeed.  This means that no server running
> current Cleanfeed will accept a locally posted Control message with an
> Approved header.  Am I correct in thinking that this isn't the desired
> behaviour?

Yes, you're right.
An Approved header field must be allowed in control articles, even when
locally posted.

P.S.:  So that was your plan to prevent rmgroup control articles from
being sent for the microsoft.* hierarchy.  Well thought :-)

-- 
Julien ÉLIE

« Pour une personne optimiste, le verre est à moitié plein.
  Pour une personne pessimiste, il est à moitié vide.
  Pour l'informaticien, il est deux fois plus grand que nécessaire. » 
Re: Approved postings in a few groups
#83090
Author: Steve Crook
Date: Wed, 02 Jun 2010 17:34
13 lines
1955 bytes
On Wed, 2 Jun 2010 19:05:55 +0200, Julien ÉLIE wrote in
Message-Id: <hu631k$61q$1@news.trigofacile.com>:

> Yes, you're right.
> An Approved header field must be allowed in control articles, even when
> locally posted.
Oops, better get a new release out to fix that one.

> P.S.:  So that was your plan to prevent rmgroup control articles from
> being sent for the microsoft.* hierarchy.  Well thought :-)
Hehe, actually I was testing a local filter to log microsoft.* rmgroups
and of course my test control messages were being rejected as having an
Approved header in non-local approval groups. :)
Re: Approved postings in a few groups
#83092
Author: Ray Banana
Date: Wed, 02 Jun 2010 18:14
28 lines
2970 bytes
Thus spake Steve Crook <steve@mixmin.net>
 
> Previously the Approval check was in local_filter_first which only
> applies to non-Control messages.  i.e. Messages with a Control and
> Approved header would bypass the check.
> Where it is in Cleanfeed now, *any* message with an Approved header will
> be rejected if it matches $localfeed.  

I don't think this filter belongs in cleanfeed at all. The authority to
post approved messages is determined in nnrpd's config file and may be
customized in filter_nnrpd, so a check in in filter_innd is redundant at
best. If you have users who act as moderators for groups, it means you
have to configure the required access rights in two different
places. Also, please note that this filter will deny perfectly
legitimate Cancel messages, as some newsreaders will automatically add
an Approved: header.   

> This means that no server running
> current Cleanfeed will accept a locally posted Control message with an
> Approved header.  Am I correct in thinking that this isn't the desired
> behaviour?

You are correct in thinking that this is a mistake, but don't worry,
even I once thought I made a mistake, but I was wrong ;-)

-- 
Time flies like an arrow, fruit flies like a Banana.
http://www.eternal-september.org
Re: Approved postings in a few groups
#83093
Author: Steve Crook
Date: Wed, 02 Jun 2010 19:38
31 lines
2578 bytes
On Wed, 02 Jun 2010 20:14:10 +0200, Ray Banana wrote in
Message-Id: <85r5kp7159.fsf@banana.shacknet.nu>:

> I don't think this filter belongs in cleanfeed at all. The authority to
> post approved messages is determined in nnrpd's config file and may be
> customized in filter_nnrpd, so a check in in filter_innd is redundant at
> best. If you have users who act as moderators for groups, it means you
> have to configure the required access rights in two different
> places.
Hi Ray,

I agree, this filter does belong more in filter_nnrpd as it
relates specifically to the injecting server.  There are some instances
though where articles are received via IHAVE but should still be
considered locally injected.  My mail2news gateway is an example of
this.  As the filter will do nothing unless local_flag_localfeed is
configured in cleanfeed.local, I don't think it does any harm.

> Also, please note that this filter will deny perfectly
> legitimate Cancel messages, as some newsreaders will automatically add
> an Approved: header.
Hopefully the bugfix I've just released should ensure this doesn't
happen.  Cancels are Control messages so they bypass this filter
completely.


> You are correct in thinking that this is a mistake, but don't worry,
> even I once thought I made a mistake, but I was wrong ;-)
Heh, it's best to realise one's mistakes.  Look what happened to the
computer scientist in the Tale of the Toaster:
http://www.mipmip.org/tidbits/toaster.shtml
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