[{"author": "Paul Hoffman", "text": "<p>Waving to y'all from my room, so I don't infect any of you.</p>", "time": "2025-03-20T06:00:55Z"}, {"author": "Tim Wicinski", "text": "<p>Is everyone in DNSOP sick ?</p>", "time": "2025-03-20T06:05:27Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>Oh, that sounds bad! Best of luck to everyone!</p>", "time": "2025-03-20T06:06:04Z"}, {"author": "Yorgos Thessalonikefs", "text": "<p>True for multiple interpretations of sick</p>", "time": "2025-03-20T06:06:06Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>For the records, implementations already impose such limit on number of collisions today - we had to after KeyTrap was revealed.</p>", "time": "2025-03-20T06:10:56Z"}, {"author": "Jim Reid", "text": "<p>Of course we're sick Tim. That's why we go to dnsop. :-)</p>", "time": "2025-03-20T06:12:41Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p><span aria-label=\"laughing\" class=\"emoji emoji-1f606\" role=\"img\" title=\"laughing\">:laughing:</span></p>", "time": "2025-03-20T06:13:07Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>Yeah, partitioning seems sufficient to me!</p>", "time": "2025-03-20T06:14:52Z"}, {"author": "Paul Hoffman", "text": "<p>Shumon just said \"blockchain\" without saying \"blockchain\". Fortunately, he was joking.</p>", "time": "2025-03-20T06:15:07Z"}, {"author": "Michael StJohns", "text": "<p>would it make more sense to fix the problem by new DNSKEY and RRSIG records?  longer tail to deploy, but less hackery..</p>", "time": "2025-03-20T06:15:30Z"}, {"author": "Donald Eastlake", "text": "<p>Why not just return a new error code to an update that tries to creat a duplicate tag?</p>", "time": "2025-03-20T06:17:20Z"}, {"author": "Michael StJohns", "text": "<p>what jim said..</p>", "time": "2025-03-20T06:17:21Z"}, {"author": "Ond\u0159ej Sur\u00fd", "text": "<p>Michael, I was going to say that. If we need bump in the algorithm number, we can as well change the ID to be hash and not 16-bit number</p>", "time": "2025-03-20T06:18:09Z"}, {"author": "Michael StJohns", "text": "<p>I'm actually suggesting new versions of the two different RR types...</p>", "time": "2025-03-20T06:19:04Z"}, {"author": "John Levine", "text": "<p>When this came up last fall, I went through all the zones in .COM and looked at the key tags. In 150M zones all of the key collisions fit on one slide. There were no three-way collisions.</p>", "time": "2025-03-20T06:19:25Z"}, {"author": "Ray Bellis", "text": "<p>@Ondrej that's a change in wire and presentation format...</p>", "time": "2025-03-20T06:20:25Z"}, {"author": "John Levine", "text": "<p>I'm with Jim, the problem is solved enough already. We need to limit the work for keytrap, and limiting the number of keys to 1 rather than say 3 seems like a trivial optimization</p>", "time": "2025-03-20T06:20:38Z"}, {"author": "Michael StJohns", "text": "<p>@jl - where do you put the enforcement point(s)?</p>", "time": "2025-03-20T06:21:04Z"}, {"author": "John Levine", "text": "<p>It's yet another place where resolvers limit the work they're willing to do.</p>", "time": "2025-03-20T06:21:47Z"}, {"author": "John Levine", "text": "<p>You can still have 100 RRSIGs with the same keytag if  you're malicious</p>", "time": "2025-03-20T06:22:06Z"}, {"author": "Jim Reid", "text": "<p>A validator could just give up if the first keytag it uses doesn't validate.</p>", "time": "2025-03-20T06:22:14Z"}, {"author": "John Levine", "text": "<p>In this draft would you also forbid multiple RRSIGs with the same tag? Why or why not?</p>", "time": "2025-03-20T06:22:36Z"}, {"author": "Michael StJohns", "text": "<p>so fail if you see more than 1 key? does that in itself open a DOS problem?</p>", "time": "2025-03-20T06:22:47Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>Indeed, that's the problem today.</p>", "time": "2025-03-20T06:22:53Z"}, {"author": "Benjamin Schwartz", "text": "<p>I think an N=3 limit and an N=1 limit are quite different and would garner very different reactions.</p>", "time": "2025-03-20T06:23:06Z"}, {"author": "Ond\u0159ej Sur\u00fd", "text": "<p>I think this can fit such into existing RDATA format, we don\u2019t need new RTYPEs.</p>", "time": "2025-03-20T06:23:10Z"}, {"author": "Warren Kumari", "text": "<p>Colliding Keytags have caused other issues -- I once copied the wrong key file during a migration (because I looked at the tag) and deleted the \"right\" key, screwing up my zone...</p>", "time": "2025-03-20T06:23:21Z"}, {"author": "John Levine", "text": "<p>I'd fail after 2 keys, which allows the few existing collisions</p>", "time": "2025-03-20T06:23:23Z"}, {"author": "Yorgos Thessalonikefs", "text": "<p><span class=\"user-mention\" data-user-id=\"645\">@Jim Reid</span> , indeed but this draft will make this mandatory. Not all implementation responded the same way to keytrap.</p>", "time": "2025-03-20T06:23:39Z"}, {"author": "Warren Kumari", "text": "<p>Yes, that was <em>clearly</em> my stupidity, but it's still a pointy edge...</p>", "time": "2025-03-20T06:24:08Z"}, {"author": "Ond\u0159ej Sur\u00fd", "text": "<p>I don\u2019t have a problem with this particular draft though. It more or less documents what we are doing now.</p>", "time": "2025-03-20T06:24:26Z"}, {"author": "Ray Bellis", "text": "<p>@Ondrej keytags are defined as 2 bytes, not variable length with a length field</p>", "time": "2025-03-20T06:24:43Z"}, {"author": "Michael StJohns", "text": "<p>you get around collisions by either picking your point, or having a large enough space that collisions are generally avoidable given an index generator with a smooth distribution profile</p>", "time": "2025-03-20T06:25:02Z"}, {"author": "Ond\u0159ej Sur\u00fd", "text": "<p>Warren, no, this is fair example of real world consequences.</p>", "time": "2025-03-20T06:25:13Z"}, {"author": "Ond\u0159ej Sur\u00fd", "text": "<p>@Ray, for the <em>current algorithms</em></p>", "time": "2025-03-20T06:25:34Z"}, {"author": "John Levine", "text": "<p><span class=\"user-mention silent\" data-user-id=\"240\">Warren Kumari</span> <a href=\"#narrow/stream/114-dnsop/topic/ietf-122/near/158229\">said</a>:</p>\n<blockquote>\n<p>Yes, that was <em>clearly</em> my stupidity, but it's still a pointy edge...</p>\n</blockquote>\n<p>If you want to prohibit dup tags in your own zones, sure, go wild.</p>", "time": "2025-03-20T06:25:50Z"}, {"author": "Ray Bellis", "text": "<p>no, _for the current DS and RRSIG records_</p>", "time": "2025-03-20T06:26:04Z"}, {"author": "Warren Kumari", "text": "<p>Yup. I like BIND's \"oh, huh, turns out I've already got that tag. Meh, throw it away and try again\" approach</p>", "time": "2025-03-20T06:27:02Z"}, {"author": "Jim Reid", "text": "<p>Ondrej, Warren's \"fair example\" seems to be a corner case of a corner case to me. YMMV.</p>", "time": "2025-03-20T06:27:19Z"}, {"author": "Michael StJohns", "text": "<p>if the issue is that a malicious zone owner can create many keys with the same key tag.... and it's going to take years to fix the resolvers who are trying all keys with the matching tags, then how is this draft going to fix that problem?</p>", "time": "2025-03-20T06:28:07Z"}, {"author": "Michael StJohns", "text": "<p>never mind - rhetorical question...</p>", "time": "2025-03-20T06:28:30Z"}, {"author": "Jim Reid", "text": "<p>Not just malicious zone owners Mike. DNS has lots of incompetent/stupid zone owners, myself included.</p>", "time": "2025-03-20T06:29:59Z"}, {"author": "Warren Kumari", "text": "<p>For a (local, signal) signer, is there really a downside to just generating a new key if it happens that it collides with an existing one? Generating a new key is currently cheap, and avoids dummies like me from cutting myself. This is somewhat orthogonal to solving the larger problem, but feels like a cheap, friendly usability win.</p>", "time": "2025-03-20T06:30:49Z"}, {"author": "Michael StJohns", "text": "<p>yeah - but I figure your stupidity is benign! :-)</p>", "time": "2025-03-20T06:30:56Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>@Michael If they don't have a limit then they are vulnerable to CVE-2023-50387 <span aria-label=\"man shrugging\" class=\"emoji emoji-1f937-200d-2642\" role=\"img\" title=\"man shrugging\">:man_shrugging:</span></p>\n<p>What this draft is proposing is already implemented in some form or shape.</p>", "time": "2025-03-20T06:30:59Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>LOL, I don't know how the second emoji got in there.</p>", "time": "2025-03-20T06:31:19Z"}, {"author": "Michael StJohns", "text": "<p>@warren - I'd really prefer fixing the protocol to avoid a dependence on the zone owner doing \"the right thing\" for some value of right thing.....</p>", "time": "2025-03-20T06:32:31Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>Funnily enough the multi-signer collision problem goes away with DNSKEYINCLUDE proposed in DELEG WG. With that in place even real multi-signer will be concerned only with its own keytags and does not need to bother with other signers.</p>", "time": "2025-03-20T06:32:31Z"}, {"author": "Jim Reid", "text": "<p>You're right Warren. That can be done without making protocol changes and adding code to DNS servers.</p>", "time": "2025-03-20T06:32:59Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>@Warren indeed that is what BIND is doing for 20+ years, as Mark already mentioned.</p>", "time": "2025-03-20T06:33:41Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>IIRC Knot DNS did not use to enforce that from the very beginning but they have added the same keyid-collision-avoidance later on.</p>", "time": "2025-03-20T06:36:02Z"}, {"author": "John Levine", "text": "<p><span class=\"user-mention\" data-user-id=\"435\">@Michael StJohns</span> We have a zillion cases where resolvers have limits for when zone owners do the wrong thing. Why is this one special?</p>", "time": "2025-03-20T06:39:17Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>My favorite quote from RFC1034 page 35:</p>\n<blockquote>\n<p>The recommended<br>\npriorities for the resolver designer are:</p>\n</blockquote>\n<blockquote>\n<p>1. Bound the amount of work ... EVEN IF SOMEONE HAS INCORRECTLY CONFIGURED SOME DATA.</p>\n</blockquote>", "time": "2025-03-20T06:40:52Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>Emphasis by P. Mockapetris <span aria-label=\"wink\" class=\"emoji emoji-1f609\" role=\"img\" title=\"wink\">:wink:</span></p>", "time": "2025-03-20T06:41:31Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>We like seeing you Paul!</p>", "time": "2025-03-20T06:42:21Z"}, {"author": "Shane Kerr", "text": "<p>I like YAML (yes, I know it's not perfect)... <span aria-label=\"see no evil\" class=\"emoji emoji-1f648\" role=\"img\" title=\"see no evil\">:see_no_evil:</span></p>", "time": "2025-03-20T06:45:07Z"}, {"author": "Duane Wessels", "text": "<p>Petr (or Mark) can you say a little more about how BIND implements key tag collision avoidance?  Is it at key generation time?  or zone loading time?  Or is it something in the resolver?</p>", "time": "2025-03-20T06:46:27Z"}, {"author": "Mark Andrews", "text": "<p>key generation time.</p>", "time": "2025-03-20T06:47:44Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>Key generator refuses to generate key with conflicting key tag. Validator explodes if it encounters more than N failed RRSIG validation attempts, effectively limiting usage of keytag collisions.</p>", "time": "2025-03-20T06:47:45Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>And I intentionally don't specify the N as it might wary. Beauty of not having a standard for this!</p>", "time": "2025-03-20T06:48:24Z"}, {"author": "Duane Wessels", "text": "<p>Thank you</p>", "time": "2025-03-20T06:48:36Z"}, {"author": "Mark Andrews", "text": "<p>We might get unknown type support implemented as a side effect of this.</p>", "time": "2025-03-20T06:51:03Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>That would be lovely. Perhaps it should specify all types as RFC 3597 syntax internally!</p>", "time": "2025-03-20T06:51:47Z"}, {"author": "Michael StJohns", "text": "<p>@petr - just to be clear -  at key generation you have to check the database of existing keys to avoid collision?</p>", "time": "2025-03-20T06:51:49Z"}, {"author": "Mark Andrews", "text": "<p>yes</p>", "time": "2025-03-20T06:52:09Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>Yes, that's what we do in BIND.</p>", "time": "2025-03-20T06:52:11Z"}, {"author": "Mark Andrews", "text": "<p>We use files with the key tag in the name.</p>", "time": "2025-03-20T06:52:33Z"}, {"author": "Mark Andrews", "text": "<p>to store the private part.</p>", "time": "2025-03-20T06:52:52Z"}, {"author": "Mark Andrews", "text": "<p>and to sort handles into hsms</p>", "time": "2025-03-20T06:53:11Z"}, {"author": "Mark Andrews", "text": "<p>store</p>", "time": "2025-03-20T06:53:20Z"}, {"author": "Michael StJohns", "text": "<p>so you prohibit key tag collisions even across different algorithms?</p>", "time": "2025-03-20T06:53:34Z"}, {"author": "Mark Andrews", "text": "<p>no.  the file name has the algorithm number as well</p>", "time": "2025-03-20T06:54:03Z"}, {"author": "Mark Andrews", "text": "<p>Kdv.isc.org.+005+54547.key</p>", "time": "2025-03-20T06:54:29Z"}, {"author": "Mark Andrews", "text": "<p>Kdv.isc.org.+005+54547.private</p>", "time": "2025-03-20T06:54:39Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>Perhaps look at manual if you want BIND details: <a href=\"https://bind9.readthedocs.io/en/v9.21.6/dnssec-guide.html#generate-keys\">https://bind9.readthedocs.io/en/v9.21.6/dnssec-guide.html#generate-keys</a></p>", "time": "2025-03-20T06:55:15Z"}, {"author": "Duane Wessels", "text": "<p>I remember that dnssec-keygen also avoids future collisions for revoked keys.  Maybe the draft should mention that.</p>", "time": "2025-03-20T06:55:30Z"}, {"author": "Michael StJohns", "text": "<p>so all of this is actually outside of the DNS protocol - it's part of your zone management tools?  Is there enforcement in the zone serving code?</p>", "time": "2025-03-20T06:55:38Z"}, {"author": "Michael StJohns", "text": "<p>(oh yeah - revoked keys have different keytags... :-) )</p>", "time": "2025-03-20T06:55:56Z"}, {"author": "Mark Andrews", "text": "<p>We don't enforce when serving</p>", "time": "2025-03-20T06:56:30Z"}, {"author": "Mark Andrews", "text": "<p>but all the signing code does</p>", "time": "2025-03-20T06:57:04Z"}, {"author": "Michael StJohns", "text": "<p>would it be possible to serve a zone with collisions if you crafted it with tools other than yours?</p>", "time": "2025-03-20T06:57:57Z"}, {"author": "Mark Andrews", "text": "<p>yes</p>", "time": "2025-03-20T06:58:20Z"}, {"author": "Michael StJohns", "text": "<p>k... thanks.</p>", "time": "2025-03-20T06:58:30Z"}, {"author": "Mark Andrews", "text": "<p>We can always all more checks when loading / transferring a zone.</p>", "time": "2025-03-20T06:58:55Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>You can, but it will not validate if you exceed the magical \"N\" limit.</p>", "time": "2025-03-20T06:58:57Z"}, {"author": "Michael StJohns", "text": "<p>you're assuming a resolver with the appropriate fix... I'm not..</p>", "time": "2025-03-20T06:59:32Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>The point is, there is a lot of installed base which enforces this. So colliding key tags do not work reliably today anyway.</p>", "time": "2025-03-20T07:04:08Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>I sense a new DNSKEY flag :grin:</p>", "time": "2025-03-20T07:07:47Z"}, {"author": "Jim Reid", "text": "<p>Nah. DNSKEY2? :-)</p>", "time": "2025-03-20T07:08:56Z"}, {"author": "Philip Homburg", "text": "<p>Just go to protocol 4...</p>", "time": "2025-03-20T07:11:09Z"}, {"author": "Shumon Huque", "text": "<p>Note that the keytrap authors did also propose minting a new dnskey rrtype (IDKEY I think) to enforce collision free key tag semantics. That might have been a cleaner solution I agree Mike, but it would also take much longer to deploy, and as Petr and others have pointed out, we're already part way to collision free with the existing RRtypes anyway.</p>", "time": "2025-03-20T07:13:45Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p><a href=\"https://www.iana.org/assignments/special-use-domain-names/special-use-domain-names.xhtml#special-use-domain\">https://www.iana.org/assignments/special-use-domain-names/special-use-domain-names.xhtml#special-use-domain</a> contains <a href=\"http://10.in-addr.arpa\">10.in-addr.arpa</a>. Internal is technically the same...</p>", "time": "2025-03-20T07:20:39Z"}, {"author": "Brett Carr", "text": "<p>Yes should be worked on here, we need to put this to bed, it's gone on far too long</p>", "time": "2025-03-20T07:24:53Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>+1 to Warren and Brett</p>", "time": "2025-03-20T07:25:12Z"}, {"author": "Duane Wessels", "text": "<p>+1 to Petr's +1 to Warren and Brett</p>", "time": "2025-03-20T07:25:33Z"}, {"author": "Richard Wilhelm", "text": "<p>+1 should be worked on and should be added</p>", "time": "2025-03-20T07:25:46Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>:trollface: So start WGLC today?</p>", "time": "2025-03-20T07:26:07Z"}, {"author": "Tommy Jensen", "text": "<p>@Petr may as well since nobody does in-depth review until then anyway <span aria-label=\"shrug\" class=\"emoji emoji-1f937\" role=\"img\" title=\"shrug\">:shrug:</span></p>", "time": "2025-03-20T07:27:03Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>Oh I agree with Mark. <a href=\"http://10.in-addr.arpa\">10.in-addr.arpa</a> does that, we should replicate it.</p>", "time": "2025-03-20T07:28:00Z"}, {"author": "Jim Reid", "text": "<p>@richard, IMO it's not clear if there's anything to work on.</p>", "time": "2025-03-20T07:28:41Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>OTOH for onion. it is perhaps a good it fails validation as it should not _DNS_ at all. Onion is not a non-public DNS subtree - it is actually a non-DNS.</p>", "time": "2025-03-20T07:29:46Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>(Heh, that's a lot of negation in that sentence.)</p>", "time": "2025-03-20T07:30:10Z"}, {"author": "Mark Andrews", "text": "<p>I think we need DNSSEC questions to be added to special use</p>", "time": "2025-03-20T07:30:22Z"}, {"author": "Petr \u0160pa\u010dek", "text": "<p>Good idea indeed.</p>", "time": "2025-03-20T07:30:33Z"}, {"author": "Mark Andrews", "text": "<p>Well an insecure delegation</p>", "time": "2025-03-20T07:30:37Z"}]