🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
69 messages
69 total messages Page 1 of 2 Started by Michael Bäuerle Mon, 06 Mar 2017 19:11
Page 1 of 2 • 69 total messages
New draft for Cancel-Lock
#87598
Author: Michael Bäuerle
Date: Mon, 06 Mar 2017 19:11
52 lines
3279 bytes
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).
  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"?

- 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).

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

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

Note that the current syntax is marked obsolete, but still defined
unchanged ("sha1" without hyphen and case-insensitive) and that it
SHOULD still be accepted by serving agents (and MUST be parsed the
same way as long as the deprecated hash algorithms are supported).
It is not intended that existing client software need updates until SHA1
can do the job. SHA2 should prepare the path on the server side for
the day in the future when SHA1 can't be safely used anymore.


[Xpost to news.software.readers because it involves client and server
side. Fup2 set to news.software.nntp because the discussions of other
recent news related RFC drafts were located there]

Re: New draft for Cancel-Lock
#87599
Author: 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/

Re: New draft for Cancel-Lock
#87600
Author: Michael Bäuerle
Date: Tue, 07 Mar 2017 22:44
82 lines
4092 bytes
Richard Kettlewell wrote:
> Michael Bäuerle <michael.baeuerle@stz-e.de> writes:
> > 
> > [...]
> > 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.

I'm not sure if such sharing is allowed. Must be verified.

> > - 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).

Agreed. I mark it for remove in the next version.

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

Maybe - if there are multiple elements - something like "(from
moderator)".

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

In <news:de.test> there are some statistics that confirm it is unused
(or at least has no relevant use):
<news:ei8jp8Fscn2U1@mid.individual.net>
<news:d64a59d2-889f-7973-24e6-7350f14f64a5@peter.faust-stockholm.user.spray.se>
I mark it for remove in the next version.

If somebody has data of relevant use in other groups: Please post
a comment.

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

Yes, that looks good. Will make it more clear how things work.
Noted for next version.

> [Key length considerations]

Let's wait for further opinions on this topic.


Thanks for your comments!

New draft for Cancel-Lock (Version 01) (was: New draft for Cancel-Lock)
#87601
Author: Michael Bäuerle
Date: Wed, 08 Mar 2017 13:11
23 lines
2086 bytes
Here is Version 01:
<https://tools.ietf.org/html/draft-baeuerle-netnews-cancel-lock-01>
with the suggestions from Richard.

Different people in the discussions in the german groups has commented
concerns about backward compatibility, that the "SHOULD" to support the
now deprecated SHA1 (until there are good reasons to drop it in the
future) is too weak.
Holger Marzen has suggested to use MUST instead (what will make it
a mandatory algorithm too). The version 01 uses a compromise, it
preserves the SHOULD but has an additional paragraph added that describe
that even new implementations should support SHA1 for backward
compatibility as long as this is reasonable.

I also changed the copyright according to TLPÂą section 6.c.iii because
the parts taken over from Simons work predated the current copyright
system. Can somebody (Julien?) confirm that it is correct now?


________________
Âą) <http://trustee.ietf.org/license-info/IETF-TLP-5.htm>

Re: New draft for Cancel-Lock
#87603
Author: Julien ÉLIE
Date: Wed, 08 Mar 2017 21:47
239 lines
9363 bytes
Hi Michael,

First of all, thanks for your document and having taken time to write 
it.  Here is my review:


Questions or technical issues
-----------------------------

- Section 2:
code-string  = 1*base64-octet
base64-octet = ALPHA / DIGIT / "+" / "/" / "="

Shouldn't something like RFC 3977 specifies be used?

      base64 = *(4base64-char) [base64-terminal]
      base64-char = UPPER / LOWER / DIGIT / "+" / "/"
      base64-terminal = 2base64-char "==" / 3base64-char "="


- Section 2.1:
Currently:
       cancel-lock  = "Cancel-Lock:" SP c-lock *(CFWS c-lock) [CFWS]
       c-lock       = scheme ":" code-string

Hmm...  CRLF is missing at the end.  And I think whitespace should be 
allowed.
What do you think of:

       cancel-lock  = "Cancel-Lock:" SP c-lock-list CRLF
       c-lock-list  = *WSP c-lock *( FWS c-lock ) *WSP
       c-lock       = scheme ":" code-string


- Section 2.1:
Couldn't <code-string> be wrapped?  Will it always contain in one line? 
(998 octets maximum)


- Section 2.2:  same remark as above for the ABNF syntax of Cancel-Key.


- Section 3.2:  "No more than one <c-lock> element SHOULD be added by 
each agent that processes the proto-article."

What is the aim of that restriction?
I believe it does not cope with the following two use cases:
* (short) transition period when <sec> is changed;
* (long) transition period when the posting or injecting agent adds both 
a sha1 and a sha-256 signature for backward compatibility.


- Section 7 (or 4):  I suggest to encourage a regular change of <sec>. 
(And maybe to describe how it can be handled smoothly...  keeping the 
previous <sec> during a few weeks, and generating Cancel-Keys with the 
two <sec>s during that transitional period?)


- Section 8:
You'll have to update the Permanent Message Header Field Repository like 
Section 6 of RFC 5536 does.





Editorial nits or minor issues
------------------------------

- I believe the document does not update RFC 5536.  (For instance, RFC 
6857 defines new header fields without updating RFC 5322.  The same 
thing as NNTP extensions do not update RFC 3977.)
Regarding RFC 5537, it is not clear where the document really updates 
it.  If you want to update it, I think you should clearly states how the 
manipulation and interpretation of Netnews articles described in RFC 
5537 is updated (which sections, and how they are impacted).  Otherwise, 
I would just drop the mention of the update.


- Abstract (and also throughout the document):  "the removal or 
replacement of existing articles"
Should the terms "removal" and "replacement" be used?  Are they defined 
somewhere in RFC 5536 or 5537 with that sense?
Section 3.2.5 of RFC 5536 speaks of removal for the expiry process.
Section 5.4 of RFC 5537 says that the presence of a Supersedes header 
field requests a withdrawal.  I therefore think that cancelling and 
superseding are the common terms to use (or withdrawing).
If other people here have an opinion about the terms to use, do not 
hesitate to speak up.


- Section 1:  maybe reference Sections 5.3 and 5.4 of RFC 5537 either in 
parenthesis after "removes or replaces" or in a separate sentence to 
give the reader the reference for that process.


- Section 1:  I believe a reference to a document for "OpenPGP 
signature" would be useful.


- Section 1:  reference Section 5.2 of RFC 5537 for "control messages to 
add or remove newsgroups".


- Section 2:  scheme-char  = LOWER / DIGIT / "-"
Are you sure LOWER is properly defined?
It is not used in RFC 5536, and Section 3.1 of RFC 5322 explicitly 
reference RFC 5234... which does not seem to reference LOWER...
You can of course add:  "LOWER = %x61-7A ; lowercase characters [a-z]"


- Section 2:  I would add a mention that the syntax of these two new 
header fields follow the rules described in Section 2.2 of RFC 5536.


- Section 2 :  "This section describes the formal syntax of the new 
header fields using ABNF [RFC5234]"
As case-sensitivity is used, it should be "ABNF [RFC5234] and [RFC7405]".


- Section 2:  "This value is mandatory to implement"
"scheme" rather than "value"?  Missing dot at the end of the sentence.


- Section 2.1:  "before injection"
Or before relaying?  Injecting agents can add Cancel-Lock header fields.


- Section 2.2:  "The <code-string> in <c-key> is the Base64 encoded key 
that was used to create the Cancel-Lock header field as defined in 
Section 2.1 of the original article."
Rewording suggestion:  "the Cancel-Lock header field (as defined in 
Section 2.1 of this document) of the original article."


- Titles of Subsections 3.x and Section 4:  missing initial uppercase 
letters.


- Section 3.1:  "If the poster or posting agent doesn't add a 
Cancel-Lock header field to an article, then an injecting-agent"
"a proto-article" rather?  No dash in "injecting agent" (global remark).


- Section 3.1:  "The injecting- agent (or moderator) MUST NOT add this 
header to an article unless it is able to authenticate all remove or 
replace attempts from the poster and automatically add a working 
Cancel-Key header field for such articles."

Wording "authenticate all withdrawal attempts"?  (or "all cancelling or 
superseding attempts")


- Section 3.2:  maybe explain the use case of extending the Cancel-Lock 
header field.  For instance, a news administrator would wish to have the 
ability to cancel articles (for its abuse policy), even if the author 
uses the Cancel-Lock facility.


- Section 3.3:  "The Cancel-Key header field MAY be added"
"A Cancel-Key" instead of "The Cancel-Key"?  (like in Section 3.1)


- Section 3.3:  "(with "cancel" command as defined in [RFC5537])"
Suggestion to mention "in Section 5.3 of [RFC5537]".  And add "a" before 
"cancel", as you did in Section 3.4.


- Section 3.3:  "a <c-key> element that correspond to those article."
"corresponds to that article"


- Section 3.4:  "For the authentication check every supported"
Comma after "check".  (Maybe other sentences in the document would be 
more easily readable with commas.)


- Section 4:  "where HMAC is outlined in [RFC2104]. <sec>"
You can add one &nbsp; in the XML source after dot+space so as to have 
two spaces.


- Section 4:  "HMAC(mid+sec)"
Maybe say somewhere that <mid> is concatenated with <sec>? (sense of "+")


- Section 4:  "An agent that verifies a Cancel-Key simply check whether 
it matches one of the Cancel-Locks."
Wouldn't it be better like:
"An agent that verifies a Cancel-Key header field simply checks whether 
it matches one of the <c-lock> elements with the same <scheme> in the 
Cancel-Lock header field of the original article."


- Section 5:
Could you please add an example that follows the suggestion of Section 
4?  Take for instance <12345@example.com> as <mid> and a 32-byte long 
<sec>, compute HMAC, and then the related Cancel-Lock and Cancel-Key 
header fields.

Could you please also add an example of Cancel-Lock header field 
containing several entries?  (one sha1 and *two* sha-256 for instance)
You can of course re-use the previous examples of already computed values.

Hmm, also, an example of several entries in the Cancel-Key header field 
could be useful.


- Section 6:  there is only one obsolete scheme (sha1) but the paragraph 
is in plural ("the following values", etc.).


- Section 7:  "Finding two Cancel-Keys that matches an arbitary"
"match an arbitrary"


- Section 7:  you can remove the mention of MD5.


- Section 7:  "The reasons why this document specify" / "extremly 
slowly" / "by e.g.  OpenSSL"
"specifies" / "extremely" / superfluous space


- Appendix A:  I suggest to make draft-ietf-usefor-cancel-lock an 
informative reference (in Section 9.2).  This way, you could reference 
it easily here in Appendix A, and also in Section 7 for "the last draft".



Thanks Michael,

-- 
Julien ÉLIE

« Un petit pås pøur møi, un grånd bønd pøur l'humanité ! »
   (Kerøzen)

Re: New draft for Cancel-Lock
#87602
Author: Julien ÉLIE
Date: Wed, 08 Mar 2017 22:13
98 lines
4797 bytes
Hi Michael,

* For the Security Considerations Section, I think something should be 
added about the possible abuse of Cancel-Lock.
If a spammer adds in his posts a Cancel-Lock header field (either the 
same for all his posts, or a real computed one), would it mean that 
complying news servers will never be able to withdraw these spams?

I don't know how to treat that problem.  By requiring that NoCeM notices 
bypass the Cancel-Lock system?  (should other mechanisms bypass the 
Cancel-Lock system?)



* In Section 5.3 of RFC 5537, the following scenario is described:

    If the cancel control message arrives before the
    article it targets, news servers choosing to honor it SHOULD remember
    the message identifier that was cancelled and reject the cancelled
    article when it arrives.

What to do with regards to Cancel-Key in such cancel control messages or 
Supersedes?
Would it imply that a news server SHOULD remember the keys, and test 
them when the original message arrive?  It is not necessarily easy to 
implement...



> 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).
>   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"?

