TODO 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. Legend:
  2. SPEC!! - Not specified
  3. SPEC - Spec not finalized
  4. NICK - nick claims
  5. ARMA - arma claims
  6. - Not done
  7. * Top priority
  8. . Partially done
  9. o Done
  10. D Deferred
  11. X Abandoned
  12. For 0.0.9.6:
  13. - Server instructions for OSX and Windows operators.
  14. - Audit all changes to bandwidth buckets for integer over/underflow.
  15. For 0.1.0.x:
  16. Refactoring and infrastructure:
  17. N . Switch to libevent
  18. - Hold-open-until-flushed now works by accident; it should work by
  19. design.
  20. - The logic for reading from TLS sockets is likely to overrun the
  21. bandwidth buckets under heavy load. (Really, the logic was
  22. never right in the first place.) Also, we should audit all users
  23. of get_pending_bytes().
  24. - Find a way to make sure we have libevent 1.0 or later.
  25. - Log which poll method we're using.
  26. . Check return from event_set, event_add, event_del.
  27. - Keep pushing to get a windows patch accepted.
  28. Security:
  29. - Make sure logged info is "safe"ish.
  30. Stability
  31. R - Reset uptime when IP/ORPort/... changes.
  32. Functionality
  33. N - Implement pending controller features.
  34. R . HTTPS proxy for OR CONNECT stuff. (For outgoing SSL connections to
  35. other ORs.)
  36. - Changes for forward compatibility
  37. N - If a version is later than the last in its series, but a version
  38. in the next series is recommended, that doesn't mean it's bad.
  39. - Do end reasons better
  40. - Start using RESOURCELIMIT more.
  41. - Try to use MISC a lot less.
  42. - bug: if the exit node fails to create a socket (e.g. because it
  43. has too many open), we will get a generic stream end response.
  44. - niels's "did it fail because conn refused or timeout or what"
  45. relay end feature.
  46. N - Realize that unrecognized end reasons are probably features rather than
  47. bugs. (backport to 009x)
  48. N - Start recognizing, but maybe not yet generating, more reasons and
  49. needed -- aim to eliminate misc. (backport to 009x)
  50. N - Feed end reason back into SOCK5 as reasonable.
  51. R - cache .foo.exit names better, or differently, or not.
  52. N - make !advertised_server_mode() ORs fetch dirs less often.
  53. N - Clean up NT service code even more. Document it. Enable it by default.
  54. Make sure it works.
  55. Documentation
  56. N - Document new version system.
  57. R - Correct and clarify the wiki entry on port forwarding.
  58. N - Document where OSX, windows logs go, where stuff is installed.
  59. Installers
  60. N - Vet all pending installer patches
  61. - Win32 installer plus privoxy, sockscap/freecap, etc.
  62. - Vet win32 systray helper code
  63. N - Make OSX man pages go into man directory.
  64. Correctness
  65. - Mark bugs for 010 or post 010 in bugtracker.
  66. - Bugfixes
  67. R - when we haven't explicitly sent a socks reject, sending one in
  68. connection_about_to_close_connection() fails because we never give it
  69. a chance to flush. right answer is to do the socks reply manually in
  70. each appropriate case, and then about-to-close-connection can simply
  71. warn us if we forgot one. [Tag this 010 in flyspray.]
  72. R - should retry exitpolicy end streams even if the end cell didn't
  73. resolve the address for you
  74. - Figure out when to reset addressmaps (on hup, on reconfig, etc)
  75. Improvements to self-measurement.
  76. R - round detected bandwidth up to nearest 10KB?
  77. R - client software not upload descriptor until:
  78. - you've been running for an hour
  79. - it's sufficiently satisfied with its bandwidth
  80. - it decides it is reachable
  81. - start counting again if your IP ever changes.
  82. - never regenerate identity keys, for now.
  83. - you can set a bit for not-being-an-OR.
  84. * no need to do this yet. few people define their ORPort.
  85. Arguable
  86. N - Reverse DNS: specify and implement.
  87. R - make min uptime a function of the available choices (say, choose 60th
  88. percentile, not 1 day.)
  89. R - kill dns workers more slowly
  90. R - build testing circuits? going through non-verified nodes?
  91. - config option to publish what ports you listen on, beyond ORPort/DirPort
  92. N - It would be nice to have a FirewalledIPs thing that works like
  93. FirewallPorts.
  94. - If we have a trusted directory on port 80, stop falling back to
  95. forbidden ports when fascistfirewall blocks all good dirservers.
  96. N - Code cleanup
  97. - Make configure.in handle cross-compilation
  98. - Have NULL_REP_IS_ZERO_BYTES default to 1.
  99. - Make with-ssl-dir disable search for ssl.
  100. - Efficiency/speed improvements.
  101. - Write limiting; configurable token buckets.
  102. - Make it harder to circumvent bandwidth caps: look at number of bytes
  103. sent across sockets, not number sent inside TLS stream.
  104. - Hidden service improvements
  105. - Investigate hidden service performance/reliability
  106. No
  107. - choose entry node to be one you're already connected to?
  108. - Convert man pages to pod, or whatever's right.
  109. - support hostnames as well as IPs for authdirservers.
  110. - GPSLocation optional config string.
  111. - Windows
  112. - Make millisecond accuracy work on win32
  113. - IPv6 support
  114. - teach connection_ap_handshake_socks_reply() about ipv6 and friends
  115. so connection_ap_handshake_socks_resolved() doesn't also need
  116. to know about them.
  117. - Let more config options (e.g. ORPort) change dynamically.
  118. - hidserv offerers shouldn't need to define a SocksPort
  119. * figure out what breaks for this, and do it.
  120. - Packaging
  121. - Figure out how to make the rpm not strip the binaries it makes.
  122. - Integrate an http proxy into Tor (maybe as a third class of worker
  123. process), so we can stop shipping with the beast that is Privoxy.
  124. - Implement If-Modified-Since for directories.
  125. - Big, incompatible re-architecting and decentralization of directory
  126. system.
  127. - Only the top of a directory needs to be signed.
  128. - Windows
  129. - Get a controller to launch tor and keep it on the system tray.
  130. For 0.1.1.x:
  131. Decentralizing:
  132. - self-measurement
  133. - remote measurement
  134. - remove approval crap, add blacklisting by IP
  135. - gather more permanent dirservers and put their keys into the code
  136. - ship with a master key, and implement a way to query dirservers for
  137. a blob which is a timestamped signed newest pile of dirservers. put
  138. that on disk and use it on startup rather than the built-in default.
  139. - threshold belief from clients about up-ness
  140. - a way for clients to get fresh enough server descriptors
  141. - a way for clients to partition the set of servers in a safe way:
  142. so they don't have to learn all of them but so they're not easily
  143. partitionable.
  144. Tier two:
  145. N - Handle rendezvousing with unverified nodes.
  146. - Specify: Stick rendezvous point's key in INTRODUCE cell.
  147. Bob should _always_ use key from INTRODUCE cell.
  148. - Implement.
  149. N - IPv6 support (For exit addresses)
  150. - Spec issue: if a resolve returns an IP4 and an IP6 address,
  151. which to use?
  152. - Add to exit policy code
  153. - Make tor_gethostbyname into tor_getaddrinfo
  154. - Make everything that uses uint32_t as an IP address change to use
  155. a generalize address struct.
  156. - Change relay cell types to accept new addresses.
  157. - Add flag to serverdescs to tell whether IPv6 is supported.
  158. - Security fixes
  159. - christian grothoff's attack of infinite-length circuit.
  160. the solution is to have a separate 'extend-data' cell type
  161. which is used for the first N data cells, and only
  162. extend-data cells can be extend requests.
  163. - Code cleanup
  164. - fix router_get_by_* functions so they can get ourselves too,
  165. and audit everything to make sure rend and intro points are
  166. just as likely to be us as not.
  167. - tor should be able to have a pool of outgoing IP addresses
  168. that it is able to rotate through. (maybe)
  169. Packaging, docs, etc:
  170. - Exit node caching: tie into squid or other caching web proxy.
  171. Deferred until needed:
  172. - Do something to prevent spurious EXTEND cells from making middleman
  173. nodes connect all over. Rate-limit failed connections, perhaps?
  174. - Limit to 2 dir, 2 OR, N SOCKS connections per IP.
  175. - Handle full buffers without totally borking
  176. * do this eventually, no rush.
  177. - Rate-limit OR and directory connections overall and per-IP and
  178. maybe per subnet.
  179. - DoS protection: TLS puzzles, public key ops, bandwidth exhaustion.
  180. - Have clients and dirservers preserve reputation info over
  181. reboots.
  182. - authdirserver lists you as running iff:
  183. - he can connect to you
  184. - he has successfully extended to you
  185. - you have sufficient mean-time-between-failures
  186. * keep doing nothing for now.
  187. - Include HTTP status messages in logging (see parse_http_response).
  188. Blue sky or deferred indefinitely:
  189. - Support egd or other non-OS-integrated strong entropy sources
  190. - password protection for on-disk identity key
  191. - Possible to get autoconf to easily install things into ~/.tor?
  192. - server descriptor declares min log level, clients avoid servers
  193. that are too loggy.
  194. - put expiry date on onion-key, so people don't keep trying
  195. old ones that they could know are expired?
  196. - Add a notion of nickname->Pubkey binding that's not 'verification'
  197. - Conn key rotation.
  198. - Need a relay teardown cell, separate from one-way ends.
  199. Big tasks that would demonstrate progress:
  200. - Facility to automatically choose long-term helper nodes; perhaps
  201. on by default for hidden services.
  202. - patch privoxy and socks protocol to pass strings to the browser.
  203. - patch tsocks with our current patches + gethostbyname, getpeername, etc.
  204. - make freecap (or whichever) do what we want.
  205. - scrubbing proxies for protocols other than http.
  206. - Find an smtp proxy?
  207. . Get socks4a support into Mozilla
  208. - figure out enclaves, e.g. so we know what to recommend that people
  209. do, and so running a tor server on your website is helpful.
  210. - Do enclaves for same IP only.
  211. - Resolve first, then if IP is an OR, extend to him first.
  212. - implement a trivial fun gui to demonstrate our control interface.
  213. ************************ Roadmap for 2004-2005 **********************
  214. Hard problems that need to be solved:
  215. - Separating node discovery from routing.
  216. - Arranging membership management for independence.
  217. Sybil defenses without having a human bottleneck.
  218. How to gather random sample of nodes.
  219. How to handle nodelist recommendations.
  220. Consider incremental switches: a p2p tor with only 50 users has
  221. different anonymity properties than one with 10k users, and should
  222. be treated differently.
  223. - Measuring performance of other nodes. Measuring whether they're up.
  224. - Choosing exit node by meta-data, e.g. country.
  225. - Incentives to relay; incentives to exit.
  226. - Allowing dissidents to relay through Tor clients.
  227. - How to intercept, or not need to intercept, dns queries locally.
  228. - Improved anonymity:
  229. - Experiment with mid-latency systems. How do they impact usability,
  230. how do they impact safety?
  231. - Understand how powerful fingerprinting attacks are, and experiment
  232. with ways to foil them (long-range padding?).
  233. - Come up with practical approximations to picking entry and exit in
  234. different routing zones.
  235. - Find ideal churn rate for helper nodes; how safe is it?
  236. - What info squeaks by Privoxy? Are other scrubbers better?
  237. - Attacking freenet-gnunet/timing-delay-randomness-arguments.
  238. - Is abandoning the circuit the only option when an extend fails, or
  239. can we do something without impacting anonymity too much?
  240. - Is exiting from the middle of the circuit always a bad idea?
  241. Sample Publicity Landmarks:
  242. - we have N servers / N users
  243. - we have servers at epic and aclu and foo
  244. - hidden services are robust and fast
  245. - a more decentralized design
  246. - tor win32 installer works
  247. - win32 tray icon for end-users
  248. - tor server works on win32
  249. - win32 service for servers
  250. - mac installer works
  251. ***************************Future tasks:****************************
  252. Rendezvous and hidden services:
  253. make it fast:
  254. o preemptively build and start rendezvous circs.
  255. o preemptively build n-1 hops of intro circs?
  256. o cannibalize general circs?
  257. make it reliable:
  258. - standby/hotswap/redundant services.
  259. - store stuff to disk? dirservers forget service descriptors when
  260. they restart; nodes offering hidden services forget their chosen
  261. intro points when they restart.
  262. make it robust:
  263. - auth mechanisms to let midpoint and bob selectively choose
  264. connection requests.
  265. make it scalable:
  266. - robust decentralized storage for hidden service descriptors.
  267. make it accessible:
  268. - web proxy gateways to let normal people browse hidden services.
  269. Tor scalability:
  270. Relax clique assumptions.
  271. Redesign how directories are handled.
  272. - Resolve directory agreement somehow.
  273. Find and remove bottlenecks
  274. - Address linear searches on e.g. circuit and connection lists.
  275. Reputation/memory system, so dirservers can measure people,
  276. and so other people can verify their measurements.
  277. - Need to measure via relay, so it's not distinguishable.
  278. Let dissidents get to Tor servers via Tor users. ("Backbone model")
  279. Make it more correct:
  280. Handle half-open connections: right now we don't support all TCP
  281. streams, at least according to the protocol. But we handle all that
  282. we've seen in the wild.
  283. Support IPv6.
  284. Efficiency/speed/robustness:
  285. Congestion control. Is our current design sufficient once we have heavy
  286. use? Need to measure and tweak, or maybe overhaul.
  287. Allow small cells and large cells on the same network?
  288. Cell buffering and resending. This will allow us to handle broken
  289. circuits as long as the endpoints don't break, plus will allow
  290. connection (tls session key) rotation.
  291. Implement Morphmix, so we can compare its behavior, complexity, etc.
  292. Use cpuworker for more heavy lifting.
  293. - Signing (and verifying) hidserv descriptors
  294. - Signing (and verifying) intro/rend requests
  295. - Signing (and verifying) router descriptors
  296. - Signing (and verifying) directories
  297. - Doing TLS handshake (this is very hard to separate out, though)
  298. Buffer size pool: allocate a maximum size for all buffers, not
  299. a maximum size for each buffer. So we don't have to give up as
  300. quickly (and kill the thickpipe!) when there's congestion.
  301. Other transport. HTTP, udp, rdp, airhook, etc. May have to do our own
  302. link crypto, unless we can bully openssl into it.