On Wed, Jan 08, 2014 at 08:48:09AM -0800, Paul Hoffman wrote:

> In the real world, there are few users who have LHS user names
> that are more than 30 (or maybe even 20) characters long. What you
> are proposing is "base32 but not really base32" and that could
> introduce errors in libraries looking up the names.

This encoding of localparts to DNS labels is one way only, to
generate query domain labels.  It is not used to encode data that
the consumer will need to decode.  If so, completely standard
encoding routines can be used to generate the base32 text, but the
output can be easily truncated at the first "=" sign.

There is no need to force up to 6 bytes of needless padding into
write-only DNS labels.

> >     OZUWW5DPOI======
> > 
> > This seems rather wasteful.
> 
> Relative to, say, the size of a PKIX certificate? :-) 

You're right in  absolute terms, it is of course just 1-6 bytes of
waste.  In relative terms however, given the limits on label lengths
and DNS name lengths, every byte can count when you're close to
the limit.  The limits for X.509 certs are much more generous, they
to fit (as a complete chain) into a 16KiB SSL record.

> > One way to get around the length limit would be to break up long
> > encoded strings into multiple labels at each 32 bytes of output
> > (which decode to 20 bytes of input).
> >
> > [...]
> > 
> > Allowing for significantly longer local parts (ultimately limited
> > by the total length of a DNS fqdn when combined with the relevant
> > suffix derived from the domain part).
> 
> I think this is vast overkill for a rarely-needed use case, but
> I'm open to hear where people think LHS names longer than 35
> characters are used in places where S/MIME or PGP are also used.

I think we need to hear from some users with Spanish names who use
full names as local parts.  At previous employer IIRC we had
something along the lines of:

    Ferndando.Fernando.Fernandez@...

which is 28 bytes, perhaps 8 more is not as uncommon as we think,
but I have no examples.  Perhaps the histogram showing username
lengths at this link is useful:

http://www.eph.co.uk/resources/email-address-length-faq/#emailwildlength

The uptick around 30 bytes is interesting, but there is no indication
of sample size, and we don't how representative their dataset is.

-- 
        Viktor.
_______________________________________________
dane mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/dane

Reply via email to