Note that there is also the "Hash Algorithms" registry there:
   https://www.iana.org/assignments/pgp-parameters/

The advantage of the above registry is that it defines "SHA1" and 
"SHA256".  The name is consistent with our existing "SHA1" for Netnews 
articles :)


Anyway, I think I would vote for a separate registry for Netnews 
articles.  Maybe added to
   https://www.iana.org/assignments/nntp-parameters/
or another page if we want a "Netnews parameters" instead of "NNTP 
parameters".
The advantage of a separate registry is that we control the values we 
explicitly want to use, and add a comment or an intended usage (that can 
change to OBSOLETE when we decide to retire SHA1...).

Any opinion from other people here?



> - 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).

As "sha1" is case-insensitive, I would keep case-insensitivity. 
Otherwise, to validate the syntax, an implementation would have to check 
whether it is "sha1" (accepting "SHa1") or another hash algorithm 
(rejecting "SHa256")...
I believe current languages have native functions permitting 
case-insensitivity string comparison so it is not be a real problem.



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

I would forbid them.



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

Yes.

-- 
Julien ÉLIE

« Aliquis non debet esse iudex in propria causa, quia non potest esse
   iudex et pars. »

Re: New draft for Cancel-Lock
#87604
Author: Julien ÉLIE
Date: Wed, 08 Mar 2017 22:25
45 lines
2555 bytes
Hi Michael,

>>> - 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.
>
> Maybe - if there are multiple elements - something like "(from
> moderator)".

Oh, yes, it could be used.
However, note that in fr.test or fr.sci.philo, I do not see any comment.
Just one sha1 <c-lock> or two sha1 <c-locks>.

So maybe we could just simplify the syntax and switch to FWS (folding 
whitespace) only.



> In <news:de.test> there are some statistics that confirm it is unused
> (or at least has no relevant use):
> <news:ei8jp8Fscn2U1@mid.individual.net>
> <news:d64a59d2-889f-7973-24e6-7350f14f64a5@peter.faust-stockholm.user.spray.se>
> I mark it for remove in the next version.
>
> If somebody has data of relevant use in other groups: Please post
> a comment.

Same thing in fr.test and fr.sci.philo.
Only sha1 has been used since 2011.

HDR Cancel-Lock -
or
XPAT Cancel-Lock - *md5*

do the trick :)

-- 
Julien ÉLIE

« Le cercle est le plus long chemin d'un point au même point. »
   (Tom Stoppard, _Every Good Boy Deserves Favour_)

Re: New draft for Cancel-Lock
#87605
Author: Adam H. Kerman
Date: Thu, 09 Mar 2017 05:35
24 lines
2088 bytes
Julien <iulius@nom-de-mon-site.com.invalid> wrote:

>Hi Michael,

>* For the Security Considerations Section, I think something should be 
>added about the possible abuse of Cancel-Lock.
>If a spammer adds in his posts a Cancel-Lock header field (either the 
>same for all his posts, or a real computed one), would it mean that 
>complying news servers will never be able to withdraw these spams?

Second-party cancels (that is, the News administrator) must always be
allowed; his server, his rules.

>I don't know how to treat that problem.  By requiring that NoCeM notices 
>bypass the Cancel-Lock system?  (should other mechanisms bypass the 
>Cancel-Lock system?)

NoCeMs aren't cancels at all, so bypass doesn't seem to be an issue.

Is there a time limit after the article was first submitted to Usenet
after which cancel-lock cancels will no longer be accepted and
should there be? Maybe 24 hours?

Re: New draft for Cancel-Lock
#87607
Author: Russ Allbery
Date: Thu, 09 Mar 2017 05:43
24 lines
1983 bytes
"Adam H. Kerman" <ahk@chinet.com> writes:
> Julien <iulius@nom-de-mon-site.com.invalid> wrote:

>> * For the Security Considerations Section, I think something should be
>> added about the possible abuse of Cancel-Lock.  If a spammer adds in
>> his posts a Cancel-Lock header field (either the same for all his
>> posts, or a real computed one), would it mean that complying news
>> servers will never be able to withdraw these spams?

> Second-party cancels (that is, the News administrator) must always be
> allowed; his server, his rules.

This appears to already be taken care of in the draft: the injecting agent
adds its own Cancel-Lock information to the header so that the news
administrator can also issue valid cancels for articles injected through
that server.

-- 
Russ Allbery (eagle@eyrie.org)              <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.

Re: New draft for Cancel-Lock
#87606
Author: Julien ÉLIE
Date: Thu, 09 Mar 2017 16:16
29 lines
2200 bytes
Hi Adam,

>> I don't know how to treat that problem.  By requiring that NoCeM notices
>> bypass the Cancel-Lock system?  (should other mechanisms bypass the
>> Cancel-Lock system?)
>
> NoCeMs aren't cancels at all, so bypass doesn't seem to be an issue.

Yes you're right, "bypass" was not the right term to use.  I was meaning 
to mention somewhere that there are mechanisms like NoCeM that permit to 
withdraw articles unconditionally even though they have a Cancel-Lock 
header field.



> Is there a time limit after the article was first submitted to Usenet
> after which cancel-lock cancels will no longer be accepted and
> should there be? Maybe 24 hours?

Or suggest that implementations are encouraged to have such a cutoff 
delay (of their choice)?

-- 
Julien ÉLIE

« Le cercle est le plus long chemin d'un point au même point. »
   (Tom Stoppard, _Every Good Boy Deserves Favour_)

Re: New draft for Cancel-Lock (Version 01)
#87608
Author: Julien ÉLIE
Date: Thu, 09 Mar 2017 16:27
41 lines
2939 bytes
Hi Michael,

> Different people in the discussions in the german groups has commented
> concerns about backward compatibility, that the "SHOULD" to support the
> now deprecated SHA1 (until there are good reasons to drop it in the
> future) is too weak.
> Holger Marzen has suggested to use MUST instead (what will make it
> a mandatory algorithm too). The version 01 uses a compromise, it
> preserves the SHOULD but has an additional paragraph added that describe
> that even new implementations should support SHA1 for backward
> compatibility as long as this is reasonable.

It will be a similar problem to the one of control messages using weak 
md5 hash signature algorithm...  As far as I know, the only solution for 
backward compatibility is to send control articles twice (one with an 
algorithm compatible with MIT PGP 2.6.2, like md5, and another one with 
a more recent hash algorithm, like sha1).


So maybe the document should suggest to always send two <c-lock>s and 
<c-key>s (one in sha1 and one in sha256)?  Sending sha1 can be dropped 
when marked OBSOLETE in our registry...

Well, that's just a thought.



> I also changed the copyright according to TLPÂą section 6.c.iii because
> the parts taken over from Simons work predated the current copyright
> system. Can somebody (Julien?) confirm that it is correct now?

I also think it is the right thing to do, though we did not add that 
copyright in RFC 8054 (reusing a bit of RFC 4978 about IMAP COMPRESS).

-- 
Julien ÉLIE

« Le cercle est le plus long chemin d'un point au même point. »
   (Tom Stoppard, _Every Good Boy Deserves Favour_)

Re: New draft for Cancel-Lock
#87609
Author: Michael Bäuerle
Date: Thu, 09 Mar 2017 16:43
82 lines
3972 bytes
Julien ÉLIE wrote:
> 
> Hi Michael,
> 
> First of all, thanks for your document and having taken time to write 
> it.  Here is my review:
> 
> 
> Questions or technical issues
> -----------------------------
> 
> - Section 2:
> code-string  = 1*base64-octet
> base64-octet = ALPHA / DIGIT / "+" / "/" / "="
> 
> Shouldn't something like RFC 3977 specifies be used?
> 
>      base64 = *(4base64-char) [base64-terminal]
>      base64-char = UPPER / LOWER / DIGIT / "+" / "/"
                     ^^^^^^^^^^^^^
Is there a particular reason to not use ALPHA here?

In RFC3977 I found the following local definitions:
| 
| LOWER = %x61-7A
| UPPER = %x41-5A

I compared them to RFC5234 core rules (Appendix B.1):
| 
| ALPHA          =  %x41-5A / %x61-7A

Looks similar, this means syntactically both options should be
equivalent.

But because UPPER and LOWER are not ABNF core rules from RFC5234, I
would need to define them locally (as in RFC3977) to use your suggestion
above. Was it your intention that it should be done this way?

Like this:

   base64-char = ALPHA / DIGIT / "+" / "/"

the normative reference to RFC5234 (that is already present) should be
sufficient.

>      base64-terminal = 2base64-char "==" / 3base64-char "="

At all it is obviously a definition that matches Base64 much closer than
the one I copied from Simons draft.

In general I agree that it would be better to define it as you have
suggested above (if we use "base64" to create names for the syntax
definition, the defined thing should be Base64).
But from the formal point of view there is a possibility to break the
backward compatibility:
In Simons draft (on which all current implementations are based) it is
sufficient that a Cancel-Key code string "looks like Base64", it must
not be real Base64. Simon has defined this as an example (I have simply
copied it):
| 
| Cancel-Key: sha1:aaaBBBcccDDDeeeFFF
                   |   |   |   |   |

This is obviously crafted and not calculated, the point is that it's
*not* Base64 because the padding is wrong (I have marked the quad block
boundaries above, the required Base64 padding would be "==").
By using it as an example, Simon must have considered this as allowed,
but it doesn't match the more strict syntax definition you suggested
above.

I prefer to nevertheless switch over to the more strict syntax, but in
this case I think we should preserve the current syntax for the SHA1
scheme to ensure backward compatibility. What do you think about this:
Move the current syntax to section 6 (and bind it to the deprecated SHA1
scheme) and define the new syntax only for the new SHA2 scheme?


