TODO 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  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. bug fixes, necessary:
  13. - Why is the first entry of kill -USR1 a router with a 0 key?
  14. - why does common/util.c build-depend on or/or.h ?
  15. bug fixes, might be handy:
  16. - put expiry date on onion-key, so people don't keep trying
  17. old ones that they could know are expired?
  18. - should the running-routers list put unverified routers at the
  19. end?
  20. - make advertised_server_mode() ORs fetch dirs more often.
  21. - if a begin failed due to exit policy, but we believe the IP
  22. should have been allowed, switch that router to exitpolicy
  23. reject *:* until we get our next directory.
  24. - Tors deal appropriately when a newly-verified router has the
  25. same nickname as another router they know about
  26. - ORs use uniquer default nicknames
  27. - Handle full buffers without totally borking
  28. - Add '[...truncated]' or similar to truncated log entries (like the directory
  29. in connection_dir_process_inbuf()).
  30. protocol changes and design work:
  31. - put ip:port in intro points, rendezvous points, and hidserv
  32. descriptors.
  33. - figure out what to do when somebody asks to extend to
  34. ip:port:differentkey
  35. more features, easy:
  36. - check the date in the http headers, compare for clock skew.
  37. - requiredentrynode vs preferredentrynode
  38. - per-month byte allowances
  39. - tor-resolve needs a man page
  40. - "AllowUnverifiedRouters" config option
  41. - Parse it into a bitvector
  42. - Consider it when picking nodes for your path
  43. - have a pool of circuits available, cannibalize them
  44. for your purposes (e.g. rendezvous, etc).
  45. more features, complex:
  46. - defining an ORPort isn't necessary anymore, if you use
  47. ORAddress:port. Same with DirPort, SocksPort.
  48. - compress the directory. client sends http header
  49. "accept-transfer-encoding: gzip", server might send http header
  50. "transfer-encoding: gzip". ta-da.
  51. - grow a zlib dependency. keep a cached compressed directory.
  52. - Switch dirservers entries to config lines:
  53. - read in and parse each TrustedDir config line.
  54. - stop reading dirservers file.
  55. - add some default TrustedDir lines if none defined, or if
  56. no torrc.
  57. - remove notion of ->is_trusted_dir from the routerlist. that's
  58. no longer where you look.
  59. - clean up router parsing flow, since it's simpler now?
  60. - when checking signature on a directory, look it up in
  61. options.TrustedDirs, and make sure there's a descriptor
  62. with that nickname, whose key hashes to the fingerprint,
  63. and who correctly signed the directory.
  64. - when fetching a directory, if you want a trusted one,
  65. choose from the trusteddir list.
  66. - which means keeping track of which ones are "up"
  67. - if you don't need a trusted one, choose from the routerinfo
  68. list if you have one, else from the trusteddir list.
  69. - add a listener for a ui
  70. - and a basic gui
  71. - Have clients and dirservers preserve reputation info over
  72. reboots.
  73. - users can set their bandwidth, or we auto-detect it:
  74. - advertised bandwidth defaults to 10KB
  75. o advertised bandwidth is the min of max seen in each direction
  76. in the past N seconds.
  77. o calculate this
  78. o not counting "local" connections
  79. - round detected bandwidth up to nearest 10KB
  80. - client software not upload descriptor until:
  81. - you've been running for an hour
  82. - it's sufficiently satisfied with its bandwidth
  83. - it decides it is reachable
  84. - start counting again if your IP ever changes.
  85. - never regenerate identity keys, for now.
  86. - you can set a bit for not-being-an-OR.
  87. - clients choose nodes proportional to advertised bandwidth
  88. - authdirserver lists you as running iff:
  89. - he can connect to you
  90. - he has successfully extended to you
  91. - you have sufficient mean-time-between-failures
  92. blue sky:
  93. - Possible to get autoconf to easily install things into ~/.tor?
  94. ongoing:
  95. . rename/rearrange functions for what file they're in
  96. - generalize our transport: add transport.c in preparation for
  97. http, airhook, etc transport.
  98. For September:
  99. NICK . Windows port
  100. o works as client
  101. - deal with pollhup / reached_eof on all platforms
  102. . robust as a client
  103. . works as server
  104. - can be configured
  105. - robust as a server
  106. . Usable as NT service
  107. - docs for building in win
  108. - installer
  109. - Docs
  110. - FAQ
  111. o overview of tor. how does it work, what's it do, pros and
  112. cons of using it, why should I use it, etc.
  113. - a howto tutorial with examples
  114. o tutorial: how to set up your own tor network
  115. - (need to not hardcode dirservers file in config.c)
  116. . correct, update, polish spec
  117. - document the exposed function api?
  118. o document what we mean by socks.
  119. NICK . packages
  120. . rpm
  121. - find a long-term rpm maintainer
  122. - code
  123. - better warn/info messages
  124. o let tor do resolves.
  125. o extend socks4 to do resolves?
  126. o make script to ask tor for resolves
  127. - tsocks
  128. o gather patches, submit to maintainer
  129. - intercept gethostbyname and others
  130. o do resolve via tor
  131. - redesign and thorough code revamp, with particular eye toward:
  132. - support half-open tcp connections
  133. - conn key rotation
  134. - other transports -- http, airhook
  135. - modular introduction mechanism
  136. - allow non-clique topology
  137. Other details and small and hard things:
  138. - tor should be able to have a pool of outgoing IP addresses
  139. that it is able to rotate through. (maybe)
  140. - tie into squid
  141. - hidserv offerers shouldn't need to define a SocksPort
  142. - when the client fails to pick an intro point for a hidserv,
  143. it should refetch the hidserv desc.
  144. . should maybe make clients exit(1) when bad things happen?
  145. e.g. clock skew.
  146. - should retry exitpolicy end streams even if the end cell didn't
  147. resolve the address for you
  148. . Make logs handle it better when writing to them fails.
  149. o Dirserver shouldn't put you in running-routers list if you haven't
  150. uploaded a descriptor recently
  151. . Refactor: add own routerinfo to routerlist. Right now, only
  152. router_get_by_nickname knows about 'this router', as a hack to
  153. get circuit_launch_new to do the right thing.
  154. . Scrubbing proxies
  155. - Find an smtp proxy?
  156. . Get socks4a support into Mozilla
  157. - Need a relay teardown cell, separate from one-way ends.
  158. - Make it harder to circumvent bandwidth caps: look at number of bytes
  159. sent across sockets, not number sent inside TLS stream.
  160. - fix router_get_by_* functions so they can get ourselves too,
  161. and audit everything to make sure rend and intro points are
  162. just as likely to be us as not.
  163. ***************************Future tasks:****************************
  164. Rendezvous and hidden services:
  165. make it fast:
  166. - preemptively build and start rendezvous circs.
  167. - preemptively build n-1 hops of intro circs?
  168. - cannibalize general circs?
  169. make it reliable:
  170. - standby/hotswap/redundant services.
  171. - store stuff to disk? dirservers forget service descriptors when
  172. they restart; nodes offering hidden services forget their chosen
  173. intro points when they restart.
  174. make it robust:
  175. - auth mechanisms to let midpoint and bob selectively choose
  176. connection requests.
  177. make it scalable:
  178. - right now the hidserv store/lookup system is run by the dirservers;
  179. this won't scale.
  180. Tor scalability:
  181. Relax clique assumptions.
  182. Redesign how directories are handled.
  183. - Separate running-routers lookup from descriptor list lookup.
  184. - Resolve directory agreement somehow.
  185. - Cache directory on all servers.
  186. Find and remove bottlenecks
  187. - Address linear searches on e.g. circuit and connection lists.
  188. Reputation/memory system, so dirservers can measure people,
  189. and so other people can verify their measurements.
  190. - Need to measure via relay, so it's not distinguishable.
  191. Bandwidth-aware path selection. So people with T3's are picked
  192. more often than people with DSL.
  193. Reliability-aware node selection. So people who are stable are
  194. preferred for long-term circuits such as intro and rend circs,
  195. and general circs for irc, aim, ssh, etc.
  196. Let dissidents get to Tor servers via Tor users. ("Backbone model")
  197. Anonymity improvements:
  198. Is abandoning the circuit the only option when an extend fails, or
  199. can we do something without impacting anonymity too much?
  200. Is exiting from the middle of the circuit always a bad idea?
  201. Helper nodes. Decide how to use them to improve safety.
  202. DNS resolution: need to make tor support resolve requests. Need to write
  203. a script and an interface (including an extension to the socks
  204. protocol) so we can ask it to do resolve requests. Need to patch
  205. tsocks to intercept gethostbyname, else we'll continue leaking it.
  206. Improve path selection algorithms based on routing-zones paper. Be sure
  207. to start and end circuits in different ASs. Ideally, consider AS of
  208. source and destination -- maybe even enter and exit via nearby AS.
  209. Intermediate model, with some delays and mixing.
  210. Add defensive dropping regime?
  211. Make it more correct:
  212. Handle half-open connections: right now we don't support all TCP
  213. streams, at least according to the protocol. But we handle all that
  214. we've seen in the wild.
  215. Support IPv6.
  216. Efficiency/speed/robustness:
  217. Congestion control. Is our current design sufficient once we have heavy
  218. use? Need to measure and tweak, or maybe overhaul.
  219. Allow small cells and large cells on the same network?
  220. Cell buffering and resending. This will allow us to handle broken
  221. circuits as long as the endpoints don't break, plus will allow
  222. connection (tls session key) rotation.
  223. Implement Morphmix, so we can compare its behavior, complexity, etc.
  224. Use cpuworker for more heavy lifting.
  225. - Signing (and verifying) hidserv descriptors
  226. - Signing (and verifying) intro/rend requests
  227. - Signing (and verifying) router descriptors
  228. - Signing (and verifying) directories
  229. - Doing TLS handshake (this is very hard to separate out, though)
  230. Buffer size pool: allocate a maximum size for all buffers, not
  231. a maximum size for each buffer. So we don't have to give up as
  232. quickly (and kill the thickpipe!) when there's congestion.
  233. Exit node caching: tie into squid or other caching web proxy.
  234. Other transport. HTTP, udp, rdp, airhook, etc. May have to do our own
  235. link crypto, unless we can bully openssl into it.
  236. P2P Tor:
  237. Do all the scalability stuff above, first.
  238. Incentives to relay. Not so hard.
  239. Incentives to allow exit. Possibly quite hard.
  240. Sybil defenses without having a human bottleneck.
  241. How to gather random sample of nodes.
  242. How to handle nodelist recommendations.
  243. Consider incremental switches: a p2p tor with only 50 users has
  244. different anonymity properties than one with 10k users, and should
  245. be treated differently.