<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 8 April 2017 at 03:23, Yawning Angel <span dir="ltr"><<a href="mailto:yawning@schwanenlied.me" target="_blank">yawning@schwanenlied.me</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Fri, 7 Apr 2017 11:44:03 +0100<br>
Alec Muffett <<a href="mailto:alec.muffett@gmail.com">alec.muffett@gmail.com</a>> wrote:<br>
> If I was in charge, I would say that we risk overthinking this, and it<br>
> would be better to:<br>
><br>
</span>>    - mandate use of fully DNS-compliant syntax, including but not<br>
<span class="gmail-">> limited to: acceptable max length, max label length, charset and<br>
> composition<br>
<br>
</span>Fully DNS-compliant only limits max length and max label length, unless<br>
there's something that supersedes RFC 2181.</blockquote><div><br></div><div>You have an excellent point, and I remember fondly the happy days at Sun's Network Security Group when I would set the name of my workstation to "#" in DNS and use it to break into people's machines because ".rhosts" did not support comment characters in the way that people expected.</div><div><br></div><div>However: on this conference call it was made abundantly clear to all present - one could almost hear fingers being wagged - that it would be a bad thing for Onion addresses to (1) contain anything other than alphanumerics and non-leading-hyphens, (2) collide with IDNs and PunyCode.</div><div><br></div><div>Now: I flatly do not know where this is documented; it may possibly be some intersection of DNS and HTTP RFCs, and if we want to take the approach that "everything should be permitted unless it is explicitly forbidden!" then yes we should go chase those documents down so that we have rationales for our self-imposed bondage.</div><div><br></div><div>However if we want to seek the path of least resistance and effort, the answer is obvious to any seasoned network administrator:</div><div><br></div><div>* alphanumeric</div><div><div>* (whatever DNS label length)</div></div><div><div>* (whatever DNS overall length)</div></div><div>* single, and only single, dots at label separators</div><div>* single, and only single, hyphens as spacers</div><div>* (i'm trying to think if there are any more obvious constraints, but can't)</div><div><br></div><div>...which will traipse merrily through any system one cares to name.  </div><div><br></div><div>I am purposely leaving specific "label" and "overall" lengths out of this list because although the correct figures are googleable, they tend to trigger citation wars and off-by-one arguments so it's safer to discuss them symbolically. </div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I intentionally left a lot of this unspecified because one of the use<br>
cases I envisioned was an "/etc/hosts" analog that lets users easily:<br>
<br>
 * Stick all their hidden services under their own name hierarchy.<br>
<br>
   eg: git.yawning -> <long public key>.onion<br></blockquote><div> </div><div>(...elided...)</div><div><br></div><div>That's a lovely idea; one more to add to the mix is the process documented at:</div><div><br></div><div><a href="https://github.com/alecmuffett/the-onion-diaries/blob/master/basic-production-onion-server.md">https://github.com/alecmuffett/the-onion-diaries/blob/master/basic-production-onion-server.md</a><br></div><div><br></div><div>...of hijacking addresses out of the DHCP network space and using them to configure interfaces with genuine, resolvable Onion names.  It makes SSH and Apache configuration really clear when you can use the genuine onion address in configuration ("Listen") directives, etc.</div><div><br></div><div>But then that's /etc/hosts - that's *not* what goes to a Certificate authority to be signed, and it's the latter that the committees get exercised about.</div><div><br></div><div>Onion addresses are not really hostnames, they're a machine-readable number a-la IPv4 and IPv6, which - by amazing, fantastic fortitude - happen to be exactly compliant with DNS which means that subdomains "work" where they protocol passes them along in (eg: "Host:" header) metadata.  </div><div><br></div><div>The Elders of the Internet (TM) did not have the wisdom to see that "www.127.0.0.1" would be a useful thing; they put everything into tidy buckets - layer 3 goes here, directory lookup goes there - and at the outset broke decentralisation and imposed hierarchy by means of user expectation. </div><div><br></div><div>Whomever the clever person was who unbroke it by making tordaemon ignore "subdomains" should be honoured - they (accidentally?) re-merged the two namespaces and - so long as Tor walks the knife-edge of being compliant in both namespaces - then Onion addressing is in an amazing position:</div><div><br></div><div>* all the browser technologies which assume DNS can work without modification</div><div>* this includes availability of HTTPS certificates <br></div><div>* and therefore all future web technologies like WebRTC</div><div>* but the addresses are end-to-end and self-created, thus obviating the whip-hand of DNS censorship</div><div>* and onion services are effectively "published" (X.25 did similar) reducing attack surfaces without firewalls / intermediation</div><div>* intermediation which Tor bypasses anyway, because NAT-punching / Rendezvous, etc.</div><div><br></div><div>It's hard to express how amazing this situation is; it's really like winding the clock back to the 1980s and getting a whole new network architecture, for free, which supports all the modern bells and whistles, all because of the Host header, SSL-compliance and fake onion subdomains.</div><div><br></div><div>This is why it's essential to get this right. :-)</div><div><br></div><div>Yawning wrote a bunch of stuff here, but I am gonna elide it and sent this message to see if it changes anything, and then revisit.</div><div><br></div><div>I'll just finish by saying that I am very excited about:</div><div><br></div><div>  www.somethingexceefinglylonggoeshereandwearenotreallysureaboutformat.onion</div><div><br></div><div>...because we can complain about usability, but this ^- is the first step on the moon. This is the awesome thing.</div><div><br></div><div>Hyphenation, readability studies, boutique & frou-frou name schemes invented at the Tech University of Mercedes-Benz, and other shooting ourselves in the foot can, and should, come later. :-)</div><div><br></div><div>    -a</div></div><div><br></div>-- <br><div class="gmail_signature"><a href="http://dropsafe.crypticide.com/aboutalecm" target="_blank">http://dropsafe.crypticide.com/aboutalecm</a><br></div>
</div></div>