Not to forget: Thanks for your detailed review!
I will check your other points later to make this article not too long
and to avoid mixing different topics.

Re: New draft for Cancel-Lock
#87611
Author: Julien ÉLIE
Date: Thu, 09 Mar 2017 20:52
106 lines
5135 bytes
Hi Michael,

>> - Section 2:
>> code-string  = 1*base64-octet
>> base64-octet = ALPHA / DIGIT / "+" / "/" / "="
>>
>> Shouldn't something like RFC 3977 specifies be used?
>>
>>      base64 = *(4base64-char) [base64-terminal]
>>      base64-char = UPPER / LOWER / DIGIT / "+" / "/"
>                     ^^^^^^^^^^^^^
> Is there a particular reason to not use ALPHA here?

No particular reason.  I just did a copy/paste without trying to 
optimize the grammar.  You're right that ALPHA is fine, especially when 
importing ABNF RFC 5234 core rules.



>>      base64-terminal = 2base64-char "==" / 3base64-char "="
>
> At all it is obviously a definition that matches Base64 much closer than
> the one I copied from Simons draft.
>
> In general I agree that it would be better to define it as you have
> suggested above (if we use "base64" to create names for the syntax
> definition, the defined thing should be Base64).
> But from the formal point of view there is a possibility to break the
> backward compatibility:
> In Simons draft (on which all current implementations are based) it is
> sufficient that a Cancel-Key code string "looks like Base64", it must
> not be real Base64. Simon has defined this as an example (I have simply
> copied it):
> |
> | Cancel-Key: sha1:aaaBBBcccDDDeeeFFF
>                    |   |   |   |   |

Oh, then don't we have a problem?
In Section 2.2, <c-key> is defined as "base64(K)" whereas it is in fact 
not the case.  I understand <c-key> is in fact just a string of 
base64-octets.
K has no real significance, and I then think the document should not 
mention it in Section 2.  Maybe K could be used in Section 4 as K = 
HMAC(mid+sec) if you want.

Correct me if I am wrong, but I believe the only thing to mention is 
that we just have a Cancel-Key, that is a string of base64-octets, and:
   <c-lock-string> = base64(hash(<c-key-string>))


I would then suggest:

   c-lock          = scheme ":" c-lock-string
   c-lock-string   = *(4base64-char) [base64-terminal]
   base64-char     = ALPHA / DIGIT / "+" / "/"
   base64-terminal = 2base64-char "==" / 3base64-char "="


   c-key         = scheme ":" c-key-string
   c-key-string  = 1*base64-octet
   base64-octet  = ALPHA / DIGIT / "+" / "/" / "="


It is consistent with both Simon's draft and yours.



> This is obviously crafted and not calculated, the point is that it's
> *not* Base64 because the padding is wrong (I have marked the quad block
> boundaries above, the required Base64 padding would be "==").
> By using it as an example, Simon must have considered this as allowed,
> but it doesn't match the more strict syntax definition you suggested
> above.

I think the new suggested syntax above deals with that.

<c-lock-string> is indeed different when adding the padding.

$ printf "%s" "aaaBBBcccDDDeeeFFF" | openssl dgst -sha1 -binary | 
openssl enc -base64
bNXHc6ohSmeHaRHHW56BIWZJt+4=

$ printf "%s" "aaaBBBcccDDDeeeFFF==" | openssl dgst -sha1 -binary | 
openssl enc -base64
4oimxobgoBdnD/gubSoXpW5R7J4=



> I prefer to nevertheless switch over to the more strict syntax, but in
> this case I think we should preserve the current syntax for the SHA1
> scheme to ensure backward compatibility. What do you think about this:
> Move the current syntax to section 6 (and bind it to the deprecated SHA1
> scheme) and define the new syntax only for the new SHA2 scheme?

It would complicates the understanding with an <obs-c-key> syntax, 
especially when there is no reason for <c-key-string> to really be a 
Base64 string.
I suggest to have the same ABNF syntax for all schemes.

-- 
Julien ÉLIE

« Le cercle est le plus long chemin d'un point au même point. »
   (Tom Stoppard, _Every Good Boy Deserves Favour_)

Re: New draft for Cancel-Lock
#87610
Author: Michael Bäuerle
Date: Thu, 09 Mar 2017 21:46
27 lines
2080 bytes
Julien ÉLIE wrote:
> Adam H. Kerman wrote:
> > 
> > [...]
> > Is there a time limit after the article was first submitted to Usenet
> > after which cancel-lock cancels will no longer be accepted and
> > should there be? Maybe 24 hours?
> 
> Or suggest that implementations are encouraged to have such a cutoff 
> delay (of their choice)?

Is such a cutoff delay really required for some good reason?

Example:
If somebody has posted an article and some large amount of time (say
several years) later the political administration in his country has
changed and the content of the old article now creates potential
problems for the poster.
Given that the poster has a valid Cancel-Key still available for his old
article: Should his request to cancel the article be ignored?
I mean by definition, only because of an artifical cutoff limit, not a
technical reason like a cryptographically broken "scheme".

Related to this topic:
<https://en.wikipedia.org/wiki/Right_to_be_forgotten>

Re: New draft for Cancel-Lock
#87612
Author: Richard Kettlewell
Date: Thu, 09 Mar 2017 22:19
19 lines
1957 bytes
Michael Bäuerle <michael.baeuerle@gmx.net> writes:
> Julien ÉLIE wrote:
>> Adam H. Kerman wrote:
>>> Is there a time limit after the article was first submitted to Usenet
>>> after which cancel-lock cancels will no longer be accepted and
>>> should there be? Maybe 24 hours?
>> 
>> Or suggest that implementations are encouraged to have such a cutoff 
>> delay (of their choice)?
>
> Is such a cutoff delay really required for some good reason?

I think it should be left to local policy, rather than built into the
specification. In practice that’s what’ll happen anyway.

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

Re: New draft for Cancel-Lock
#87613
Author: Michael Bäuerle
Date: Fri, 10 Mar 2017 12:11
99 lines
4947 bytes
Julien ÉLIE wrote:
> Michael Bäuerle wrote:
> > Julien ÉLIE wrote:
> > > 
> > > - Section 2:
> > > code-string  = 1*base64-octet
> > > base64-octet = ALPHA / DIGIT / "+" / "/" / "="
> > > 
> > > Shouldn't something like RFC 3977 specifies be used?
> > > 
> > >      base64 = *(4base64-char) [base64-terminal]
> > >      base64-char = UPPER / LOWER / DIGIT / "+" / "/"
> >                      ^^^^^^^^^^^^^
> > Is there a particular reason to not use ALPHA here?
> 
> No particular reason.  I just did a copy/paste without trying to 
> optimize the grammar.  You're right that ALPHA is fine, especially when 
> importing ABNF RFC 5234 core rules.

OK. In your review you found another location where I used LOWER
myself by accident (without proper definition).
I will add a separate definition for it in version 2.

> > >      base64-terminal = 2base64-char "==" / 3base64-char "="
> > 
> > At all it is obviously a definition that matches Base64 much closer than
> > the one I copied from Simons draft.
> > 
> > In general I agree that it would be better to define it as you have
> > suggested above (if we use "base64" to create names for the syntax
> > definition, the defined thing should be Base64).
> > But from the formal point of view there is a possibility to break the
> > backward compatibility:
> > In Simons draft (on which all current implementations are based) it is
> > sufficient that a Cancel-Key code string "looks like Base64", it must
> > not be real Base64. Simon has defined this as an example (I have simply
> > copied it):
> > |
> > | Cancel-Key: sha1:aaaBBBcccDDDeeeFFF
> >                    |   |   |   |   |
> 
> Oh, then don't we have a problem?

Yes, we have.

> In Section 2.2, <c-key> is defined as "base64(K)" whereas it is in fact 
> not the case.  I understand <c-key> is in fact just a string of 
> base64-octets.
> K has no real significance, and I then think the document should not 
> mention it in Section 2.

The syntax definition is fairly complex. I would like to preserve the
"K" for the simple, human readable description suggested by Richard.

> Maybe K could be used in Section 4 as K = HMAC(mid+sec) if you want.

Done.

Or was your intention to move all the explaining stuff (that uses "K")
as informational to Section 4 and leave only the pure formal definitions
in Section 2?

> Correct me if I am wrong, but I believe the only thing to mention is 
> that we just have a Cancel-Key, that is a string of base64-octets, and:
>   <c-lock-string> = base64(hash(<c-key-string>))
> 
> 
> I would then suggest:
> 
>   c-lock          = scheme ":" c-lock-string
>   c-lock-string   = *(4base64-char) [base64-terminal]
>   base64-char     = ALPHA / DIGIT / "+" / "/"
>   base64-terminal = 2base64-char "==" / 3base64-char "="
> 
> 
>   c-key         = scheme ":" c-key-string
>   c-key-string  = 1*base64-octet
>   base64-octet  = ALPHA / DIGIT / "+" / "/" / "="
> 
> 
> It is consistent with both Simon's draft and yours.

Looks like a good compromise to me.

> > [...]
> > I prefer to nevertheless switch over to the more strict syntax, but in
> > this case I think we should preserve the current syntax for the SHA1
> > scheme to ensure backward compatibility. What do you think about this:
> > Move the current syntax to section 6 (and bind it to the deprecated SHA1
> > scheme) and define the new syntax only for the new SHA2 scheme?
> 
> It would complicates the understanding with an <obs-c-key> syntax, 
> especially when there is no reason for <c-key-string> to really be a 
> Base64 string.
> I suggest to have the same ABNF syntax for all schemes.

OK, I will change version 2 to use the ABNF above.

Re: New draft for Cancel-Lock
#87614
Author: Michael Bäuerle
Date: Fri, 10 Mar 2017 12:58
38 lines
2392 bytes
Julien ÉLIE wrote:
> 
> [...]
> - Section 2.1:
> Currently:
>       cancel-lock  = "Cancel-Lock:" SP c-lock *(CFWS c-lock) [CFWS]
>       c-lock       = scheme ":" code-string
> 
> Hmm...  CRLF is missing at the end.

Will be corrected in version 2.

> And I think whitespace should be allowed.
> What do you think of:
> 
>       cancel-lock  = "Cancel-Lock:" SP c-lock-list CRLF
>       c-lock-list  = *WSP c-lock *( FWS c-lock ) *WSP
>       c-lock       = scheme ":" code-string

Because you voted against preserving the old syntax in Section 6,
I have backward compatibility concerns if we remove CFWS.
But the comments look like a less important detail and I propose to push
this issue back to the tail of the queue and discuss it later.

> - Section 2.1:
> Couldn't <code-string> be wrapped?  Will it always contain in one line? 
> (998 octets maximum)

