🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
11 messages
11 total messages Started by alb Sun, 27 Nov 2016 17:14
[tin] .cancelsecret anc cancel-locks
#261344
Author: alb
Date: Sun, 27 Nov 2016 17:14
19 lines
1361 bytes
Hi there,

I've started using tin as my default newsreader and when posting a message I see
a warning concerning ~/.cancelsecret file not found (or something similar, the
warning lasts for a short time).

I haven't found much except for the manual which points to the cancel-locks,
which again is something else I've not understood.

Can someone cast some light on those concepts?
Thanks a lot,

Al

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Re: [tin] .cancelsecret anc cancel-locks
#261349
Author: Michael Bäuerle
Date: Mon, 28 Nov 2016 11:24
37 lines
2844 bytes
alb wrote:
> 
> [...]
> I've started using tin as my default newsreader and when posting a message I see
> a warning concerning ~/.cancelsecret file not found (or something similar, the
> warning lasts for a short time).
> 
> I haven't found much except for the manual which points to the cancel-locks,
> which again is something else I've not understood.
> 
> Can someone cast some light on those concepts?

There is currently no standard for Cancel-Locks. They have been used for
over a decade like defined in this draft from Simon Lyall:
<https://tools.ietf.org/html/draft-ietf-usefor-cancel-lock-01>
I'm currently working on an update of this draft, but it's not released
yet.

General summary:
The Cancel-Lock/Cancel-Key scheme provides a method to authenticate
the author (or an agent on the way to network injection of an article).
Knowledge of the secret used for creation of the Cancel-Lock is required
to be able to create a matching Cancel-Key.
If a server require valid Cancel-Lock/Cancel-Key pairs for Cancel and
Supersede operations, it can prevent abuse (forbid delete or modify
operations on other peoples articles).

The message you get from tin says that you have not configured the
secret yet, and therefore tin can not create Cancel-Locks/Cancel-Keys.
Most servers will ignore Cancel and Supersede requests without them.

Supersede:
You are posting via Individual.net and they add Cancel-Locks/Cancel-Keys
to your messages automatically. Letting tin create them too is therefore
not required if you always use only this server, but it doesn't harm (an
article is allowed have multiple Cancel-Locks, it is sufficient for a
Cancel-Key to match one of them).
Re: [tin] .cancelsecret anc cancel-locks
#261354
Author: alb
Date: Wed, 30 Nov 2016 20:10
25 lines
2322 bytes
Michael Bäuerle <michael.baeuerle@stz-e.de> wrote:
[]
> General summary:
> The Cancel-Lock/Cancel-Key scheme provides a method to authenticate
> the author (or an agent on the way to network injection of an article).
> Knowledge of the secret used for creation of the Cancel-Lock is required
> to be able to create a matching Cancel-Key.
> If a server require valid Cancel-Lock/Cancel-Key pairs for Cancel and
> Supersede operations, it can prevent abuse (forbid delete or modify
> operations on other peoples articles).

I see now the meaning. I've always thought whether there was a mechanism to
authenticate univocally the author and allow him some operations on the post,
but then I also understood that the NNTP network being populated by a series of
mirroring services that do not necessarily propagate the extra operations
anyway, so what's those the Cancel-lock/Cancel-key mechanism still matter?

> 
> The message you get from tin says that you have not configured the
> secret yet, and therefore tin can not create Cancel-Locks/Cancel-Keys.
> Most servers will ignore Cancel and Supersede requests without them.

It is strange since in my previous configuration I never remember using a secret
and never noticed the error message. How do I configure tin to ignore the
secret? The tinrc doesn't seem to have any option related to any secret.
Re: [tin] .cancelsecret anc cancel-locks
#261356
Author: Urs Janßen
Date: Wed, 30 Nov 2016 23:06
23 lines
1886 bytes
In <ea8q19Fn50sU2@mid.individual.net>, alb wrote:
> It is strange since in my previous configuration I never remember using a secret
> and never noticed the error message. How do I configure tin to ignore the
> secret? The tinrc doesn't seem to have any option related to any secret..

looks like your tin is build with debugging enabled (=more warnings,
errors, ...)
simple way to surpress the warning is to touch the file and make it only
readable by the user.

tin(5)
[...]
|   ${TIN_HOMEDIR:-"$HOME"}/.cancelsecret
|
|        secret to be used for cancel-locks if tin(1) is build with  sup‐
!        port  for it. An empty secret file disables the cancel-lock cre‐
!        ation in that case. This file should be readable  only for  the
|        user.
Re: [tin] .cancelsecret anc cancel-locks
#261357
Author: alb
Date: Wed, 30 Nov 2016 23:09
18 lines
1712 bytes
Urs Janßen <urs@buil.tin.org> wrote:
> In <ea8q19Fn50sU2@mid.individual.net>, alb wrote:
>> It is strange since in my previous configuration I never remember using a secret
>> and never noticed the error message. How do I configure tin to ignore the
>> secret? The tinrc doesn't seem to have any option related to any secret.
> 
> tin(5)
> [...]
> |   ${TIN_HOMEDIR:-"$HOME"}/.cancelsecret
> |
> |        secret to be used for cancel-locks if tin(1) is build with  sup‐
> !        port  for it. An empty secret file disables the cancel-lock cre‐
> !        ation in that case. This file should be readable  only for  the
> |        user.

