TODO 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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 scalability:
  13. - Slightly smarter bandwidth management: use link capacity
  14. intelligently.
  15. - Handle full buffers without totally borking
  16. For dtor:
  17. NICK pre1:
  18. o make all ORs serve the directory too.
  19. o "AuthoritativeDir 1" for dirservers
  20. o non-authorative servers with dirport publish opt dircacheport
  21. o make clients read that and use it.
  22. o make clients able to read a normal dirport from non-trusted OR too
  23. o make ORs parse-and-keep-and-serve the directory they pull down
  24. o authoritativedirservers should pull down directories from
  25. other authdirservers, to merge descriptors.
  26. . allow dirservers to serve running-router list separately.
  27. o "get /running-routers" will fetch just this.
  28. o actually make the clients use this sometimes.
  29. o distinguish directory-is-dirty from runninglist-is-dirty
  30. - ORs keep this too, and serve it
  31. o Design: do we need running and non-running lists?
  32. o tor remembers descriptor-lists across reboots.
  33. . Packages define datadir as /var/lib/tor/. If no datadir is defined,
  34. then choose, make, and secure ~/.tor as datadir.
  35. o Adjust tor
  36. o Change torrc.sample
  37. D Change packages (not till 0.0.8 packages!)
  38. - Look in ~/.torrc if no */etc/torrc is found?
  39. o Contact info, pgp fingerprint, comments in router desc.
  40. o Add a ContactInfo line to torrc, which gets published in
  41. descriptor (as opt)
  42. o write tor version at the top of each log file
  43. pre2:
  44. . refer to things by key:
  45. o extend cells need ip:port:identitykeyhash.
  46. o Lookup routers and connections by key digest; accept hex
  47. key digest in place of nicknames.
  48. o Audit all uses of lookup-by-hostname and lookup-by-addr-port
  49. to search by digest when appropriate.
  50. o Rep-hist functions need to store info by keyid
  51. - also use this in intro points and rendezvous points, and
  52. hidserv descs. [XXXX This isn't enough.]
  53. - figure out what to do about ip:port:differentkey
  54. o ORs connect on demand. attach circuits to new connections, keep
  55. create cells around somewhere, send destroy if fail.
  56. o nickname defaults to first piece of hostname
  57. o running-routers list refers to nickname if verified, else
  58. hash-base64'ed.
  59. - Mark routers as verified or unverified based on whether
  60. running-routers list includes nickname or id hash.
  61. o put OR uptime in descriptor
  62. o name the secret-key directory something to discourage people
  63. from mailing their identity key to tor-ops
  64. pre3:
  65. - users can set their bandwidth, or we auto-detect it:
  66. - advertised bandwidth defaults to 10KB
  67. - advertised bandwidth is the min of max seen in each direction
  68. in the past N seconds.
  69. - not counting "local" connections
  70. - round detected bandwidth up to nearest 10KB
  71. - client software not upload descriptor until:
  72. - you've been running for an hour
  73. - it's sufficiently satisfied with its bandwidth
  74. - it decides it is reachable
  75. - start counting again if your IP ever changes.
  76. - never regenerate identity keys, for now.
  77. - you can set a bit for not-being-an-OR.
  78. - Reputation info needs to give better weight to recent events than
  79. very old ones.
  80. - Have clients and dirservers preserve reputation info over
  81. reboots.
  82. - clients choose nodes proportional to advertised bandwidth
  83. - authdirserver includes descriptor and lists as running iff:
  84. - he can connect to you
  85. - he has successfully extended to you
  86. - he has sufficient mean-time-between-failures
  87. - add new "Middleman 1" config variable?
  88. o if torrc not found, exitpolicy reject *:*
  89. ongoing:
  90. . rename/rearrange functions for what file they're in
  91. - generalize our transport: add transport.c in preparation for
  92. http, airhook, etc transport.
  93. For September:
  94. NICK . Windows port
  95. o works as client
  96. - deal with pollhup / reached_eof on all platforms
  97. . robust as a client
  98. . works as server
  99. - can be configured
  100. - robust as a server
  101. . Usable as NT service
  102. - docs for building in win
  103. - installer
  104. - Docs
  105. - FAQ
  106. o overview of tor. how does it work, what's it do, pros and
  107. cons of using it, why should I use it, etc.
  108. - a howto tutorial with examples
  109. o tutorial: how to set up your own tor network
  110. - (need to not hardcode dirservers file in config.c)
  111. . correct, update, polish spec
  112. - document the exposed function api?
  113. - document what we mean by socks.
  114. NICK . packages
  115. . rpm
  116. - find a long-term rpm maintainer
  117. - code
  118. - better warn/info messages
  119. o let tor do resolves.
  120. o extend socks4 to do resolves?
  121. o make script to ask tor for resolves
  122. - tsocks
  123. - gather patches, submit to maintainer
  124. - intercept gethostbyname and others, do resolve via tor
  125. - redesign and thorough code revamp, with particular eye toward:
  126. - support half-open tcp connections
  127. - conn key rotation
  128. - other transports -- http, airhook
  129. - modular introduction mechanism
  130. - allow non-clique topology
  131. Other details and small and hard things:
  132. - tor should be able to have a pool of outgoing IP addresses
  133. that it is able to rotate through. (maybe)
  134. - tie into squid
  135. - buffer size pool, to let a few buffers grow huge or many buffers
  136. grow a bit
  137. - hidserv offerers shouldn't need to define a SocksPort
  138. - when the client fails to pick an intro point for a hidserv,
  139. it should refetch the hidserv desc.
  140. . should maybe make clients exit(1) when bad things happen?
  141. e.g. clock skew.
  142. - should retry exitpolicy end streams even if the end cell didn't
  143. resolve the address for you
  144. - Add '[...truncated]' or similar to truncated log entries (like the directory
  145. in connection_dir_process_inbuf()).
  146. . Make logs handle it better when writing to them fails.
  147. o Dirserver shouldn't put you in running-routers list if you haven't
  148. uploaded a descriptor recently
  149. . Refactor: add own routerinfo to routerlist. Right now, only
  150. router_get_by_nickname knows about 'this router', as a hack to
  151. get circuit_launch_new to do the right thing.
  152. . Scrubbing proxies
  153. - Find an smtp proxy?
  154. . Get socks4a support into Mozilla
  155. - Extend by hostname, not by IP.
  156. - Need a relay teardown cell, separate from one-way ends.
  157. - Make it harder to circumvent bandwidth caps: look at number of bytes
  158. sent across sockets, not number sent inside TLS stream.
  159. - fix router_get_by_* functions so they can get ourselves too,
  160. and audit everything to make sure rend and intro points are
  161. just as likely to be us as not.
  162. ***************************Future tasks:****************************
  163. Rendezvous and hidden services:
  164. make it fast:
  165. - preemptively build and start rendezvous circs.
  166. - preemptively build n-1 hops of intro circs?
  167. - cannibalize general circs?
  168. make it reliable:
  169. - standby/hotswap/redundant services.
  170. - store stuff to disk? dirservers forget service descriptors when
  171. they restart; nodes offering hidden services forget their chosen
  172. intro points when they restart.
  173. make it robust:
  174. - auth mechanisms to let midpoint and bob selectively choose
  175. connection requests.
  176. make it scalable:
  177. - right now the hidserv store/lookup system is run by the dirservers;
  178. this won't scale.
  179. Tor scalability:
  180. Relax clique assumptions.
  181. Redesign how directories are handled.
  182. - Separate running-routers lookup from descriptor list lookup.
  183. - Resolve directory agreement somehow.
  184. - Cache directory on all servers.
  185. Find and remove bottlenecks
  186. - Address linear searches on e.g. circuit and connection lists.
  187. Reputation/memory system, so dirservers can measure people,
  188. and so other people can verify their measurements.
  189. - Need to measure via relay, so it's not distinguishable.
  190. Bandwidth-aware path selection. So people with T3's are picked
  191. more often than people with DSL.
  192. Reliability-aware node selection. So people who are stable are
  193. preferred for long-term circuits such as intro and rend circs,
  194. and general circs for irc, aim, ssh, etc.
  195. Let dissidents get to Tor servers via Tor users. ("Backbone model")
  196. Anonymity improvements:
  197. Is abandoning the circuit the only option when an extend fails, or
  198. can we do something without impacting anonymity too much?
  199. Is exiting from the middle of the circuit always a bad idea?
  200. Helper nodes. Decide how to use them to improve safety.
  201. DNS resolution: need to make tor support resolve requests. Need to write
  202. a script and an interface (including an extension to the socks
  203. protocol) so we can ask it to do resolve requests. Need to patch
  204. tsocks to intercept gethostbyname, else we'll continue leaking it.
  205. Improve path selection algorithms based on routing-zones paper. Be sure
  206. to start and end circuits in different ASs. Ideally, consider AS of
  207. source and destination -- maybe even enter and exit via nearby AS.
  208. Intermediate model, with some delays and mixing.
  209. Add defensive dropping regime?
  210. Make it more correct:
  211. Handle half-open connections: right now we don't support all TCP
  212. streams, at least according to the protocol. But we handle all that
  213. we've seen in the wild.
  214. Support IPv6.
  215. Efficiency/speed/robustness:
  216. Congestion control. Is our current design sufficient once we have heavy
  217. use? Need to measure and tweak, or maybe overhaul.
  218. Allow small cells and large cells on the same network?
  219. Cell buffering and resending. This will allow us to handle broken
  220. circuits as long as the endpoints don't break, plus will allow
  221. connection (tls session key) rotation.
  222. Implement Morphmix, so we can compare its behavior, complexity, etc.
  223. Use cpuworker for more heavy lifting.
  224. - Signing (and verifying) hidserv descriptors
  225. - Signing (and verifying) intro/rend requests
  226. - Signing (and verifying) router descriptors
  227. - Signing (and verifying) directories
  228. - Doing TLS handshake (this is very hard to separate out, though)
  229. Buffer size pool: allocate a maximum size for all buffers, not
  230. a maximum size for each buffer. So we don't have to give up as
  231. quickly (and kill the thickpipe!) when there's congestion.
  232. Exit node caching: tie into squid or other caching web proxy.
  233. Other transport. HTTP, udp, rdp, airhook, etc. May have to do our own
  234. link crypto, unless we can bully openssl into it.
  235. P2P Tor:
  236. Do all the scalability stuff above, first.
  237. Incentives to relay. Not so hard.
  238. Incentives to allow exit. Possibly quite hard.
  239. Sybil defenses without having a human bottleneck.
  240. How to gather random sample of nodes.
  241. How to handle nodelist recommendations.
  242. Consider incremental switches: a p2p tor with only 50 users has
  243. different anonymity properties than one with 10k users, and should
  244. be treated differently.