Implement Prop #260: Single Onion Services
commitb560f852f220f5630f6bf5a300d15b40c9c235cf
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Thu, 14 Jul 2016 04:04:02 +0000 (14 14:04 +1000)
committerNick Mathewson <nickm@torproject.org>
Tue, 13 Sep 2016 14:10:54 +0000 (13 10:10 -0400)
tree8f245dab0172516b01f5617adb0c856ed991a0f2
parentb494ccc3c91423c4280c1fc003b5117d9aae54c0
Implement Prop #260: Single Onion Services

Add experimental OnionServiceSingleHopMode and
OnionServiceNonAnonymousMode options. When both are set to 1, every
hidden service on a tor instance becomes a non-anonymous Single Onion
Service. Single Onions make one-hop (direct) connections to their
introduction and renzedvous points. One-hop circuits make Single Onion
servers easily locatable, but clients remain location-anonymous.
This is compatible with the existing hidden service implementation, and
works on the current tor network without any changes to older relays or
clients.

Implements proposal #260, completes ticket #17178. Patch by teor & asn.

squash! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Implement Prop #260: Single Onion Services

Redesign single onion service poisoning.

When in OnionServiceSingleHopMode, each hidden service key is poisoned
(marked as non-anonymous) on creation by creating a poison file in the
hidden service directory.

Existing keys are considered non-anonymous if this file exists, and
anonymous if it does not.

Tor refuses to launch in OnionServiceSingleHopMode if any existing keys
are anonymous. Similarly, it refuses to launch in anonymous client mode
if any existing keys are non-anonymous.

Rewrite the unit tests to match and be more comprehensive.
Adds a bonus unit test for rend_service_load_all_keys().
19 files changed:
changes/feature17178 [new file with mode: 0644]
doc/tor.1.txt
src/or/circuitbuild.c
src/or/circuitstats.c
src/or/config.c
src/or/config.h
src/or/connection_edge.c
src/or/directory.c
src/or/directory.h
src/or/main.c
src/or/or.h
src/or/rendclient.c
src/or/rendclient.h
src/or/rendcommon.c
src/or/rendcommon.h
src/or/rendservice.c
src/or/rendservice.h
src/test/test_hs.c
src/test/test_options.c