That worked! Thanks a lot for the pointer.

Al
Re: [tin] .cancelsecret anc cancel-locks
#261359
Author: Michael Bäuerle
Date: Thu, 01 Dec 2016 10:04
36 lines
3124 bytes
alb wrote:
> Michael Bäuerle <michael.baeuerle@stz-e.de> wrote:
> > 
> > [...]
> > General summary:
> > The Cancel-Lock/Cancel-Key scheme provides a method to authenticate
> > the author (or an agent on the way to network injection of an article).
> > Knowledge of the secret used for creation of the Cancel-Lock is required
> > to be able to create a matching Cancel-Key.
> > If a server require valid Cancel-Lock/Cancel-Key pairs for Cancel and
> > Supersede operations, it can prevent abuse (forbid delete or modify
> > operations on other peoples articles).
> 
> I see now the meaning. I've always thought whether there was a mechanism to
> authenticate univocally the author and allow him some operations on the post,
> but then I also understood that the NNTP network being populated by a series of
> mirroring services that do not necessarily propagate the extra operations
> anyway, so what's those the Cancel-lock/Cancel-key mechanism still matter?

Because both, the locks and the keys, are part of the article headers,
they propagate through the whole network together with the corresponding
articles. Every server can decide to honour or ignore them.

You - as user of Individual.net - will therefore see the "right" things
(not only from other users of Individual.net, but from all other users
that use this scheme). The same in the other direction: You can cancel
and supersede your own articles and all other servers that use this
scheme will honour your updates, not only Individual.net.

Yes, there are servers that do *not* use this scheme in the network.
But you have to accept that such a scheme can never work for the whole
rest of the world: You have sent an article in the past and now the
world knows about it. If you want to update or delete it later, you
can ask for such an operation - but you can't enforce it, because
this is impossible in a network like USENET (without central control
instance).
Re: [tin] .cancelsecret anc cancel-locks
#261361
Author: Whiskers
Date: Thu, 01 Dec 2016 15:43
53 lines
3849 bytes
On 2016-12-01, Michael Bäuerle <michael.baeuerle@stz-e.de> wrote:
> alb wrote:
>> Michael Bäuerle <michael.baeuerle@stz-e.de> wrote:
>> > 
>> > [...] General summary: The Cancel-Lock/Cancel-Key scheme provides a
>> > method to authenticate the author (or an agent on the way to
>> > network injection of an article).  Knowledge of the secret used for
>> > creation of the Cancel-Lock is required to be able to create a
>> > matching Cancel-Key.  If a server require valid
>> > Cancel-Lock/Cancel-Key pairs for Cancel and Supersede operations,
>> > it can prevent abuse (forbid delete or modify operations on other
>> > peoples articles).
>> 
>> I see now the meaning. I've always thought whether there was a
>> mechanism to authenticate univocally the author and allow him some
>> operations on the post, but then I also understood that the NNTP
>> network being populated by a series of mirroring services that do not
>> necessarily propagate the extra operations anyway, so what's those
>> the Cancel-lock/Cancel-key mechanism still matter?
>
> Because both, the locks and the keys, are part of the article headers,
> they propagate through the whole network together with the
> corresponding articles. Every server can decide to honour or ignore
> them.
>
> You - as user of Individual.net - will therefore see the "right"
> things (not only from other users of Individual.net, but from all
> other users that use this scheme). The same in the other direction:
> You can cancel and supersede your own articles and all other servers
> that use this scheme will honour your updates, not only
> Individual.net.
>
> Yes, there are servers that do *not* use this scheme in the network.
> But you have to accept that such a scheme can never work for the whole
> rest of the world: You have sent an article in the past and now the
> world knows about it. If you want to update or delete it later, you
> can ask for such an operation - but you can't enforce it, because this
> is impossible in a network like USENET (without central control
> instance).

I can imagine that the Supersedes header (RFC 5536) might percolate more
effectively through the network than a plain Cancel.  But you can't
force a server to Cancel an article if it has been set up to ignore
all Cancels.  If you know in advance, you could try an Expires header in
the original article.

