Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

This login session: $13.76, but for you $11.88.


computers / news.software.nntp / inn-secrets.conf, cancels, and cancel locks

SubjectAuthor
* inn-secrets.conf, cancels, and cancel locksAdam W.
+* Re: inn-secrets.conf, cancels, and cancel locksAdam W.
|`- Re: inn-secrets.conf, cancels, and cancel locksJulien ÉLIE
`- Re: inn-secrets.conf, cancels, and cancel locksJulien ÉLIE

1
inn-secrets.conf, cancels, and cancel locks

<u1oq4d$baa$2$arnold@news.chmurka.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1683&group=news.software.nntp#1683

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!news.chmurka.net!.POSTED.s.v.chmurka.net!not-for-mail
From: gof-cut-this-news@cut-this-chmurka.net.invalid (Adam W.)
Newsgroups: news.software.nntp
Subject: inn-secrets.conf, cancels, and cancel locks
Date: Wed, 19 Apr 2023 13:25:33 -0000 (UTC)
Organization: news.chmurka.net
Message-ID: <u1oq4d$baa$2$arnold@news.chmurka.net>
NNTP-Posting-Host: s.v.chmurka.net
Injection-Date: Wed, 19 Apr 2023 13:25:33 -0000 (UTC)
Injection-Info: news.chmurka.net; posting-account="arnold"; posting-host="s.v.chmurka.net:172.24.44.20";
logging-data="11594"; mail-complaints-to="abuse-news.(at).chmurka.net"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.32-v7+ (armv7l))
Cancel-Lock: sha1:lHxUJm1WcYLhRpdnL6G+8/JpZNA=
sha1:qYCqfLrA4ErHnfpFXDie95Cu1lY= sha256:VdBlkjsDrY/Ch6zljCw3Q+9RoEJpP/cDymMXgK0dYKw=
sha1:jJCW/e3nnwt9BscLdF+YEErvqa0= sha256:Yp+GGaJUHJupvRX6L4P3rN+4+vRL6WRGJTdgD0YZP+k=
 by: Adam W. - Wed, 19 Apr 2023 13:25 UTC

Hi,

To be honest, I was never really that much interested in how cancel locks
work, so forgive me if my questions are naive.

I want to use the newly added cancel-lock feature to inn 2.7.0, but it's
not entirely clear to me from the documentation if my intended
configuration is correct.

From what I understand:

- canlockadmin is used when generating cancels from hand by gencancel

- cancel generated by gencancel should just be posted to the server, by
any user, authenticated or not

- canlockuser is used when authenticated user generates cancels

- authenticated user's name is taken from the "user:" field in "access"
section of readers.conf

- if canlockuser is set and not disabled in readers.conf, and posting is
allowed for users without "user:" field in "access" section of
readers.conf, then they will be able to cancel posts made by other
non-authenticated users (but not those made by authenticated ones)

- if the posting agent doesn't support cancel locks, then it's enough for
it to generate a normal cancel and as long as the authenticated user
matches, the hash will match and the cancel will be honored by other
servers using this feature

- if the posting agent supports cancel locks, then it generates its own
Cancel-Lock header and the user possessing the key can cancel the
article even if he changes the identity or server

- the feature doesn't interfere with cancel locks supported by posting
agents, it just adds more possibilities to generate a honored cancel

- INN servers starting with 2.7.0 will refuse to honor cancels without
correct Cancel-Lock headers (I'm not sure about this)

Is my understanding of this mechanism correct?

Now, from theory to practice.

- I set canlockadmin (during testing I kept canlockuser empty)

- I posted a message to my local group (kept in timehash, if that matters)

- I generated two cancels with gencancel

- I altered one of them so the hashes won't match

- I posted the altered one

- I posted the unaltered one

I expected to have the post available after posting the altered cancel,
but gone after posting the unaltered cancel. But the post is still on the
group. Why didn't it work?

I also posted the unauthenticated cancel (without Cancel-Lock header), but
it didn't change anything. The article is still there.

All three cancels landed properly in control.cancel group.

I also expected to have something logged about incorrect cancel hash, but
I can't find anything. Should there be some log line about it?

Also, can I control if my server accepts cancels or not (even better, by
matching the pattern)? It would be best if there were three settings:
never accept, always accept (even unauthenticated), or accept only if
cancel-lock matches.

Thank you!

Re: inn-secrets.conf, cancels, and cancel locks

<u1ou3u$leu$1$arnold@news.chmurka.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1684&group=news.software.nntp#1684

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!news.chmurka.net!.POSTED.s.v.chmurka.net!not-for-mail
From: gof-cut-this-news@cut-this-chmurka.net.invalid (Adam W.)
Newsgroups: news.software.nntp
Subject: Re: inn-secrets.conf, cancels, and cancel locks
Date: Wed, 19 Apr 2023 14:33:34 -0000 (UTC)
Organization: news.chmurka.net
Message-ID: <u1ou3u$leu$1$arnold@news.chmurka.net>
References: <u1oq4d$baa$2$arnold@news.chmurka.net>
NNTP-Posting-Host: s.v.chmurka.net
Injection-Date: Wed, 19 Apr 2023 14:33:34 -0000 (UTC)
Injection-Info: news.chmurka.net; posting-account="arnold"; posting-host="s.v.chmurka.net:172.24.44.20";
logging-data="21982"; mail-complaints-to="abuse-news.(at).chmurka.net"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.32-v7+ (armv7l))
Cancel-Lock: sha1:3rR0eXNGQXPj9+S1PHoWyRCVT5U=
sha1:jfSda9bvZ1+0d4YNjLaf5W+//NI= sha256:jSzwIUV/wg569XWNuyX0bMmKxldzrelO+gtTJTswsBE=
sha1:vsk/p9hOxuCjdKmf9KAASpYUP3s= sha256:jv8xW/EM8l31ulAE3Y0tLxuR+kX2ovV8naDIe1Dv8fs=
 by: Adam W. - Wed, 19 Apr 2023 14:33 UTC