I think yes, or do I overlook something?
With SHA2 such overlong <code-string>s cannot occur for the locks (and
IMHO don't make much sense for the keys - if they are not created with
e.g. HMAC-SHA2, otherwise they cannot occur too, even with
HMAC-SHA2-512).

But it is important to not remove the folding option between the
<c-lock>s and <c-key>s, because their number is not limited.

Re: New draft for Cancel-Lock
#87615
Author: Michael Bäuerle
Date: Fri, 10 Mar 2017 13:04
19 lines
1709 bytes
Julien ÉLIE wrote:
> 
> [...]
> - Section 3.2:  "No more than one <c-lock> element SHOULD be added by 
> each agent that processes the proto-article."
> 
> What is the aim of that restriction?

To be honest: I don't know.
I took over this paragraph from Simons draft.

> I believe it does not cope with the following two use cases:
> * (short) transition period when <sec> is changed;
> * (long) transition period when the posting or injecting agent adds 
> both a sha1 and a sha-256 signature for backward compatibility.

Agreed. I will remove this recommendation from version 2.

Re: New draft for Cancel-Lock
#87616
Author: Michael Bäuerle
Date: Fri, 10 Mar 2017 15:15
61 lines
3568 bytes
Julien ÉLIE wrote:
> [...]
> * In Section 5.3 of RFC 5537, the following scenario is described:
> 
>    If the cancel control message arrives before the
>    article it targets, news servers choosing to honor it SHOULD remember
>    the message identifier that was cancelled and reject the cancelled
>    article when it arrives.
> 
> What to do with regards to Cancel-Key in such cancel control messages 
> or Supersedes?
> Would it imply that a news server SHOULD remember the keys, and test 
> them when the original message arrive?

Good question.

> It is not necessarily easy to  implement...

In general I think this is not directly related to this draft (that only
provides an authentication system for what is described in RFC5537).

> > 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).
> >   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"?
> 
> Note that there is also the "Hash Algorithms" registry there:
>   https://www.iana.org/assignments/pgp-parameters/
> 
> The advantage of the above registry is that it defines "SHA1" and 
> "SHA256".  The name is consistent with our existing "SHA1" for Netnews 
> articles :)

But Cancel-Lock is totally unrelated to PGP.

> Anyway, I think I would vote for a separate registry for Netnews 
> articles.  Maybe added to
>   https://www.iana.org/assignments/nntp-parameters/
> or another page if we want a "Netnews parameters" instead of "NNTP 
> parameters".
> The advantage of a separate registry is that we control the values we 
> explicitly want to use, and add a comment or an intended usage (that 
> can change to OBSOLETE when we decide to retire SHA1...).
> 
> Any opinion from other people here?

OK, let's use a separate registry.

Hmm, adding it to nntp-parameters? Cancel-Locks are in general
independent of the transport system (not related to NNTP).

Re: New draft for Cancel-Lock
#87617
Author: Michael Bäuerle
Date: Fri, 10 Mar 2017 18:40
23 lines
1991 bytes
Julien ÉLIE wrote:
> 
> [...]
> - Appendix A:  I suggest to make draft-ietf-usefor-cancel-lock an 
> informative reference (in Section 9.2).  This way, you could reference 
> it easily here in Appendix A, and also in Section 7 for "the last 
> draft".

I have tried to do this, but the parser didn't accept the reference.
Is there a special syntax required?

> - Section 4:  "HMAC(mid+sec)"
> Maybe say somewhere that <mid> is concatenated with <sec>? (sense of "+")

Simon has specified it this way. Likely "+" shouldn't mean concatenation
but feeding <mid> as data/message and <sec> as key into the HMAC
function. The example I have added in Version 2 shows it this way.

I have pushed back the CFWS issue, but the rest of your suggestions
should now (hopefully) be included in Version 2:
<https://tools.ietf.org/html/draft-baeuerle-netnews-cancel-lock-02>

New draft for Cancel-Lock (Comments in CFWS) (was: New draft for Cancel-Lock)
#87618
Author: Michael Bäuerle
Date: Sat, 11 Mar 2017 11:47
64 lines
3744 bytes
Michael Bäuerle wrote:
> 
> [...]
> I have pushed back the CFWS issue, but the rest of your suggestions
> should now (hopefully) be included in Version 2:
> <https://tools.ietf.org/html/draft-baeuerle-netnews-cancel-lock-02>

The list of changes was already too long, but now back to the comments
in CFWS:

With the new multi-lock example from Version 2:
| 
| Cancel-Lock: sha-256:s/pmK/3grrz++29ce2/mQydzJuc7iqHn1nqcJiQTPMc=
|  sha-256:RrKLp7YCQc9T8HmgSbxwIDlnCDWsgy1awqtiDuhedRo=
|  sha1:bNXHc6ohSmeHaRHHW56BIWZJt+4=

the current syntax would also allow this (semantically equivalent):

Cancel-Lock: sha-256:s/pmK/3grrz++29ce2/mQydzJuc7iqHn1nqcJiQTPMc=
  (created by poster)
  sha-256:RrKLp7YCQc9T8HmgSbxwIDlnCDWsgy1awqtiDuhedRo= (
  sha-256:really?)
  sha1:bNXHc6ohSmeHaRHHW56BIWZJt+4= (created by injecting agent
  (for backward compatibility (but nested comments are ugly to parse)))
  (and comments in general are ugly to parse, e.g. because of
  "quoted-pair"s like \\\))

I fully agree with Julien, that it would be good to forbid such things.
The article format is already ugly enough.

Arguments to forbid comments:
- Easier to parse
- Comments are not widely used
- If articles with "Cancel-Key" header field really must be buffered
  (because the target article has not arrived yet), there is the
  possibility that such fields are parsed several times (for every
  accepted article in worst case for a bad implementation).
  => Easier to parse is faster to parse and consumes less ressources.
- The document from Simon was only a draft, never a standard

Argument to preserve comments:
- Backward compatibility
  As noted in my other article I received many comments from the german
  hierarchy that backward compatibility should be considered as very
  important. Therefore we should think twice before removing something
  that was allowed in the past.

I see no way to solve the backward compatibility problem without
defining the current syntax as mandatory for the old SHA1 scheme in
Section 6.
But this would limit the new syntax to the new SHA2 scheme. And because
a new parser must understand both, an implementation can not really
benefit from the potential advantages listed above.

Have I overlooked another option?
If not, is it nevertheless worth to change the syntax?
(say for a far future when SHA1 was eventually obsoleted - with the new
self-controlled IANA registry, this would be possible without touching
the Cancel-Lock draft/RFC again)


[Subject changed to tag the discussion in this subthread CFWS related]

New draft for Cancel-Lock (Algorithm registry) (was: New draft for Cancel-Lock)
#87620
Author: Michael Bäuerle
Date: Sat, 11 Mar 2017 16:53
78 lines
3915 bytes
Michael Bäuerle wrote:
> Julien ÉLIE wrote:
> > 
> > [Algorithm registry]
> > Note that there is also the "Hash Algorithms" registry there:
> >   https://www.iana.org/assignments/pgp-parameters/
> > 
> > The advantage of the above registry is that it defines "SHA1" and 
> > "SHA256".  The name is consistent with our existing "SHA1" for Netnews 
> > articles :)
> 
> But Cancel-Lock is totally unrelated to PGP.
> 
> > Anyway, I think I would vote for a separate registry for Netnews 
> > articles.  Maybe added to
> >   https://www.iana.org/assignments/nntp-parameters/
> > or another page if we want a "Netnews parameters" instead of "NNTP 
> > parameters".
> > The advantage of a separate registry is that we control the values we 
> > explicitly want to use, and add a comment or an intended usage (that 
> > can change to OBSOLETE when we decide to retire SHA1...).
> > 
> > Any opinion from other people here?
>  
> OK, let's use a separate registry.

I have included it like this in Version 2 to show how it would look
like. I agree with Julien that the advantage of being able to obsolete
SHA1 in the future without rewriting the text would really be "nice to
have".

But please do not take this as the final descision!
As Julien wrote: Other opinions are still welcome.
It's no problem to change this again in Version 3 if somebody presents
a good reason to do so.

> Hmm, adding it to nntp-parameters? Cancel-Locks are in general
> independent of the transport system (not related to NNTP).

I would vote for a new page, because this is not related to NNTP.

Same as above: Nothing is fixed. Other opinions are still welcome.

===============

Third point:
If we eventually should decide to create a new registry (instead using
an existing one) then we can choose names freely. As Julien noted "sha1"
must stay for backward compatibility and "sha256" would look more
similar than "sha-256".

Three possible options:
a) sha1 / sha-256
b) sha1 / sha256
c) sha1 / sha2-256

My personal opinion:
Option b) looks best (my preference)
Option c) is long, but would be consistent with SHA3 (e.g. SHA3-256)
Option a) is worst

And there is the option to define all that in uppercase.
I would vote for lowercase, because this is dominant in existing
implementations. Other variants may create backward compatibility
issues (or it is at least more likely that this happens).

Please post opinions, new options or simply vote for one of the
three listed above.


PS: Looks like I have forgotten a dash:
Version 2 of the draft is inconsistent and use a) in ABNF and b)
in the proposed new registry entry. Must be changed in any case.


[Subject changed to tag the algorithm registry related subthread]

New draft for Cancel-Lock (Update other RFCs or not) (was: New draft for Cancel-Lock)
#87621
Author: Michael Bäuerle
Date: Sat, 11 Mar 2017 17:01
20 lines
1865 bytes
Julien ÉLIE wrote:
> 
> - I believe the document does not update RFC 5536.  (For instance, RFC 
> 6857 defines new header fields without updating RFC 5322.  The same 
> thing as NNTP extensions do not update RFC 3977.)
> Regarding RFC 5537, it is not clear where the document really updates 
> it.  If you want to update it, I think you should clearly states how 
> the manipulation and interpretation of Netnews articles described in 
> RFC 5537 is updated (which sections, and how they are impacted).  
> Otherwise, I would just drop the mention of the update.

Version 2 now follows your suggestions (not update).

Russ is listed as editor of RFC5537, I would like to know his opinion
too.


[Subject changed to tag RFC update related subthread]

New draft for Cancel-Lock (Key length) (was: New draft for Cancel-Lock)
#87619
Author: Michael Bäuerle
Date: Sat, 11 Mar 2017 17:17
41 lines
2779 bytes
Richard Kettlewell wrote:
> Michael Bäuerle <michael.baeuerle@stz-e.de> writes:
> > 
> > [...]
> >   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.

New registry currently in Version 2 but no descision on this topic yet.
Please post other opinions to the subthread I have opened for the topic
"algorithm registry"

> [...]
> 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?

Not in Version 2 yet.
Please post your opinions related to key length to this subthread.


[Subject changed to tag this subthread as key length related]
-- 
Sorry for tearing things apart, but I think this should make the large
thread better readable and the separate topics easier to find.

Re: New draft for Cancel-Lock (Key length)
#87622
Author: Richard Kettlewell
Date: Sun, 12 Mar 2017 12:52
34 lines
2731 bytes
Michael Bäuerle <michael.baeuerle@gmx.net> writes:
> Richard Kettlewell wrote:
>> 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?
>
> Not in Version 2 yet.
> Please post your opinions related to key length to this subthread.

I suggest that the recommendation on posting agents should be
>=128 bit keys with SHA256, and >=80 bit keys with SHA1, on the basis
that it’s common to use SHA256 in 128-bit ciphersuites and SHA1 in
80-bit ciphersuites; and that this should be a SHOULD not a MUST.

On reflection I think there should be no firm restriction (in the draft)
on what serving agents will accept.

Underlying logic: if someone wants to make it easy to cancel their
articles, they should be allowed to do that.

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

Re: New draft for Cancel-Lock
#87624
Author: Thomas Hochstein
Date: Sun, 12 Mar 2017 16:15
22 lines
1874 bytes
Julien ÉLIE schrieb:

> * For the Security Considerations Section, I think something should be 
> added about the possible abuse of Cancel-Lock.
> If a spammer adds in his posts a Cancel-Lock header field (either the 
> same for all his posts, or a real computed one), would it mean that 
> complying news servers will never be able to withdraw these spams?
>
> I don't know how to treat that problem.  By requiring that NoCeM notices 
> bypass the Cancel-Lock system?  (should other mechanisms bypass the 
> Cancel-Lock system?)

Most implementation in practice seem to rely on NoCeM notices and
accepting signed third party cancels from known and trusted
despammers.

News server administrators will like to add an own Cancel-Key so
second party cancels (admin cancels) are possible.

-thh

Re: New draft for Cancel-Lock (Key length)
#87623
Author: Michael Bäuerle
Date: Sun, 12 Mar 2017 19:32
55 lines
3645 bytes
Richard Kettlewell wrote:
> Michael Bäuerle <michael.baeuerle@gmx.net> writes:
> > Richard Kettlewell wrote:
> > > 
> > > 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?
> > 
> > Not in Version 2 yet.
> > Please post your opinions related to key length to this subthread.
> 
> I suggest that the recommendation on posting agents should be
> > =128 bit keys with SHA256, and >=80 bit keys with SHA1, on the basis
> that it’s common to use SHA256 in 128-bit ciphersuites and SHA1 in
> 80-bit ciphersuites; and that this should be a SHOULD not a MUST.
> 
> On reflection I think there should be no firm restriction (in the draft)
> on what serving agents will accept.
> 
> Underlying logic: if someone wants to make it easy to cancel their
> articles, they should be allowed to do that.

I agree that it should be specified separate for posting and serving
agents, with no restriction for serving agents.

Currently the words are:
| 
| The local secret <sec> should have a length of at least the output
| size of the hash function that is used by HMAC (32 octets for SHA-
| 256).  If the secret is not a random value, but e.g. some sort of
| human readable password, it should be much longer.  In any case it is
| important that this secret can not be guessed.

Your values above are the "good enough" approach. I would prefer to not
delete the current words, that specify what is required to make full
use of the strength the hash function can provide.
What about using words for both ("good enough" and "more doesn't
add much additional strength")?

About SHOULD/MUST respectively:
Currently the words quoted above are in a section marked informative.
Such keywords are not allowed there.
@Julien: Can you confirm this?

Re: New draft for Cancel-Lock (Key length)
#87625
Author: Richard Kettlewell
Date: Sun, 12 Mar 2017 19:40
52 lines
3676 bytes
Michael Bäuerle <michael.baeuerle@gmx.net> writes:

> Richard Kettlewell wrote:
>> Michael Bäuerle <michael.baeuerle@gmx.net> writes:
>> > Richard Kettlewell wrote:
>> > > 
>> > > 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?
>> > 
>> > Not in Version 2 yet.
>> > Please post your opinions related to key length to this subthread.
>> 
>> I suggest that the recommendation on posting agents should be
>> > =128 bit keys with SHA256, and >=80 bit keys with SHA1, on the basis
>> that it’s common to use SHA256 in 128-bit ciphersuites and SHA1 in
>> 80-bit ciphersuites; and that this should be a SHOULD not a MUST.
>> 
>> On reflection I think there should be no firm restriction (in the draft)
>> on what serving agents will accept.
>> 
>> Underlying logic: if someone wants to make it easy to cancel their
>> articles, they should be allowed to do that.
>
> I agree that it should be specified separate for posting and serving
> agents, with no restriction for serving agents.
>
> Currently the words are:
> | 
> | The local secret <sec> should have a length of at least the output
> | size of the hash function that is used by HMAC (32 octets for SHA-
> | 256).  If the secret is not a random value, but e.g. some sort of
> | human readable password, it should be much longer.  In any case it is
> | important that this secret can not be guessed.

I’m talking about the size of the cancel keys. Those words are about how
cancel keys are produced, and does not discuss what size they are.

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

Re: New draft for Cancel-Lock (Key length)
#87626
Author: Julien ÉLIE
Date: Sun, 12 Mar 2017 21:11
18 lines
1890 bytes
Hi Michael,

> About SHOULD/MUST respectively:
> Currently the words quoted above are in a section marked informative.
> Such keywords are not allowed there.
> @Julien: Can you confirm this?

Yes, I confirm.
If you really want to use these keywords there, you have to somehow make 
two subsections (and only one would then be informative).

-- 
Julien ÉLIE

« Si ça n'a pas fait boum, c'est peut-être le succès ? »
   (Astérix)

Re: New draft for Cancel-Lock
#87628
Author: Julien ÉLIE
Date: Sun, 12 Mar 2017 21:28
60 lines
3891 bytes
Hi Michael,

>>    If the cancel control message arrives before the
>>    article it targets, news servers choosing to honor it SHOULD remember
>>    the message identifier that was cancelled and reject the cancelled
>>    article when it arrives.
>
>> It is not necessarily easy to implement...
>
> In general I think this is not directly related to this draft (that only
> provides an authentication system for what is described in RFC5537).

Oh, speaking of that authentication system, I see that Section 5.1 of 
RFC 5537 says:

    Control messages specify actions above and beyond the normal
    processing of an article and are therefore potential vectors of abuse
    and unauthorized action.  There is, at present, no standardized means
    of authenticating the sender of a control message or verifying that
    the contents of a control message were sent by the claimed sender.
    There are, however, some unstandardized authentication mechanisms in
    common use, such as [PGPVERIFY].

    Agents acting on control messages SHOULD take steps to authenticate
    control messages before acting on them, as determined by local
    authorization policy.  Whether this is done via the use of an
    unstandardized authentication protocol, by comparison with
    information obtained through another protocol, by human review, or by
    some other means is left unspecified by this document.  Further
    extensions or revisions of this protocol are expected to standardize
    a digital signature mechanism.


I'm now convinced that your document could update RFC 5537.
You should then say in your Abstract that it updates RFC 5537 by 
standardizing a means to verify that the sender of an article which 
cancels or supersedes another article is sent by the original sender.
You can mention Section 5.1 of RFC 5537 in your Introduction (Section 1).



> OK, let's use a separate registry.
>
> Hmm, adding it to nntp-parameters? Cancel-Locks are in general
> independent of the transport system (not related to NNTP).

I've seen your -02 version.
I would suggest a generic "Netnews parameters" category (for the URL) 
with a "Netnews Cancel-Lock parameters" as its (only) registry.

Also, to improve clarity, you could create two subsections in IANA 
Considerations (one for the permanent header field registry, and another 
one for your new registry, containing subsubsections).
-- 
Julien ÉLIE

« Avez-vous remarqué qu'à table les mets que l'on vous sert vous
   mettent les mots à la bouche ? » (Raymond Devos)

Re: New draft for Cancel-Lock
#87627
Author: Adam H. Kerman
Date: Thu, 16 Mar 2017 18:05
50 lines
3400 bytes
michael.baeuerle@gmx.net wrote:
>Julien wrote:
>>Adam H. Kerman wrote:

>>>[...]
>>>Is there a time limit after the article was first submitted to Usenet
>>>after which cancel-lock cancels will no longer be accepted and
>>>should there be? Maybe 24 hours?

>>Or suggest that implementations are encouraged to have such a cutoff 
>>delay (of their choice)?

>Is such a cutoff delay really required for some good reason?

>Example:
>If somebody has posted an article and some large amount of time (say
>several years) later the political administration in his country has
>changed and the content of the old article now creates potential
>problems for the poster.
>Given that the poster has a valid Cancel-Key still available for his old
>article: Should his request to cancel the article be ignored?
>I mean by definition, only because of an artifical cutoff limit, not a
>technical reason like a cryptographically broken "scheme".

You know, I think your country has a huge civil liberties problem that
Usenet cannot solve, so there's absolutely no reason to consider this
in the proposed standard. Right now, Poland and Hungary have rather
unpleasant government that lack consideration for free speech and
publishing rights. Are they heading into Fascism? I sure hope not.

But likely, they do indeed have an enemies list. It's not possible
to believe that cancelling a Usenet article years after the fact
will hide anyone's past written statements made on a public network
from the authorities.

>Related to this topic:
><https://en.wikipedia.org/wiki/Right_to_be_forgotten>

Actually, not at all. European Union courts suffer from judicial
activism run amock. There was no constitutional basis for that ruling.

It's a huge infringement on the civil liberty to publish, something
that's appalling to see in so-called democratic societies.

As I've pointed out the obvious for years, cancels are ineffective because,
even if they were sent legitimately by the first or second party and even
if they're accepted at a News server on a foreign network, they aren't
a command to "unread" or "forget".

Re: New draft for Cancel-Lock
#87629
Author: Adam H. Kerman
Date: Thu, 16 Mar 2017 18:12
26 lines
2153 bytes
michael.baeuerle@gmx.net wrote:
>Julien wrote:
>>Adam H. Kerman wrote:

>>>[...]
>>>Is there a time limit after the article was first submitted to Usenet
>>>after which cancel-lock cancels will no longer be accepted and
>>>should there be? Maybe 24 hours?

>>Or suggest that implementations are encouraged to have such a cutoff 
>>delay (of their choice)?

>Is such a cutoff delay really required for some good reason? . . . 

I forgot to comment:

The possible technical reason is to thwart the potential for network abuse
The first party (user) or second party (News administrator) could accumulate
a significant number of cancel-locks after a number of years. If submitted
all at once, that might cause serious processing problems at various
News sites.

Five years later, some author decides to pretend he had never posted to
Usenet? There's no reason to accomodate that.

New draft for Cancel-Lock (Generating the Message-ID) (was: New draft for Cancel-Lock)
#87632
Author: Julien ÉLIE
Date: Fri, 17 Mar 2017 14:41
24 lines
2079 bytes
Hi Michael,

When using K = HMAC(mid+sec), the agent needs to know the Message-ID. 
It means that the posting agent should add the Message-ID header field 
in the proto-article if the Cancel-Lock header field is also present. 
(Of course the injecting agent does that if it is the one that generates 
the Cancel-Lock.)

Do you think it could be worth highlighting somewhere in the document? 
(Section 4 perhaps)


Incidentally, with the POST command, INN returns a recommended 
Message-ID to use along with the 340 response code.  Do you know whether 
other news servers also do that?  And whether news clients rely on that 
recommended Message-ID when present?

-- 
Julien ÉLIE

« Avez-vous remarqué qu'à table les mets que l'on vous sert vous
   mettent les mots à la bouche ? » (Raymond Devos)

Re: New draft for Cancel-Lock (Key length)
#87630
Author: Julien ÉLIE
Date: Fri, 17 Mar 2017 14:41
35 lines
2386 bytes
Hi  Michael,

>> 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.
>
> Not in Version 2 yet.
> Please post your opinions related to key length to this subthread.

The issue I see when explicitly recommending security measures (like key 
length) in an RFC, is that it could become obsolete in a few years.
The best is to reference another RFC, usually a BCP one.

Maybe you could write a paragraph about a recommended key length and add 
a remark for the Security Directorate or the Area Director.  They will 
have good advice on the subject.

For instance:

<cref anchor="Q1">Security review:  should these recommendations remain 
in the document, or does it exist an RFC to refer to with regards to 
security recommendations?</cref>


To properly see the comment, I think you'll also need:

<?rfc comments="yes" ?>
<?rfc inline="yes" ?>

-- 
Julien ÉLIE

« À bas la légion ménagère ! » (Astérix)

Re: New draft for Cancel-Lock
#87636
Author: Julien ÉLIE
Date: Fri, 17 Mar 2017 15:19
74 lines
3581 bytes
Hi Michael,

>> Maybe K could be used in Section 4 as K = HMAC(mid+sec) if you want.
>
> Done.
>
> Or was your intention to move all the explaining stuff (that uses "K")
> as informational to Section 4 and leave only the pure formal definitions
> in Section 2?

I have no objection to the wording of -02 (in Sections 2 and 4) related 
to "K".  Thanks for it.



>> I would then suggest:
>>
>>   c-lock          = scheme ":" c-lock-string
>>   c-lock-string   = *(4base64-char) [base64-terminal]
>>   base64-char     = ALPHA / DIGIT / "+" / "/"
>>   base64-terminal = 2base64-char "==" / 3base64-char "="
>>
>>
>>   c-key         = scheme ":" c-key-string
>>   c-key-string  = 1*base64-octet
>>   base64-octet  = ALPHA / DIGIT / "+" / "/" / "="
>>
>>
>> It is consistent with both Simon's draft and yours.
>
> Looks like a good compromise to me.

Just a typo in -02 (c-lock instead of c-key) here:
   c-key-list   = c-lock *(CFWS c-lock) [CFWS]


I'm just wondering whether

       c-key-string = 1*base64-octet
       base64-octet = ALPHA / DIGIT / "+" / "/" / "="

or

       c-key-string     = c-lock-string / obs-c-key-string
       obs-c-key-string = 1*base64-octet
       base64-octet     = ALPHA / DIGIT / "+" / "/" / "="

is the better way to render the ABNF syntax, with regards to the 
comments in Section 2.2 about the relaxed syntax.

I would slightly reword:

    The relaxed syntax definition of <c-key-string> above is required for
    backward compatibility.  New implementations always SHOULD generate
    valid Base64.

to:

    The relaxed syntax definition of <c-key-string> above is required for
    backward compatibility with implementations that are not compliant
    with this specification.  Compliant implementations SHOULD generate
    valid Base64 (that is to say the syntax of <c-lock-string>) and
    MUST accept strings of base64-octets (that is to say the syntax of
    <obs-c-key-string>).

Feel free to reword; it is only a suggestion.

-- 
Julien ÉLIE

« Pas besoin d'un grand dessin pour comprendre que les recettes du
   druide sont mal digérées par les Romains ! » (Astérix)

Re: New draft for Cancel-Lock
#87634
Author: Julien ÉLIE
Date: Fri, 17 Mar 2017 15:43
57 lines
3346 bytes
Hi Michael,

>> - Appendix A:  I suggest to make draft-ietf-usefor-cancel-lock an
>> informative reference (in Section 9.2).  This way, you could reference
>> it easily here in Appendix A, and also in Section 7 for "the last
>> draft".
>
> I have tried to do this, but the parser didn't accept the reference.
> Is there a special syntax required?

I think you should just add the following block in the <references 
title="Informative References"> Section:

<reference anchor="USEFOR-CANCEL-LOCK">
<front>
<title>Cancel-Locks in Usenet articles.</title>
<author initials="S." surname="Lyall" fullname="Simon Lyall" />
<date month="Work in Progress, November" year="1998" />
</front>
<format type="HTML" 
target="https://tools.ietf.org/html/draft-ietf-usefor-cancel-lock-01" />
</reference>

and then use <xref target="USEFOR-CANCEL-LOCK" /> when you want to refer 
to it.



>> - Section 4:  "HMAC(mid+sec)"
>> Maybe say somewhere that <mid> is concatenated with <sec>? (sense of "+")
>
> Simon has specified it this way. Likely "+" shouldn't mean concatenation
> but feeding <mid> as data/message and <sec> as key into the HMAC
> function. The example I have added in Version 2 shows it this way.

To improve clarity, and reuse the terms "data" and "secret key" from RFC 
2104, here is a suggestion to reword:

    It is suggested to use the function K = HMAC(mid+sec) to create the
    key "K" for an article with Message-ID <mid>, where HMAC is outlined
    in [RFC2104].  <sec> is a secret held locally that can be used for
    multiple articles.

to something like:

    It is suggested to use the function K = HMAC(mid, sec) to create the
    key "K" for an article with Message-ID <mid>, where HMAC is outlined
    in [RFC2104].  HMAC is computed over the data <mid>, using <sec> as
    a secret key held locally that can be used for multiple articles.

-- 
Julien ÉLIE

« Pas besoin d'un grand dessin pour comprendre que les recettes du
   druide sont mal digérées par les Romains ! » (Astérix)

Re: New draft for Cancel-Lock (Comments in CFWS)
#87635
Author: Julien ÉLIE
Date: Fri, 17 Mar 2017 15:56
67 lines
3840 bytes
Hi Michael,

> the current syntax would also allow this (semantically equivalent):
>
> Cancel-Lock: sha-256:s/pmK/3grrz++29ce2/mQydzJuc7iqHn1nqcJiQTPMc=
>   (created by poster)
>   sha-256:RrKLp7YCQc9T8HmgSbxwIDlnCDWsgy1awqtiDuhedRo= (
>   sha-256:really?)
>   sha1:bNXHc6ohSmeHaRHHW56BIWZJt+4= (created by injecting agent
>   (for backward compatibility (but nested comments are ugly to parse)))
>   (and comments in general are ugly to parse, e.g. because of
>   "quoted-pair"s like \\\))
>
> I fully agree with Julien, that it would be good to forbid such things.
> The article format is already ugly enough.

