TODO 14 KB

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