Adam W. <gof-cut-this-news@cut-this-chmurka.net.invalid> wrote:

> - INN servers starting with 2.7.0 will refuse to honor cancels without
> correct Cancel-Lock headers (I'm not sure about this)

Cancel-Key, I meant.

Also, will they honor cancels without Cancel-Key if the cancelled post
doesn't have a Cancel-Lock?

Adding this made me wonder how it fits into the superseding (Supersedes)
mechanism...

> I also posted the unauthenticated cancel (without Cancel-Lock header), but

Without Cancel-Key header, I meant.

Re: inn-secrets.conf, cancels, and cancel locks

<u1pi8n$1v772$1@news.trigofacile.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1685&group=news.software.nntp#1685

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.176-143-2-105.abo.bbox.fr!not-for-mail
From: iulius@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.software.nntp
Subject: Re: inn-secrets.conf, cancels, and cancel locks
Date: Wed, 19 Apr 2023 22:17:27 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <u1pi8n$1v772$1@news.trigofacile.com>
References: <u1oq4d$baa$2$arnold@news.chmurka.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 19 Apr 2023 20:17:27 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="176-143-2-105.abo.bbox.fr:176.143.2.105";
logging-data="2071778"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.10.0
Cancel-Lock: sha1:OkiOXd65gbVmYhV6mGnfAUf3XDo= sha256:p/GqzmYmv0v8qJZNuYDjpYkqbi64YafAcgJEYiqlXRs=
sha1:mm7/bAXguzEEN70i66uSIScYVIk= sha256:ihbe/0+rUAdTpNUbLwTnNuQPBvqKMFaXyMIIYH0q6R4=
In-Reply-To: <u1oq4d$baa$2$arnold@news.chmurka.net>
 by: Julien ÉLIE - Wed, 19 Apr 2023 20:17 UTC

Hi Adam,

> - authenticated user's name is taken from the "user:" field in "access"
> section of readers.conf

The authenticated user's name is the identity assigned by the matching
auth group. This identity matches the "users" field pattern in access
group.

> - INN servers starting with 2.7.0 will refuse to honor cancels without
> correct Cancel-Lock headers (I'm not sure about this)

Yes, because it is the default value of "docancels" in inn.conf. It's
the safest configuration.

> Now, from theory to practice.
>
> - I set canlockadmin (during testing I kept canlockuser empty)
>
> - I posted a message to my local group (kept in timehash, if that matters)
>
> - I generated two cancels with gencancel
>
> - I altered one of them so the hashes won't match
>
> - I posted the altered one
>
> - I posted the unaltered one
>
> I expected to have the post available after posting the altered cancel,
> but gone after posting the unaltered cancel. But the post is still on the
> group. Why didn't it work?

I don't know.

> I also expected to have something logged about incorrect cancel hash, but
> I can't find anything. Should there be some log line about it?

This mismatch is not logged.

> Also, can I control if my server accepts cancels or not (even better, by
> matching the pattern)? It would be best if there were three settings:
> never accept, always accept (even unauthenticated), or accept only if
> cancel-lock matches.

It is the "docancels" parameter in inn.conf.

--
Julien ÉLIE

« Ira furor breuis est. » (Horace)

Re: inn-secrets.conf, cancels, and cancel locks

<u1pida$1v772$2@news.trigofacile.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1686&group=news.software.nntp#1686

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.176-143-2-105.abo.bbox.fr!not-for-mail
From: iulius@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.software.nntp
Subject: Re: inn-secrets.conf, cancels, and cancel locks
Date: Wed, 19 Apr 2023 22:19:54 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <u1pida$1v772$2@news.trigofacile.com>
References: <u1oq4d$baa$2$arnold@news.chmurka.net>
<u1ou3u$leu$1$arnold@news.chmurka.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 19 Apr 2023 20:19:54 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="176-143-2-105.abo.bbox.fr:176.143.2.105";
logging-data="2071778"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.10.0
Cancel-Lock: sha1:ieM3byhqNJ2BHmFfZoKXEaJFf+A= sha256:NlKB5zGhrbBGhwgFpC40xWcpfIc0yMsR2ohFjslUQRE=
sha1:UMdND7qvhwpQFJLZI5dtGMFAfDI= sha256:OFPtnwgEsLx00x+519gC6MV/ehFfTlkY9AIXEB0ol80=
In-Reply-To: <u1ou3u$leu$1$arnold@news.chmurka.net>
 by: Julien ÉLIE - Wed, 19 Apr 2023 20:19 UTC

Hi Adam,

> Also, will they honor cancels without Cancel-Key if the cancelled post
> doesn't have a Cancel-Lock?

It depends on the setting of the "docancels" parameter in inn.conf.

> Adding this made me wonder how it fits into the superseding (Supersedes)
> mechanism...

It also fits in; a Cancel-Key hash is expected along with the superseding.

--
Julien ÉLIE

« La grandeur d'un métier, c'est peut-être avant tout d'unir les
hommes. » (Saint-Exupéry)

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor