4 SPEC - Spec not finalized
17 Things we'd like to do in 0.2.0.x:
18 - See also Flyspray tasks.
19 - See also all items marked XXXX020 and DOCDOC in the code
20 - https://www.torproject.org/eff/legal-faq.html#License doesn't mention
21 licenses for other components of the bundles.
23 - Before the feature freeze: (Nick)
24 o Support for preconfigured mirror lists
25 o Use a pre-shipped fallback consensus.
26 o Code to install a pre-defined fallback consensus
27 o Download consensuses (et al) via if-modified-since
28 o Implement backend support for sending if-modified-since
29 o Use it for consensuses.
30 D Use it for certificates
31 o base Guard flag on WFU rather than on MTBF.
32 o Change guard calculation
34 o What should we do about hosts that have been up for only 1 hour,
35 but have been up for 100% of that one hour? -NM
36 Perhaps the guard flag should only be assigned if the measurement
37 period for that server is at least some large period, like a
38 week; but ignore this exception if "most" servers have too-short
39 measurement periods. -RD
40 D 118 if feasible and obvious
41 D Maintain a skew estimate and use ftime consistently.
42 - 105+TLS, if possible.
44 - Need to get a finished proposal 105
45 o "Pick a version" function
46 o Have a 'waiting_for_version' state.
47 o Store version in or_connection_t.
48 o Generate netinfo cells
49 o Accept netinfo cells
50 . Add an is_canonical field to or_connection_t.
51 o Set it when we get a match in the netinfo.
52 o Set it when we get a match for a routerinfo we have.
53 - Don't extend a circuit over a noncanonical connection with
55 o Version negotiation: send a version cell and enter
56 waiting-for-version; when version cell arrives, pick version
57 and send netinfo and be "open".
58 o On netinfo, warn if there's skew from a server.
59 - Learn our outgoing IP address from netinfo cells?
60 - Earliest stages of 110 (infinite-length) in v2 protocol:
61 add support for RELAY_EARLY.
63 - Need to get a finished TLS normalization proposal
64 - Revised authentication.
66 - Have a 'waiting_for_authentication' state.
67 - Only do version negotiation if we use the normalized TLS.
69 o if you load (nick says receive/set/anything) a consensus that's
70 in the future, then log about skew.
71 o should change the "skew complaint" to specify in largest units
72 rather than just seconds.
73 o Learn new authority IPs from consensus/certs.
76 - Before the feature freeze: (Roger)
77 - Make tunnelled dir conns use begin_dir if enabled
78 - make bridge users fall back from bridge authority to direct attempt
80 - get more v3 authorities before 0.2.0.x comes out.
81 - brainstorm about who those should be
84 - Bug reports Roger has heard along that way that don't have enough
85 details/attention to solve them yet.
86 - tup said that when he set FetchUselessDescriptors, after
87 24 or 48 hours he wasn't fetching any descriptors at all
88 anymore. This was in 0.2.0 but worked fine in 0.1.2.
89 - arma noticed that when his network went away and he tried
90 a new guard node and the connect() syscall failed to it,
91 the guard wasn't being marked as down. 0.2.0.x.
92 - after being without network for 12 hours, arma's tor decided
93 it couldn't fetch any network statuses, and never tried again
94 even when the network came back and arma clicked on things.
96 - phobos says relaybandwidth* sometimes don't do what we expect.
97 http://interloper.org/tmp/2007-06-bw-usage.png
98 - this notion of authorities notifying servers that they're
99 unreachable is bunk -- it's leftover from the time when all
100 servers ran 24/7. now it triggers every time a server goes
101 away and then returns before the old descriptor has expired.
102 o add a --quiet commandline option that suppresses logs. useful
103 for --hashed-password and maybe others.
104 - Tor logs the libevent version on startup, for debugging purposes.
105 This is great. But it does this before configuring the logs, so
106 it only goes to stdout and is then lost.
107 - we should do another bandwidth test every 12 hours or something
108 if we're showing less than 50KB and our bandwidthrate says we can
109 do more than that. I think some servers are forgetting the results
110 of their first test, and then never seeing use.
113 o 101: Voting on the Tor Directory System (plus 103)
114 o Handle badly timed certificates properly.
115 o Start caching consensus documents once authorities make them;
116 start downloading consensus documents once caches serve
118 o Code to delay next download while fetching certificates to verify
119 a consensus we already got.
120 o Code to retry consensus download if we got one we already have.
121 D Use if-modified-since on consensus download
122 o Use if-modified-since on certificate download
124 - GETINFO to get consensus
125 - Event when new consensus arrives
126 - 105: Version negotiation for the Tor protocol
127 . 111: Prioritize local traffic over relayed.
128 - Merge into tor-spec.txt.
131 . Make cells get buffered on circuit, not on the or_conn.
132 . Switch to pool-allocation for cells?
133 - Benchmark pool-allocation vs straightforward malloc.
134 - Adjust memory allocation logic in pools to favor a little less
136 . Remove socketpair-based bridges conns, and the word "bridge". (Use
137 shared (or connected) buffers for communication, rather than sockets.)
139 - Handle rate-limiting on directory writes to linked directory
140 connections in a more sensible manner.
141 - Find more ways to test this.
142 o Do TLS rotation less often than "every 10 minutes" in the thrashy case.
143 D Do TLS connection rotation more often than "once a week" in the
145 D Streamline how we pick entry nodes: Make choose_random_entry() have
146 less magic and less control logic.
147 - Refactor networkstatus generation:
148 - Include "v" line in getinfo values.
151 . Bridges users (rudimentary version)
152 o Ability to specify bridges manually
153 o Config option 'UseBridges' that bridge users can turn on.
154 o uses bridges as first hop rather than entry guards.
155 o if you don't have any routerinfos for your bridges, or you don't
156 like the ones you have, ask a new bridge for its server/authority.
157 . Ask all directory questions to bridge via BEGIN_DIR.
158 - use the bridges for dir fetches even when our dirport is open.
159 R - drop 'authority' queries if they're to our own identity key; accept
161 X Design/implement the "local-status" or something like it, from the
162 "Descriptor purposes: how to tell them apart" section of
163 http://archives.seul.org/or/dev/May-2007/msg00008.html
164 o timeout and retry schedules for fetching bridge descriptors
165 - give extend_info_t a router_purpose again
166 o react faster to download networkstatuses after the first bridge
168 o be more robust to bridges being marked as down and leaving us
169 stranded without any known "running" bridges.
170 - Bridges operators (rudimentary version)
171 - Ability to act as dir cache without a dir port.
172 o Bridges publish to bridge authorities
173 o Fix BEGIN_DIR so that you connect to bridge of which you only
174 know IP (and optionally fingerprint), and then use BEGIN_DIR to learn
176 - look at server_mode() and decide if it always applies to bridges too.
177 - Bridges authorities (rudimentary version)
178 o Rudimentary "do not publish networkstatus" option for bridge
180 - Clients can ask bridge authorities for more bridges.
182 o Clients can ask bridge authorities for updates on known bridges.
183 - More TLS normalization work: make Tor less easily
185 - Directory system improvements
187 - Make BEGIN_DIR mandatory for asking questions of bridge authorities?
189 - Features (other than bridges):
190 - Audit how much RAM we're using for buffers and cell pools; try to
192 - Base relative control socket paths on datadir.
193 o We should ship with a list of stable dir mirrors -- they're not
194 trusted like the authorities, but they'll provide more robustness
195 and diversity for bootstrapping clients.
196 X Implement this as a list of routerstatus, like fake_routerstatus in
197 trusted_dir_derver_t?
198 o Implemented as a fallback networkstatus consensus.
199 o Better estimates in the directory of whether servers have good uptime
200 (high expected time to failure) or good guard qualities (high
202 o AKA Track uptime as %-of-time-up, as well as time-since-last-down
204 o Make uptime info persist too.
205 o Base Guard on weighted fractional uptime.
206 - Make TrackHostExits expire TrackHostExitsExpire seconds after their
207 *last* use, not their *first* use.
208 - Limit to 2 dir, 2 OR, N SOCKS connections per IP.
209 - Or maybe close connections from same IP when we get a lot from one.
210 - Or maybe block IPs that connect too many times at once.
211 D add an AuthDirBadexit torrc option if we decide we want one.
214 N - Hack up a client that gives out weird/no certificates, so we can
215 test to make sure that this doesn't cause servers to crash.
218 - can we deprecate 'getinfo network-status'?
219 - can we deprecate the FastFirstHopPK config option?
223 - Quietly document NT Service options
224 - More prominently, we should have a recommended apps list.
225 - recommend pidgin (gaim is renamed)
226 - unrecommend IE because of ftp:// bug.
227 - we should add a preamble to tor-design saying it's out of date.
228 . Document transport and natdport in a good HOWTO.
229 - Publicize torel. (What else?
230 . Finish path-spec.txt
233 P - Can we switch to polipo?
234 P - Make documentation realize that location of system configuration file
235 will depend on location of system defaults, and isn't always /etc/torrc.
236 P - Figure out why dll's compiled in mingw don't work right in WinXP.
237 - Create packages for Nokia 800, requested by Chris Soghoian
238 P - Consider creating special Tor-Polipo-Vidalia test packages,
239 requested by Dmitri Vitalev
240 o Get Vidalia supporting protocolinfo and using auth by default.
241 P - create a "make win32-bundle" for vidalia-privoxy-tor-torbutton
244 Nice-to-have items for 0.2.0.x, time permitting:
246 - we try to build 4 test circuits to break them over different
247 servers. but sometimes our entry node is the same for multiple
248 test circuits. this defeats the point.
251 - switch out privoxy in the bundles and replace it with polipo.
252 - make the new tls handshake blocking-resistant.
253 - figure out some way to collect feedback about what countries are using
254 bridges, in a way that doesn't screw anonymity too much.
255 - let tor dir mirrors proxy connections to the tor download site, so
256 if you know a bridge you can fetch the tor software.
257 - more strategies for distributing bridge addresses in a way that
258 doesn't rely on knowing somebody who runs a bridge for you.
259 - A way to adjust router status flags from the controller. (How do we
260 prevent the authority from clobbering them soon afterward?)
261 - Bridge authorities should do reachability testing but only on the
262 purpose==bridge descriptors they have.
263 - Clients should estimate their skew as median of skew from servers
265 - Investigate RAM use in Tor servers.
266 - Start on the WSAENOBUFS solution.
268 Deferred from 0.2.0.x:
270 - 113: Simplifying directory authority administration
271 - 110: prevent infinite-length circuits (phase one)
272 - 118: Listen on and advertise multiple ports:
273 - Tor should be able to have a pool of outgoing IP addresses that it is
274 able to rotate through. (maybe. Possible overlap with proposal 118.)
275 - config option to publish what ports you listen on, beyond
276 ORPort/DirPort. It should support ranges and bit prefixes (?) too.
277 (This is very similar to proposal 118.)
279 - Internal code support for ipv6:
280 o Clone ipv6 functions (inet_ntop, inet_pton) where they don't exist.
281 - Most address variables need to become tor_addr_t
282 - Teach resolving code how to handle ipv6.
283 - Teach exit policies about ipv6 (consider ipv4/ipv6 interaction!)
285 - Let controller set router flags for authority to transmit, and for
287 - add an 'exit-address' line in the descriptor for servers that exit
288 from something that isn't their published address.
289 - More work on AvoidDiskWrites?
293 - MAYBE kill stalled circuits rather than stalled connections. This is
294 possible thanks to cell queues, but we need to consider the anonymity
296 - Implement TLS shutdown properly when possible.
298 - If the client's clock is too far in the past, it will drop (or just not
299 try to get) descriptors, so it'll never build circuits.
301 - Make resolves no longer use edge_connection_t unless they are actually
302 _on_ a socks connection: have edge_connection_t and (say)
303 dns_request_t both extend an edge_stream_t, and have p_streams and
304 n_streams both be linked lists of edge_stream_t.
305 - Generate torrc.{complete|sample}.in, tor.1.in, the HTML manual, and the
306 online config documentation from a single source.
307 - Move all status info out of routerinfo into local_routerstatus. Make
308 "who can change what" in local_routerstatus explicit. Make
309 local_routerstatus (or equivalent) subsume all places to go for "what
311 - Blocking/scanning-resistance
312 - It would be potentially helpful to https requests on the OR port by
313 acting like an HTTPS server.
314 - Do we want to maintain our own set of entryguards that we use as
315 next hop after the bridge? Open research question; let's say no
316 for 0.2.0 unless we learn otherwise.
317 - Some mechanism for specifying that we want to stop using a cached
320 - Detect correct version of libraries from autoconf script.
324 - See also Flyspray tasks.
325 - See also all OPEN/ACCEPTED proposals.
326 - See also all items marked XXXX and FFFF in the code.
329 - Our current approach to block attempts to use Tor as a single-hop proxy
330 is pretty lame; we should get a better one.
331 - Allow small cells and large cells on the same network?
332 - Cell buffering and resending. This will allow us to handle broken
333 circuits as long as the endpoints don't break, plus will allow
334 connection (tls session key) rotation.
335 - Implement Morphmix, so we can compare its behavior, complexity,
336 etc. But see paper breaking morphmix.
337 - Other transport. HTTP, udp, rdp, airhook, etc. May have to do our own
338 link crypto, unless we can bully DTLS into it.
339 - Need a relay teardown cell, separate from one-way ends.
340 (Pending a user who needs this)
341 - Handle half-open connections: right now we don't support all TCP
342 streams, at least according to the protocol. But we handle all that
343 we've seen in the wild.
344 (Pending a user who needs this)
348 X turn the received socks addr:port into a digest for setting .exit
349 - handle connect-dir streams that don't have a chosen_exit_name set.
350 - Have a "Faster" status flag that means it. Fast2, Fast4, Fast8?
351 - Add an option (related to AvoidDiskWrites) to disable directory
352 caching. (Is this actually a good idea??)
353 - Add d64 and fp64 along-side d and fp so people can paste status
354 entries into a url. since + is a valid base64 char, only allow one
355 at a time. Consider adding to controller as well.
356 - Some back-out mechanism for auto-approval on authorities
357 - a way of rolling back approvals to before a timestamp
358 - Consider minion-like fingerprint file/log combination.
359 - Have new people be in limbo and need to demonstrate usefulness
360 before we approve them.
363 - Standby/hotswap/redundant hidden services.
364 . Update the hidden service stuff for the new dir approach. (Much
365 of this will be superseded by 114.)
366 - switch to an ascii format, maybe sexpr?
367 - authdirservers publish blobs of them.
368 - other authdirservers fetch these blobs.
369 - hidserv people have the option of not uploading their blobs.
370 - you can insert a blob via the controller.
371 - and there's some amount of backwards compatibility.
372 - teach clients, intro points, and hidservs about auth mechanisms.
373 - come up with a few more auth mechanisms.
374 - auth mechanisms to let hidden service midpoint and responder filter
376 - Let each hidden service (or other thing) specify its own
378 - Hidserv offerers shouldn't need to define a SocksPort
381 X When we notice a 'Rejected: There is already a named server with
382 this nickname' message... or maybe instead when we see in the
383 networkstatuses that somebody else is Named with the name we
384 want: warn the user, send a STATUS_SERVER message, and fall back
386 - If the server is spewing complaints about raising your ulimit -n,
387 we should add a note about this to the server descriptor so other
388 people can notice too.
389 - When we hit a funny error from a dir request (eg 403 forbidden),
390 but tor is working and happy otherwise, and we haven't seen many
391 such errors recently, then don't warn about it.
394 - Implement missing status events and accompanying getinfos
396 - BAD_DIR_RESPONSE (Unexpected directory response; maybe we're behind
398 - BAD_PROXY (Bad http or https proxy)
399 - UNRECOGNIZED_ROUTER (a nickname we asked for is unavailable)
400 - Status events related to hibernation
401 - something about failing to parse our address?
402 from resolve_my_address() in config.c
403 - sketchy OS, sketchy threading
404 - too many onions queued: threading problems or slow CPU?
405 - Implement missing status event fields:
406 - TIMEOUT on CHECKING_REACHABILITY
407 - GETINFO status/client, status/server, status/general: There should be
408 some way to learn which status events are currently "in effect."
409 We should specify which these are, what format they appear in, and so
411 - More information in events:
412 - Include bandwidth breakdown by conn->type in BW events.
413 - Change circuit status events to give more details, like purpose,
414 whether they're internal, when they become dirty, when they become
415 too dirty for further circuits, etc.
416 - Change stream status events analogously.
417 - Expose more information via getinfo:
418 - import and export rendezvous descriptors
419 - Review all static fields for additional candidates
420 - Allow EXTENDCIRCUIT to unknown server.
421 - We need some way to adjust server status, and to tell tor not to
422 download directories/network-status, and a way to force a download.
423 - Make everything work with hidden services
425 - Performance/resources
426 - per-conn write buckets
427 - separate config options for read vs write limiting
428 (It's hard to support read > write, since we need better
429 congestion control to avoid overfull buffers there. So,
430 defer the whole thing.)
431 - Look into pulling serverdescs off buffers as they arrive.
432 - Rate limit exit connections to a given destination -- this helps
433 us play nice with websites when Tor users want to crawl them; it
434 also introduces DoS opportunities.
435 - Consider truncating rather than destroying failed circuits,
436 in order to save the effort of restarting. There are security
437 issues here that need thinking, though.
438 - Handle full buffers without totally borking
439 - Rate-limit OR and directory connections overall and per-IP and
443 - Hold-open-until-flushed now works by accident; it should work by
445 - Display the reasons in 'destroy' and 'truncated' cells under
447 - Make router_is_general_exit() a bit smarter once we're sure what
449 - Automatically determine what ports are reachable and start using
450 those, if circuits aren't working and it's a pattern we
451 recognize ("port 443 worked once and port 9001 keeps not
455 - some better fix for bug #516?
456 - don't do dns hijacking tests if we're reject *:* exit policy?
457 (deferred until 0.1.1.x is less common)
460 - Servers might check certs for known-good ssl websites, and if
461 they come back self-signed, declare themselves to be
462 non-exits. Similar to how we test for broken/evil dns now.
463 - Authorities should try using exits for http to connect to some
464 URLS (specified in a configuration file, so as not to make the
465 List Of Things Not To Censor completely obvious) and ask them
466 for results. Exits that don't give good answers should have
467 the BadExit flag set.
468 - Alternatively, authorities should be able to import opinions
469 from Snakes on a Tor.
470 - More consistent error checking in router_parse_entry_from_string().
471 I can say "banana" as my bandwidthcapacity, and it won't even squeak.
472 - Bind to random port when making outgoing connections to Tor servers,
473 to reduce remote sniping attacks.
474 - Audit everything to make sure rend and intro points are just as
475 likely to be us as not.
476 - Do something to prevent spurious EXTEND cells from making
477 middleman nodes connect all over. Rate-limit failed
478 connections, perhaps?
479 - DoS protection: TLS puzzles, public key ops, bandwidth exhaustion.
482 - Now that we're avoiding exits when picking non-exit positions,
483 we need to consider how to pick nodes for internal circuits. If
484 we avoid exits for all positions, we skew the load balancing. If
485 we accept exits for all positions, we leak whether it's an
486 internal circuit at every step. If we accept exits only at the
487 last hop, we reintroduce Lasse's attacks from the Oakland paper.
489 - Windows server usability
490 - Solve the ENOBUFS problem.
491 - make tor's use of openssl operate on buffers rather than sockets,
492 so we can make use of libevent's buffer paradigm once it has one.
493 - make tor's use of libevent tolerate either the socket or the
494 buffer paradigm; includes unifying the functions in connect.c.
495 - We need a getrlimit equivalent on Windows so we can reserve some
496 file descriptors for saving files, etc. Otherwise we'll trigger
497 asserts when we're out of file descriptors and crash.
498 - Merge code from Urz into libevent
499 - Make Tor use evbuffers.
502 - a way to generate the website diagrams from source, so we can
503 translate them as utf-8 text rather than with gimp. (svg? or
505 . Flesh out options_description array in src/or/config.c
506 . multiple sample torrc files
507 . figure out how to make nt service stuff work?
509 - Refactor tor man page to divide generally useful options from
511 - Add a doxygen style checker to make check-spaces so nick doesn't drift
512 too far from arma's undocumented styleguide. Also, document that
513 styleguide in HACKING. (See r9634 for example.)
514 - exactly one space at beginning and at end of comments, except i
515 guess when there's line-length pressure.
516 - if we refer to a function name, put a () after it.
517 - only write <b>foo</b> when foo is an argument to this function.
518 - doxygen comments must always end in some form of punctuation.
519 - capitalize the first sentence in the doxygen comment, except
521 - avoid spelling errors and incorrect comments. ;)
524 - The Debian package now uses --verify-config when (re)starting,
525 to distinguish configuration errors from other errors. Perhaps
526 the RPM and other startup scripts should too?
527 - add a "default.action" file to the tor/vidalia bundle so we can
528 fix the https thing in the default configuration:
529 http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ#PrivoxyWeirdSSLPort
532 - Patch privoxy and socks protocol to pass strings to the browser.
535 Documentation, non-version-specific.
537 - Mark up spec; note unclear points about servers
538 NR - write a spec appendix for 'being nice with tor'
539 - Specify the keys and key rotation schedules and stuff
540 - Mention controller libs someplace.
541 - Remove need for HACKING file.
542 P - document http://wiki.noreply.org/noreply/TheOnionRouter/TransparentProxy on freebsd and osx
543 P - figure out why x86_64 won't build rpms from tor.spec
544 P - figure out spec files for bundles of vidalia-tor-polipo
545 P - figure out polipo install scripts for bundles of vidalia-tor-polipo on osx, win32
546 P - figure out selinux policy for tor
547 P - change packaging system to more automated and specific for each
548 platform, suggested by Paul Wouter
549 P - Setup repos for redhat and suse rpms & start signing the rpms the
550 way package management apps prefer
553 J - tor-in-the-media page
554 P - Figure out licenses for website material.
555 (Phobos reccomends the Open Publication License at
556 http://opencontent.org/openpub/)
557 P - put the logo on the website, in source form, so people can put it on
558 stickers directly, etc.
559 P - put the source image for the stickers on the website, so people can
561 P - figure out a license for the logos and docs we publish (trademark
563 (Phobos reccomends the Open Publication License at
564 http://opencontent.org/openpub/)
565 R - make a page with the hidden service diagrams.
566 P - ask Jan/Jens to be the translation coordinator? add to volunteer page.
567 - add a page for localizing all tor's components.
568 - It would be neat if we had a single place that described _all_ the
569 tor-related tools you can use, and what they give you, and how well they
570 work. Right now, we don't give a lot of guidance wrt
571 torbutton/foxproxy/privoxy/polipo in any consistent place.
574 - make a mailing list with the mirror operators
575 - make an automated tool to check /project/trace/ at mirrors to
576 learn which ones are lagging behind.
577 - auto (or manually) cull the mirrors that are broken; and
578 contact their operator?
579 - a set of instructions for mirror operators to make their apaches
580 serve our charsets correctly, and bonus points for language
582 - figure out how to load-balance the downloads across mirrors?
583 - ponder how to get users to learn that they should google for
584 "tor mirrors" if the main site is blocked.
585 - find a mirror volunteer to coordinate all of this