Of course, you can't Cancel or Expire or Supersede text from your
article that has already been quoted by someone else.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [tin] .cancelsecret anc cancel-locks
#261362
Author: Michael Bäuerle
Date: Thu, 01 Dec 2016 16:32
65 lines
4648 bytes
Whiskers wrote:
> On 2016-12-01, Michael Bäuerle <michael.baeuerle@stz-e.de> wrote:
> > alb wrote:
> > > Michael Bäuerle <michael.baeuerle@stz-e.de> wrote:
> > > > 
> > > > [...] General summary: The Cancel-Lock/Cancel-Key scheme provides a
> > > > method to authenticate the author (or an agent on the way to
> > > > network injection of an article).  Knowledge of the secret used for
> > > > creation of the Cancel-Lock is required to be able to create a
> > > > matching Cancel-Key.  If a server require valid
> > > > Cancel-Lock/Cancel-Key pairs for Cancel and Supersede operations,
> > > > it can prevent abuse (forbid delete or modify operations on other
> > > > peoples articles).
> > > 
> > > I see now the meaning. I've always thought whether there was a
> > > mechanism to authenticate univocally the author and allow him some
> > > operations on the post, but then I also understood that the NNTP
> > > network being populated by a series of mirroring services that do not
> > > necessarily propagate the extra operations anyway, so what's those
> > > the Cancel-lock/Cancel-key mechanism still matter?
> > 
> > Because both, the locks and the keys, are part of the article headers,
> > they propagate through the whole network together with the
> > corresponding articles. Every server can decide to honour or ignore
> > them.
> > 
> > You - as user of Individual.net - will therefore see the "right"
> > things (not only from other users of Individual.net, but from all
> > other users that use this scheme). The same in the other direction:
> > You can cancel and supersede your own articles and all other servers
> > that use this scheme will honour your updates, not only
> > Individual.net.
> > 
> > Yes, there are servers that do *not* use this scheme in the network.
> > But you have to accept that such a scheme can never work for the whole
> > rest of the world: You have sent an article in the past and now the
> > world knows about it. If you want to update or delete it later, you
> > can ask for such an operation - but you can't enforce it, because this
> > is impossible in a network like USENET (without central control
> > instance).
> 
> I can imagine that the Supersedes header (RFC 5536) might percolate more
> effectively through the network than a plain Cancel.

Why should that be the case? The Cancel article is a normal article too
(that contain a "Control" headerfield). It should propagate through the
network the same way as a Supersede.

> But you can't
> force a server to Cancel an article if it has been set up to ignore
> all Cancels.  If you know in advance, you could try an Expires header in
> the original article.

Yes, that's what I have written above - you can't enforce anything.
But if a server decides to ignore a Cancel control article, it should
nevertheless propagate it. And even if a single server do not, the
Cancel will reach other servers via different network paths.

> Of course, you can't Cancel or Expire or Supersede text from your
> article that has already been quoted by someone else.

Yes. But Cancel/Supersede is nevertheless useful and (with valid
Cancel-Key) already works very well. What I want to propose in the
new version of the draft is a more secure hash algorithm (from the
SHA2 family) - 17 years have passed since SHA1 was selected.
Re: [tin] .cancelsecret anc cancel-locks
#261364
Author: Whiskers
Date: Thu, 01 Dec 2016 20:43
44 lines
3208 bytes
On 2016-12-01, Michael Bäuerle <michael.baeuerle@stz-e.de> wrote:
> Whiskers wrote:
>> On 2016-12-01, Michael Bäuerle <michael.baeuerle@stz-e.de> wrote:
>> > alb wrote:
>> > > Michael Bäuerle <michael.baeuerle@stz-e.de> wrote:

[...]

>> I can imagine that the Supersedes header (RFC 5536) might percolate
>> more effectively through the network than a plain Cancel.
>
> Why should that be the case? The Cancel article is a normal article
> too (that contain a "Control" headerfield). It should propagate
> through the network the same way as a Supersede.

Do all servers propagate 'Cancels' even if they ignore them?

>> But you can't force a server to Cancel an article if it has been set
>> up to ignore all Cancels.  If you know in advance, you could try an
>> Expires header in the original article.
>
> Yes, that's what I have written above - you can't enforce anything.
> But if a server decides to ignore a Cancel control article, it should
> nevertheless propagate it. And even if a single server do not, the
> Cancel will reach other servers via different network paths.

True.  But an article that has a Supersedes header is more like a normal
article than a bare 'Cancel' is.  I've noticed 'Supersede' articles
getting through to my client, but not 'Cancels'.

>> Of course, you can't Cancel or Expire or Supersede text from your
>> article that has already been quoted by someone else.
>
> Yes. But Cancel/Supersede is nevertheless useful and (with valid
> Cancel-Key) already works very well. What I want to propose in the new
> version of the draft is a more secure hash algorithm (from the SHA2
> family) - 17 years have passed since SHA1 was selected.

