TODO 14 KB

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