Sure.



> Arguments to forbid comments:
> - Easier to parse
> - Comments are not widely used
> - If articles with "Cancel-Key" header field really must be buffered
>   (because the target article has not arrived yet), there is the
>   possibility that such fields are parsed several times (for every
>   accepted article in worst case for a bad implementation).
>   => Easier to parse is faster to parse and consumes less ressources.
> - The document from Simon was only a draft, never a standard
>
> Argument to preserve comments:
> - Backward compatibility
>   As noted in my other article I received many comments from the german
>   hierarchy that backward compatibility should be considered as very
>   important. Therefore we should think twice before removing something
>   that was allowed in the past.
>
> I see no way to solve the backward compatibility problem without
> defining the current syntax as mandatory for the old SHA1 scheme in
> Section 6.

Are there really Cancel-Lock implementations currently sending comments?
I doubt such implementations exist (and therefore comments are manual 
edits of the header field).

So either you could say something like RFC 5536 writes for the 
References header field:

    o  Comments in CFWS between message identifiers can cause
       interoperability problems, so comments SHOULD NOT be generated but
       MUST be accepted.

or use FWS instead of CFWS in the ABNF syntax :)

I would of course vote for FWS if I'm asked.  But I'm also fine with 
your wish to keep the legacy grammar.

However, I prefer that the choice be consistent for all the schemes, and 
not sha1-specific.

-- 
Julien ÉLIE

« Pas besoin d'un grand dessin pour comprendre que les recettes du
   druide sont mal digérées par les Romains ! » (Astérix)

Re: New draft for Cancel-Lock
#87637
Author: Julien ÉLIE
Date: Fri, 17 Mar 2017 16:08
38 lines
2583 bytes
Hi Michael,

>> And I think whitespace should be allowed.
>> What do you think of:
>>
>>       cancel-lock  = "Cancel-Lock:" SP c-lock-list CRLF
>>       c-lock-list  = *WSP c-lock *( FWS c-lock ) *WSP
>>       c-lock       = scheme ":" code-string
>
> Because you voted against preserving the old syntax in Section 6,
> I have backward compatibility concerns if we remove CFWS.
> But the comments look like a less important detail and I propose to push
> this issue back to the tail of the queue and discuss it later.

Is there a special reason for not allowing *WSP at the beginning and at 
the end of <c-lock-list> (and <c-key-list>)?
Most of (if not all) header fields are constructed this way per RFC 5536.
Simon's draft defines <Cancel-Lock-content> (without CRLF for instance) 
and not the whole header, and is based on one of the first drafts of RFC 
5536.  So I believe *WSP is expected.



>> - Section 2.1:
>> Couldn't <code-string> be wrapped?  Will it always contain in one line?
>> (998 octets maximum)
>
> I think yes, or do I overlook something?

Not that I know.  It was just a question to be sure.

-- 
Julien ÉLIE

« Pas besoin d'un grand dessin pour comprendre que les recettes du
   druide sont mal digérées par les Romains ! » (Astérix)

Re: New draft for Cancel-Lock (Algorithm registry)
#87638
Author: Julien ÉLIE
Date: Fri, 17 Mar 2017 21:20
80 lines
3951 bytes
Hi Michael,

In Section 5, you speak of "Calculation of Base64(K)" and 
"Base64(SHA256(Base64(K)))".  You should then use "Base64" in first 
uppercase letter in Sections 2.1 and 2.2.
Typo "canceling" -> "cancelling".


> I have included it like this in Version 2 to show how it would look
> like. I agree with Julien that the advantage of being able to obsolete
> SHA1 in the future without rewriting the text would really be "nice to
> have".