As long as the older encryption standard remains acceptable too.  

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [tin] .cancelsecret anc cancel-locks
#261365
Author: Michael Bäuerle
Date: Fri, 02 Dec 2016 10:54
58 lines
4103 bytes
Whiskers wrote:
> On 2016-12-01, Michael Bäuerle <michael.baeuerle@stz-e.de> wrote:
> > Whiskers wrote:
> > > 
> [...]
> > > I can imagine that the Supersedes header (RFC 5536) might percolate
> > > more effectively through the network than a plain Cancel.
> > 
> > Why should that be the case? The Cancel article is a normal article
> > too (that contain a "Control" headerfield). It should propagate
> > through the network the same way as a Supersede.
> 
> Do all servers propagate 'Cancels' even if they ignore them?

The server people should answer this question (currently I do only client
side stuff).

> > > But you can't force a server to Cancel an article if it has been set
> > > up to ignore all Cancels.  If you know in advance, you could try an
> > > Expires header in the original article.
> > 
> > Yes, that's what I have written above - you can't enforce anything.
> > But if a server decides to ignore a Cancel control article, it should
> > nevertheless propagate it. And even if a single server do not, the
> > Cancel will reach other servers via different network paths.
> 
> True.  But an article that has a Supersedes header is more like a normal
> article than a bare 'Cancel' is.  I've noticed 'Supersede' articles
> getting through to my client, but not 'Cancels'.

This is likely because servers place Cancel control articles into
special groups internally (because they are not intended to be visible
for clients).

> > > Of course, you can't Cancel or Expire or Supersede text from your
> > > article that has already been quoted by someone else.
> > 
> > Yes. But Cancel/Supersede is nevertheless useful and (with valid
> > Cancel-Key) already works very well. What I want to propose in the new
> > version of the draft is a more secure hash algorithm (from the SHA2
> > family) - 17 years have passed since SHA1 was selected.
> 
> As long as the older encryption standard remains acceptable too.  

It is not intended to change the syntax. A new (additional) algorithm
is added and the old ones MD5 and SHA1 are deprecated. It is still up to
the users and servers to decide what algorithms they want to implement.

My intention is to define a single new algorithm from the SHA2 family
as preferred algorithm. Today most crypto libraries support SHA2 (but
not e.g. SHA3 yet).

The old algorithms should not stay forever, because the computing power
that can be used to break them is constantly increasing. Multiple
Cancel-Locks are no solution here, because it is sufficient for a
Cancel-Key to match one of them - if you can break one lock (and an
attack will likely target the weakest one) is sufficient to cancel
or supersede the article.
Re: [tin] .cancelsecret anc cancel-locks
#261371
Author: Neodome Admin
Date: Wed, 14 Dec 2016 21:31
51 lines
4116 bytes
Whiskers <catwheezel@operamail.com> wrote:
> On 2016-12-01, Michael Bäuerle <michael.baeuerle@stz-e.de> wrote:
>> Whiskers wrote:
>>> On 2016-12-01, Michael Bäuerle <michael.baeuerle@stz-e.de> wrote:
>>>> alb wrote:
>>>>> Michael Bäuerle <michael.baeuerle@stz-e.de> wrote:
> 
> [...]
> 
>>> I can imagine that the Supersedes header (RFC 5536) might percolate
>>> more effectively through the network than a plain Cancel.
>> 
>> Why should that be the case? The Cancel article is a normal article
>> too (that contain a "Control" headerfield). It should propagate
>> through the network the same way as a Supersede.
> 
> Do all servers propagate 'Cancels' even if they ignore them?

By default, yes. For example, neodome.net does it. This is to ensure that
people who are willing to honor Cancels are still able to receive them.
Some administrators might decide to drop such articles, but I don't see a
good excuse for that.

>>> But you can't force a server to Cancel an article if it has been set
>>> up to ignore all Cancels.  If you know in advance, you could try an
>>> Expires header in the original article.
>> 
>> Yes, that's what I have written above - you can't enforce anything.
>> But if a server decides to ignore a Cancel control article, it should
>> nevertheless propagate it. And even if a single server do not, the
>> Cancel will reach other servers via different network paths.
> 
> True.  But an article that has a Supersedes header is more like a normal
> article than a bare 'Cancel' is.  I've noticed 'Supersede' articles
> getting through to my client, but not 'Cancels'.
> 
>>> Of course, you can't Cancel or Expire or Supersede text from your
>>> article that has already been quoted by someone else.
>> 
>> Yes. But Cancel/Supersede is nevertheless useful and (with valid
>> Cancel-Key) already works very well. What I want to propose in the new
>> version of the draft is a more secure hash algorithm (from the SHA2
>> family) - 17 years have passed since SHA1 was selected.
> 
> As long as the older encryption standard remains acceptable too.  
> 



-- 
Neodome
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