Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-06-14 Thread nusenu
Christian Hofer: > On Tue, 2020-06-09 at 23:54 +0200, nusenu wrote: >>> However, thinking about it, DNSSEC might be useful for caching DNS >>> records on the client side. >> >> caching has privacy implications and is therefore a risk. >> > > So you are saying that caching is not an option in any c

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-06-14 Thread Christian Hofer
On Tue, 2020-06-09 at 23:54 +0200, nusenu wrote: > > However, thinking about it, DNSSEC might be useful for caching DNS > > records on the client side. > > caching has privacy implications and is therefore a risk. > So you are saying that caching is not an option in any case, right? Can I kindly

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-06-09 Thread nusenu
> However, thinking about it, DNSSEC might be useful for caching DNS > records on the client side. caching has privacy implications and is therefore a risk. >> My vision for DNS privacy in Tor Browser: >> Be able to visit a HTTPS website without the exit relay learning what >> domain it was >>

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-06-01 Thread Christian Hofer
On Mon, 2020-05-25 at 21:23 +0200, nusenu wrote: > Christian Hofer: > > The thread model is DNS hijacking. Yes, you can prevent DNS > > hijacking > > using DoH if you *trust* the resolver you connect to. However, if > > you > > want to verify authenticity and integrity of DNS responses you need > >

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-05-25 Thread nusenu
Christian Hofer: > The thread model is DNS hijacking. Yes, you can prevent DNS hijacking > using DoH if you *trust* the resolver you connect to. However, if you > want to verify authenticity and integrity of DNS responses you need > DNSSEC. Could you elaborate on the use-case since DNS record auth

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-05-25 Thread Christian Hofer
On Sun, 2020-05-24 at 19:01 +0200, nusenu wrote: > Christian Hofer: > > On Sat, 2020-05-16 at 01:37 +0200, nusenu wrote: > > > Alexander Færøy: > > > > I wonder if it would make more sense to have an onion-aware > > > > DNSSEC-enabled resolver *outside* of the Tor binary and have a > > > > way > >

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-05-24 Thread nusenu
Christian Hofer: > On Sat, 2020-05-16 at 01:37 +0200, nusenu wrote: >> Alexander Færøy: >>> I wonder if it would make more sense to have an onion-aware >>> DNSSEC-enabled resolver *outside* of the Tor binary and have a way >>> for >>> Tor to query an external tool for DNS lookups. >> >> I'm also i

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-05-24 Thread Christian Hofer
On Sat, 2020-05-16 at 01:37 +0200, nusenu wrote: > Alexander Færøy: > > I wonder if it would make more sense to have an onion-aware > > DNSSEC-enabled resolver *outside* of the Tor binary and have a way > > for > > Tor to query an external tool for DNS lookups. > > I'm also in favor of this appro

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-05-24 Thread Christian Hofer
On Sat, 2020-05-16 at 01:37 +0200, nusenu wrote: > > I can not really say anything about how this design compares to > > other > > approaches, since I don't know how I can setup meaningful test > > scenarios to compare them. > > Do we really need test setups to discuss protocol designs > and com

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-05-24 Thread Christian Hofer
On Sat, 2020-05-16 at 01:37 +0200, nusenu wrote: > > Before we go further, can you walk me through the reasons (if you > > had thought > > of it of course) why you didn't use something like libunbound? > > > > There are side effects of adding DNSSEC client support (with our > > own > > implementat

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-05-16 Thread Christian Hofer
On Fri, 2020-05-15 at 14:30 -0400, Roger Dingledine wrote: > On Fri, May 15, 2020 at 05:39:23PM +0200, Christian Hofer wrote: > > Final remarks. When I started, I didn't expect it to get this big, > > and > > frankly, if I had known before, I might not have even started. > > However, > > I learned

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-05-15 Thread nusenu
> Before we go further, can you walk me through the reasons (if you had thought > of it of course) why you didn't use something like libunbound? > > There are side effects of adding DNSSEC client support (with our own > implementation) that we, people maintaining tor, have to become DNSSEC expert

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-05-15 Thread nusenu
> To me, extra round-trips over the Tor network in the critical path of > "user clicks and waits for the website to load" are really bad, and > need a really good argument for being there. Given that DNS is only one > piece of the connection -- after all, the exit relay can still route you > somewh

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-05-15 Thread nusenu
Alexander Færøy: > I wonder if it would make more sense to have an onion-aware > DNSSEC-enabled resolver *outside* of the Tor binary and have a way for > Tor to query an external tool for DNS lookups. I'm also in favor of this approach, and you can do this today with no code changes to tor at all

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-05-15 Thread nusenu
> I can not really say anything about how this design compares to other > approaches, since I don't know how I can setup meaningful test > scenarios to compare them. Do we really need test setups to discuss protocol designs and compare protocols with a common threat model if specs for the protoc

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-05-15 Thread Roger Dingledine
On Fri, May 15, 2020 at 05:39:23PM +0200, Christian Hofer wrote: > Final remarks. When I started, I didn't expect it to get this big, and > frankly, if I had known before, I might not have even started. However, > I learned a lot about DNS, DNSSEC, SOCKS, and Tor. So even if you > decide not to mer

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-05-15 Thread Jeremy Rand
Alexander Færøy: > Hey, > > On 2020/05/15 16:36, Jeremy Rand wrote: >> The Prop279 spec text is ambiguous about whether the target is required >> to be a .onion domain, but the implementations (TorNS and StemNS) do not >> have that restriction. TorNS and StemNS allow a Prop279 plugin to >> advert

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-05-15 Thread Alexander Færøy
Hey, On 2020/05/15 16:36, Jeremy Rand wrote: > The Prop279 spec text is ambiguous about whether the target is required > to be a .onion domain, but the implementations (TorNS and StemNS) do not > have that restriction. TorNS and StemNS allow a Prop279 plugin to > advertise acceptance of any domai

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-05-15 Thread Jeremy Rand
Alexander Færøy: > Hey Jeremy, > > On 2020/05/15 15:53, Jeremy Rand wrote: >> FYI I already wrote a Prop279 provider that looks up the names via DNS >> (it's aptly named "dns-prop279"); it does pretty much exactly what you >> describe. It doesn't handle DNSSEC validation itself (it assumes that >

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-05-15 Thread Alexander Færøy
Hey Jeremy, On 2020/05/15 15:53, Jeremy Rand wrote: > FYI I already wrote a Prop279 provider that looks up the names via DNS > (it's aptly named "dns-prop279"); it does pretty much exactly what you > describe. It doesn't handle DNSSEC validation itself (it assumes that > you've specified a DNS se

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-05-15 Thread Christian Hofer
On Fri, 2020-05-15 at 15:29 +, Alexander Færøy wrote: > Hello Christian, > Hi Alex! > On 2020/04/26 19:37, Christian Hofer wrote: > > I have a proposal regarding DNS name resolution. > > > > Ticket: https://trac.torproject.org/projects/tor/ticket/34004 > > Proposal: > > https://trac.torpro

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-05-15 Thread Jeremy Rand
Alexander Færøy: > I wonder if it would make more sense to have an onion-aware > DNSSEC-enabled resolver *outside* of the Tor binary and have a way for > Tor to query an external tool for DNS lookups. Such tool should be > allowed to use Tor itself for transport of the actual queries. One of > the

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-05-15 Thread Christian Hofer
On Thu, 2020-05-14 at 15:56 -0400, David Goulet wrote: > On 26 Apr (19:37:56), Christian Hofer wrote: > > Hi there, > > Greetings Christian! > Hi David! > > I have a proposal regarding DNS name resolution. > > > > Ticket: https://trac.torproject.org/projects/tor/ticket/34004 > > Proposal: > >

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-05-15 Thread Alexander Færøy
Hello Christian, On 2020/04/26 19:37, Christian Hofer wrote: > I have a proposal regarding DNS name resolution. > > Ticket: https://trac.torproject.org/projects/tor/ticket/34004 > Proposal: > https://trac.torproject.org/projects/tor/attachment/ticket/34004/317-secure-dns-name-resolution.txt > Im

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-05-14 Thread David Goulet
On 26 Apr (19:37:56), Christian Hofer wrote: > Hi there, Greetings Christian! > > I have a proposal regarding DNS name resolution. > > Ticket: https://trac.torproject.org/projects/tor/ticket/34004 > Proposal: > https://trac.torproject.org/projects/tor/attachment/ticket/34004/317-secure-dns-nam

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-04-27 Thread Christian Hofer
Hi nusenu, thank you for you feedback. First I would like to say that this proposal should not be regarded as final but work in progress. Second the changes are behind a feature flag and very unintrusive, so the behvior does not change without explicitly enabling them and they can be easily remov

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-04-27 Thread Nick Mathewson
On Sun, Apr 26, 2020 at 4:32 PM Christian Hofer wrote: > > Hi there, > > I have a proposal regarding DNS name resolution. > > Ticket: https://trac.torproject.org/projects/tor/ticket/34004 > Proposal: > https://trac.torproject.org/projects/tor/attachment/ticket/34004/317-secure-dns-name-resolution.

Re: [tor-dev] Support for full DNS resolution and DNSSEC validation

2020-04-26 Thread nusenu
Hi Christian, thanks for your efforts to improve DNS resolution in the tor context. A few general questions: - What is the underlying threat model and what threats you are trying to address in your proposal? - What use case are you aiming for? Do you propose to make use of this DNS resolution i

[tor-dev] Support for full DNS resolution and DNSSEC validation

2020-04-26 Thread Christian Hofer
Hi there, I have a proposal regarding DNS name resolution. Ticket: https://trac.torproject.org/projects/tor/ticket/34004 Proposal: https://trac.torproject.org/projects/tor/attachment/ticket/34004/317-secure-dns-name-resolution.txt Implementation: https://github.com/torproject/tor/pull/1869 All