In Section 6, you could even mention that:

    Serving agents
    SHOULD still accept it for a transition period as long as the
    corresponding hash function is not considered unsafe, and therefore
    marked as OBSOLETE in the Netnews Cancel-Lock hash algorithm
    registry (Section 8.x of this document).

In Section 8.2:
    Netnews hash algorithm name: sha1
-> Netnews Cancel-Lock hash algorithm name: sha1

    Contact for further information: Authors of this document
-> Author in singular


> I would vote for a new page, because this is not related to NNTP.

I agree.


> If we eventually should decide to create a new registry (instead using
> an existing one) then we can choose names freely. As Julien noted "sha1"
> must stay for backward compatibility and "sha256" would look more
> similar than "sha-256".
>
> Three possible options:
> a) sha1 / sha-256
> b) sha1 / sha256
> c) sha1 / sha2-256
>
> My personal opinion:
> Option b) looks best (my preference)
> Option c) is long, but would be consistent with SHA3 (e.g. SHA3-256)
> Option a) is worst

Option b) also for me.
I assume we'll then have sha3-256.


> And there is the option to define all that in uppercase.
> I would vote for lowercase, because this is dominant in existing
> implementations. Other variants may create backward compatibility
> issues (or it is at least more likely that this happens).

Works for me.


> PS: Looks like I have forgotten a dash:
> Version 2 of the draft is inconsistent and use a) in ABNF and b)
> in the proposed new registry entry. Must be changed in any case.

No need to add "/" to the available chars for schemes?
I see that "SHA-512/224" exists (which would be "sha512/224" for our 
registry) but maybe it is useless, and "sha512" will be used.

Incidentally, is there a reason to prefer sha256 over sha512 as the 
mandatory algorithm hash?
Couldn't both sha256 and sha512 be registered?

-- 
Julien ÉLIE

« La femme ne voit jamais ce que l'on fait pour elle ; elle ne voit
   que ce que l'on ne fait pas. » (Georges Courteline)

Re: New draft for Cancel-Lock (Algorithm registry)
#87640
Author: Peter Faust
Date: Sat, 18 Mar 2017 07:36
34 lines
4398 bytes
Michael Bäuerle wrote:

> ===============
> 
> Third point:
> If we eventually should decide to create a new registry (instead using
> an existing one) then we can choose names freely. As Julien noted "sha1"
> must stay for backward compatibility and "sha256" would look more
> similar than "sha-256".
> 
> Three possible options:
> a) sha1 / sha-256
> b) sha1 / sha256
> c) sha1 / sha2-256
> 
> My personal opinion:
> Option b) looks best (my preference)
> Option c) is long, but would be consistent with SHA3 (e.g. SHA3-256)
> Option a) is worst
 
Option 'b' is, in my opinion, the best approach to the options of
digest -256 or -512 in openssl and looks good: Make it so. ;-)

BTW: You are doing a great job with the draft - thanks for it.

-- 
             \\ //
            \\   //
           ( @  @ )
--öOOO--------(_)------OOOö--


New draft for Cancel-Lock (Calculating the key data) (was: New draft for Cancel-Lock)
#87643
Author: Julien ÉLIE
Date: Sat, 18 Mar 2017 15:00
33 lines
2286 bytes
Hi Michael,

When calculating the key data (Section 4), only the use of the 
Message-ID and the secret key is suggested.
In the case of injecting agents, wouldn't it be good to suggest to also 
use the login of the authenticated user?

K = HMAC(mid, login+sec)
for instance (where HMAC is computed over the data <mid>, using as the 
secret key the concatenation of <login> [if known] and <sec>).


I took the idea from Alexander's implementation:
 
http://svn.schnuerpel.eu/viewvc.cgi/trunk/lib/Schnuerpel/INN/CancelLock.pm?view=markup&root=schnuerpel

MIME::Base64::encode(
     Digest::HMAC_SHA1::hmac_sha1($message_id, $user . CANCEL_LOCK), ''
);



Incidentally, I see that md5 is supported in his implementation.
I therefore believe that md5 should be mentioned in <obs-scheme> and 
added in the registry, marked as OBSOLETE.

-- 
Julien ÉLIE

« La femme ne voit jamais ce que l'on fait pour elle ; elle ne voit
   que ce que l'on ne fait pas. » (Georges Courteline)

Re: New draft for Cancel-Lock
#87642
Author: Michael Bäuerle
Date: Sun, 19 Mar 2017 10:31
55 lines
3232 bytes
Julien ÉLIE wrote:
> Michael Bäuerle wrote:
> > Julien ÉLIE wrote:
> > > 
> > > - Appendix A:  I suggest to make draft-ietf-usefor-cancel-lock an
> > > informative reference (in Section 9.2).  This way, you could reference
> > > it easily here in Appendix A, and also in Section 7 for "the last
> > > draft".
> > 
> > I have tried to do this, but the parser didn't accept the reference.
> > Is there a special syntax required?
> 
> I think you should just add the following block in the <references 
> title="Informative References"> Section:
> 
> <reference anchor="USEFOR-CANCEL-LOCK">
> <front>
> <title>Cancel-Locks in Usenet articles.</title>
> <author initials="S." surname="Lyall" fullname="Simon Lyall" />
> <date month="Work in Progress, November" year="1998" />
> </front>
> <format type="HTML" 
> target="https://tools.ietf.org/html/draft-ietf-usefor-cancel-lock-01" />
> </reference>
> 
> and then use <xref target="USEFOR-CANCEL-LOCK" /> when you want to 
> refer to it.

Thanks. I will try it again this way.

> > > - Section 4:  "HMAC(mid+sec)"
> > > Maybe say somewhere that <mid> is concatenated with <sec>? (sense of "+")
> > 
> > Simon has specified it this way. Likely "+" shouldn't mean concatenation
> > but feeding <mid> as data/message and <sec> as key into the HMAC
> > function. The example I have added in Version 2 shows it this way.
> 
> To improve clarity, and reuse the terms "data" and "secret key" from 
> RFC 2104, here is a suggestion to reword:
> 
>    It is suggested to use the function K = HMAC(mid+sec) to create the
>    key "K" for an article with Message-ID <mid>, where HMAC is outlined
>    in [RFC2104].  <sec> is a secret held locally that can be used for
>    multiple articles.
> 
> to something like:
> 
>    It is suggested to use the function K = HMAC(mid, sec) to create the
>    key "K" for an article with Message-ID <mid>, where HMAC is outlined
>    in [RFC2104].  HMAC is computed over the data <mid>, using <sec> as
>    a secret key held locally that can be used for multiple articles.

Agreed. Marked for update in version 3.

Re: New draft for Cancel-Lock (Update other RFCs or not)
#87645
Author: Russ Allbery
Date: Sun, 19 Mar 2017 20:08
38 lines
2899 bytes
Michael Bäuerle <michael.baeuerle@gmx.net> writes:
> Julien ÉLIE wrote:

>> - I believe the document does not update RFC 5536.  (For instance, RFC 
>> 6857 defines new header fields without updating RFC 5322.  The same 
>> thing as NNTP extensions do not update RFC 3977.)
>> Regarding RFC 5537, it is not clear where the document really updates 
>> it.  If you want to update it, I think you should clearly states how 
>> the manipulation and interpretation of Netnews articles described in 
>> RFC 5537 is updated (which sections, and how they are impacted).  
>> Otherwise, I would just drop the mention of the update.

> Version 2 now follows your suggestions (not update).

> Russ is listed as editor of RFC5537, I would like to know his opinion
> too.

Since this specification describes additional checks for processing cancel
messages, I think you could reasonably mark it as updating RFC 5537.  It
does, if implemented, change the implementation of sending and processing
cancel control messages, which I think fits the definition of an update.
And the document is standards-track, so you won't run into issues with a
mismatch of track status.

The stronger argument for saying that it updates RFC 5536 is not the
introduction of a new header field but the change in semantics to the
existing Supersedes header field described in that document.  But since
the description of Supersedes says that it's equivalent to a cancel
control message, I think it's fine to just handle that as part of the
update of RFC 5537 that changes the processing of cancel messages.

-- 
Russ Allbery (eagle@eyrie.org)              <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.

Re: New draft for Cancel-Lock (Key length)
#87646
Author: Michael Bäuerle
Date: Mon, 20 Mar 2017 17:23
38 lines
2959 bytes
Richard Kettlewell wrote:
> Michael Bäuerle <michael.baeuerle@gmx.net> writes:
> > Richard Kettlewell wrote:
> > > 
> > > 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?
> > 
> > Not in Version 2 yet.
> > Please post your opinions related to key length to this subthread.
> 
> I suggest that the recommendation on posting agents should be
> > =128 bit keys with SHA256, and >=80 bit keys with SHA1, on the basis
> that it’s common to use SHA256 in 128-bit ciphersuites and SHA1 in
> 80-bit ciphersuites; and that this should be a SHOULD not a MUST.
> 
> On reflection I think there should be no firm restriction (in the draft)
> on what serving agents will accept.
> 
> Underlying logic: if someone wants to make it easy to cancel their
> articles, they should be allowed to do that.

Version 3 will contain the recommendation for 128/80 bit on generation.
And no recommendation for what serving agents should accept.

The note for the review, as suggested by Julien, will be included too.

Re: New draft for Cancel-Lock
#87647
Author: Michael Bäuerle
Date: Mon, 20 Mar 2017 17:57
61 lines
3214 bytes
Julien ÉLIE wrote:
> Michael Bäuerle wrote:
> > Julien ÉLIE wrote:
> > > 
> > > [...]
> > > I would then suggest:
> > > 
> > >   c-lock          = scheme ":" c-lock-string
> > >   c-lock-string   = *(4base64-char) [base64-terminal]
> > >   base64-char     = ALPHA / DIGIT / "+" / "/"
> > >   base64-terminal = 2base64-char "==" / 3base64-char "="
> > > 
> > > 
> > >   c-key         = scheme ":" c-key-string
> > >   c-key-string  = 1*base64-octet
> > >   base64-octet  = ALPHA / DIGIT / "+" / "/" / "="
> > > 
> > > 
> > > It is consistent with both Simon's draft and yours.
> > 
> > Looks like a good compromise to me.
> 
> Just a typo in -02 (c-lock instead of c-key) here:
>   c-key-list   = c-lock *(CFWS c-lock) [CFWS]

Will be fixed in Version 3.

