TODO 15 KB

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