🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87599

Re: New draft for Cancel-Lock

#87599
From: Richard Kettlewell
Date: Tue, 07 Mar 2017 14:24
82 lines
4516 bytes
Michael Bäuerle <michael.baeuerle@stz-e.de> writes:
> Here is a first version of a new draft:
> <https://tools.ietf.org/html/draft-baeuerle-netnews-cancel-lock-00>
> that could update the (now nearly two decades old)
> draft-ietf-usefor-cancel-lock-01 from Simon Lyall:
> <https://tools.ietf.org/html/draft-ietf-usefor-cancel-lock-01>
>
> Basically it replaces the hash algorithm with SHA2-256 and defines the
> <scheme> element case-sensitive.
>
> Thanks in advance for comments.
>
>
> Some points that should be discussed: 
>
> - SHA2-256 was choosen to make things future-proof for decades
>   (for today SHA1 would be still good enough, but look at the date of
>   the former version of the draft).
>   Is SHA2-256 in general a good choice?
>   (it was chosen because SHA3 is very new and not supported by e.g.
>   OpenSSL yet).

It seems to be a work in progress. However even when it’s in OpenSSL
it’ll be some time before applications can adopt it. I think SHA256 is a
perfectly good choice for today.

>   The name with hyphen ("sha-256") was chosen because there is already
>   an IANA registry with hash algorithm names using this format:
>   <http://www.iana.org/assignments/hash-function-text-names/>
>   Is this format a good idea or should we create (need we?) a new
>   separate registry with e.g. "sha256"?

I think it’s better to re-use the existing registry.

> - Is the case-sensitivity and length limitation of <scheme> a good idea?
>   The intention was to make it possible to cut the lists into elements
>   and check every element with a single octet-based compare operation
>   (once support for the obsolete syntax is removed someday in the
>   future).

The case sensitivity seems like a useful simplication. I’m not sure the
length limit adds much - parsers must still cope with arbitrary lengths,
even if only to reject them (i.e. instead of crashing).

> - CFWS is still allowed between <c-lock> and <c-key> elements.
>   Maybe comments should be forbidden?

I don’t see why a comment would be useful in these headers, so
forbidding them seems sensible.

> - Remove MD5 completely, even from the obsolete syntax definition?
>   (Looks like nobody use it anymore for this purpose)

If nobody uses it then making it a SHOULD seems onerous. So I think it
should be removed. At the very least it should be demoted to a MAY.

Other comments:

1. I suggest adding a more formalized description of the code-string
values in sections 2.1 and 2.2. For instance:

    c-lock-code-string = base64(hash(base64(K)))
    c-key-code-string = base64(K)

2. I think there should be a statement about the length of the key. One
is already present in s4 for the master key, but similar considerations
apply to the per-article keys.

This statement should certainly apply to posting agents choosing cancel
keys, but maybe also to serving agents. If you receive a 1-byte cancel
key then you don’t have any real assurance that it’s from the originator
of the article.

Given the (comparatively) low value of forging a cancel, insisting on
256-bit keys (i.e. matching the output length of the hash function) may
be overkill. For legacy use, with sha1, it may also have backwards
compatibility problems. A 128-bit limit may be more appropriate?

-- 
http://www.greenend.org.uk/rjk/

Technical Details
Message-ID: <87o9xdnp0o.fsf@LkoBDZeT.terraraq.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
References: <AABYvbRwKe8AABT3.A1.flnews@WStation5.stz-e.de>

Show Full Headers
Complete Article Headers
Message-ID: <87o9xdnp0o.fsf@LkoBDZeT.terraraq.uk>
Subject: Re: New draft for Cancel-Lock
Date: Tue, 07 Mar 2017 14:24:23 +0000
From: Richard Kettlewell <invalid@invalid.invalid>
References: <AABYvbRwKe8AABT3.A1.flnews@WStation5.stz-e.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
Newsgroups: news.software.nntp
Organization: terraraq NNTP server
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: mantic.terraraq.uk; posting-host="mantic.terraraq.uk:46.235.226.39";
 logging-data="2515"; mail-complaints-to="news@terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
  F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
  +r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
Cancel-Lock: sha1:/AAAe8ggnhc8BU0GsBfsBwLvZhY=
X-Received-Body-CRC: 6453620