> I'm just wondering whether
> 
>       c-key-string = 1*base64-octet
>       base64-octet = ALPHA / DIGIT / "+" / "/" / "="
> 
> or
> 
>       c-key-string     = c-lock-string / obs-c-key-string
>       obs-c-key-string = 1*base64-octet
>       base64-octet     = ALPHA / DIGIT / "+" / "/" / "="
> 
> is the better way to render the ABNF syntax, with regards to the 
> comments in Section 2.2 about the relaxed syntax.
> 
> I would slightly reword:
> 
>    The relaxed syntax definition of <c-key-string> above is required for
>    backward compatibility.  New implementations always SHOULD generate
>    valid Base64.
> 
> to:
> 
>    The relaxed syntax definition of <c-key-string> above is required for
>    backward compatibility with implementations that are not compliant
>    with this specification.  Compliant implementations SHOULD generate
>    valid Base64 (that is to say the syntax of <c-lock-string>) and
>    MUST accept strings of base64-octets (that is to say the syntax of
>    <obs-c-key-string>).
> 
> Feel free to reword; it is only a suggestion.

Included in slightly modified form to Version 3.

New draft for Cancel-Lock (IETF terminology for header fields) (was: New draft for Cancel-Lock)
#87649
Author: Julien ÉLIE
Date: Tue, 21 Mar 2017 09:28
82 lines
4188 bytes
Hi Michael,

>> Feel free to reword; it is only a suggestion.
>
> Included in slightly modified form to Version 3.

OK, thanks a lot!


In Section 3.2:
"and automatically add working Cancel-Key header fields for such articles"
=> and automatically add a working Cancel-Key header field or extend an 
existing one for such articles?

Incidentally, shouldn't an "Extending a Cancel-Key header field to a 
proto-article" subsection be added to the document (and therefore 
Section 3.3 be slighty reworded)?



Also, could you please check the use of "header field" and "header field 
body"?
IETF terminology should be followed.  Have a look at these errata for 
RFCs 5536 and 5537:
   https://www.rfc-editor.org/errata_search.php?rfc=5536&eid=1979
   https://www.rfc-editor.org/errata_search.php?rfc=5537&eid=1980


I noticed in your -02 draft:

- Both new header fields contain lists of encoded values.
=> header field bodies

- Other agents MUST NOT add this header to articles or proto-articles 
that they process.
=> header field

- MAY append additional <c-lock> elements to those already in the header.

- Use cases for extending the Cancel-Lock header field:
=> header field body

- Once an article is injected then this header MUST NOT be altered.

- Other agents MUST NOT alter this header.

- Inserted into the header of article <12345@mid.example>

- Inserted into the header of an article that should cancel

- The Message-ID <mid> is public (in the article header).



The Security Considerations Section should also use a similar 
terminology (or sometimes reworded like e.g. "one of the <c-key> 
elements of the Cancel-Key header field body) here:

- A successful preimage attack would reveal the real Cancel-Key that was 
used to create the Cancel-Lock of the original article.  A successful 
second preimage attack would allow to create a new, different Cancel-Key 
that matches a Cancel-Lock too.

- Finding two Cancel-Keys that match an arbitary Cancel-Lock

- An attacker who wants to steal/use a local secret only need to break 
this algorithm (regardless of <scheme>), because Cancel-Keys are 
explicitly published for every request to modify or delete existing 
articles.

- With <sec> in hand it is possible to forge such requests for all 
articles that contain Cancel-Locks based on Cancel-Keys generated with 
this <sec> in the past.

-- 
Julien ÉLIE

« PowerPoint allows speakers to pretend that they are giving a real
   talk, and audiences to pretend that they are listening. » (Edward R.
   Tufte, _The Cognitive Style of PowerPoint_)

Re: New draft for Cancel-Lock (Algorithm registry)
#87652
Author: Julien ÉLIE
Date: Tue, 21 Mar 2017 09:39
36 lines
2667 bytes
Hi Michael,

>> OK, let's use a separate registry.
>
> I have included it like this in Version 2 to show how it would look
> like.

A suggestion to conform with Section 4.2 (point 4) of RFC 5226 about 
guidelines for IANA Considerations Section in RFCs would be to add 
something like:

Any name that conforms to the syntax of a Netnews Cancel-Lock algorithm 
(Section 2) can be used.  Especially, Netnews Cancel-Lock algorithms are 
named by strings consisting of lowercase letters, digits and/or hyphens.


This way, IANA will add that comment in a note in the registry.



Also, Section 5.2 of RFC 5226 mentions the way to update existing 
registrations.  I think you should add a subsection like 8.1.3 of RFC 
8054 to notably say that Netnews Cancel-Lock algorithm registrations 
MUST NOT be deleted and that when they are no longer believed 
appropriate for use, they can be declared OBSOLETE by a change to their 
"intended usage" field.  Of course, you can add any other thing you deem 
appropriate in the subsection.

-- 
Julien ÉLIE

« PowerPoint allows speakers to pretend that they are giving a real
   talk, and audiences to pretend that they are listening. » (Edward R.
   Tufte, _The Cognitive Style of PowerPoint_)

Re: New draft for Cancel-Lock (IETF terminology for header fields)
#87660
Author: Michael Bäuerle
Date: Fri, 24 Mar 2017 18:23
28 lines
2296 bytes
Julien ÉLIE wrote:
> 
> [...]
> In Section 3.2:
> "and automatically add working Cancel-Key header fields for such articles"
> => and automatically add a working Cancel-Key header field or extend an 
> existing one for such articles?
> 
> Incidentally, shouldn't an "Extending a Cancel-Key header field to a 
> proto-article" subsection be added to the document (and therefore 
> Section 3.3 be slighty reworded)?

There is now a separate section
"Extending the Cancel-Key header field of a proto-article"
in Version 3.

> Also, could you please check the use of "header field" and "header 
> field body"?
> IETF terminology should be followed.  Have a look at these errata for 
> RFCs 5536 and 5537:
>   https://www.rfc-editor.org/errata_search.php?rfc=5536&eid=1979
>   https://www.rfc-editor.org/errata_search.php?rfc=5537&eid=1980
> 
> [...]

Changed in Version 3.

New draft for Cancel-Lock (Whitespace at beginning of header field bodies) (was: New draft for Cancel-Lock)
#87661
Author: Michael Bäuerle
Date: Fri, 24 Mar 2017 18:26
27 lines
2393 bytes
Julien ÉLIE wrote:
> Michael Bäuerle wrote:
> > Julien ÉLIE wrote:
> > > 
> > > And I think whitespace should be allowed.
> > > What do you think of:
> > > 
> > >       cancel-lock  = "Cancel-Lock:" SP c-lock-list CRLF
> > >       c-lock-list  = *WSP c-lock *( FWS c-lock ) *WSP
> > >       c-lock       = scheme ":" code-string
> > 
> > Because you voted against preserving the old syntax in Section 6,
> > I have backward compatibility concerns if we remove CFWS.
> > But the comments look like a less important detail and I propose to push
> > this issue back to the tail of the queue and discuss it later.
> 
> Is there a special reason for not allowing *WSP at the beginning and at 
> the end of <c-lock-list> (and <c-key-list>)?
> Most of (if not all) header fields are constructed this way per RFC 5536.
> Simon's draft defines <Cancel-Lock-content> (without CRLF for instance) 
> and not the whole header, and is based on one of the first drafts of 
> RFC 5536.  So I believe *WSP is expected.

Whitespace is now allowed at the beginning of <c-lock-list> and
<c-key-list> in Version 3.

Re: New draft for Cancel-Lock (Comments in CFWS)
#87663
Author: Michael Bäuerle
Date: Fri, 24 Mar 2017 18:40
53 lines
3381 bytes
Julien ÉLIE wrote:
> Michael Bäuerle wrote
> > 
> > [...]
> > Arguments to forbid comments:
> > - Easier to parse
> > - Comments are not widely used
> > - If articles with "Cancel-Key" header field really must be buffered
> >   (because the target article has not arrived yet), there is the
> >   possibility that such fields are parsed several times (for every
> >   accepted article in worst case for a bad implementation).
> >   => Easier to parse is faster to parse and consumes less ressources.
> > - The document from Simon was only a draft, never a standard
> > 
> > Argument to preserve comments:
> > - Backward compatibility
> >   As noted in my other article I received many comments from the german
> >   hierarchy that backward compatibility should be considered as very
> >   important. Therefore we should think twice before removing something
> >   that was allowed in the past.
> > 
> > I see no way to solve the backward compatibility problem without
> > defining the current syntax as mandatory for the old SHA1 scheme in
> > Section 6.
> 
> Are there really Cancel-Lock implementations currently sending comments?
> I doubt such implementations exist (and therefore comments are manual 
> edits of the header field).

But we can't be sure, the comments were allowed in the past.

> So either you could say something like RFC 5536 writes for the 
> References header field:
> 
>    o  Comments in CFWS between message identifiers can cause
>       interoperability problems, so comments SHOULD NOT be generated but
>       MUST be accepted.
> 
> or use FWS instead of CFWS in the ABNF syntax :)
> 
> I would of course vote for FWS if I'm asked.  But I'm also fine with 
> your wish to keep the legacy grammar.
> 
> However, I prefer that the choice be consistent for all the schemes, 
> and not sha1-specific.

I have used the conservative variant for Version 3 (Comments allowed,
but SHOULD NOT be generated).

Therefore the option for whitespace at the beginning of the header field
bodies is now "SP [CFWS]" (same as for "References").

Re: New draft for Cancel-Lock (Calculating the key data)
#87674
Author: Michael Bäuerle
Date: Mon, 27 Mar 2017 16:05
47 lines
2751 bytes
Julien ÉLIE wrote:
> 
> Hi Michael,
> 
> When calculating the key data (Section 4), only the use of the 
> Message-ID and the secret key is suggested.
> In the case of injecting agents, wouldn't it be good to suggest to also 
> use the login of the authenticated user?
> 
> K = HMAC(mid, login+sec)
> for instance (where HMAC is computed over the data <mid>, using as the 
> secret key the concatenation of <login> [if known] and <sec>).

Yes, other people have suggested this too.

> I took the idea from Alexander's implementation:
> 
> http://svn.schnuerpel.eu/viewvc.cgi/trunk/lib/Schnuerpel/INN/CancelLock.pm?view=markup&root=schnuerpel
> 
> MIME::Base64::encode(
>     Digest::HMAC_SHA1::hmac_sha1($message_id, $user . CANCEL_LOCK), ''
> );

Version 3 now contain the following calculation:
| 
| K = HMAC(uid+mid, sec)

I have used <uid> instead of <login> because this looks more similar to
<mid> (both are "id"entifiers).

I have used concatenation with <mid> instead of <sec>, so that the local
secret <sec> is still directly feeded as key into HMAC.
In addition <uid> may be easily predictable, if it is e.g. the name of
the user.
Otherwise the length considerations below in the same section may be
confusing.

> Incidentally, I see that md5 is supported in his implementation.
> I therefore believe that md5 should be mentioned in <obs-scheme> and 
> added in the registry, marked as OBSOLETE.
 
I have added the registry entry marked OBSOLETE, but not the entry
for <obs-scheme>.

I think "SHOULD still accept" should not apply to this unused algorithm.

Page 1 of 2 • 69 total messages
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