TODO 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  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. 0.0.9pre5/6: ("Launch" version)
  13. - "tor --list-fingerprint" to print fingerprint and exit.
  14. - Oct 20 16:45:10.237 [warn] parse_addr_port(): Port '0' out of range
  15. o add and document DirPolicy config option
  16. - clean up parse_*_policy code
  17. - when you hup, they're not getting re-parsed
  18. - stop calling a *_policy an exit_policy_t
  19. - stop calling running-routers running-routers?
  20. o Replace running-routers with a router-status line that can be used
  21. without a list of router descriptors.
  22. o Add a log handler that sends stuff to syslog.
  23. o Deprecate unofficial configuration abbrevs; make official abbrevs
  24. only official on the command line.
  25. - per-month byte allowances.
  26. N - Based on bandwidth and per-month allowance, choose a
  27. window within month to be up. Stay up until allowance is
  28. used. Adjust next month's window based on outcome. Hibernate
  29. when we're not up.
  30. R - Hibernate means "stop accepting connections, and start sleeping"
  31. Implement hibernation. Have a separate
  32. about-to-start-hibernating state implemented in similar way to
  33. will shut-down-in-30-seconds state.
  34. - Rendezvous service bug: can we nail it down?
  35. R . bandwidth buckets for write as well as read.
  36. o Make watchdogged clients check cached-directory mtime to avoid
  37. fetching directory in a tight loop.
  38. . Pure C tor_resolve
  39. o Implement it; socks4a only is fine for now.
  40. N - Make it build on win32
  41. N/R - Make it not link with zlib and openssl.
  42. N - RPMs
  43. N - Windows installer
  44. - Review website; make important info more prominent.
  45. Beyond 0.0.9:
  46. - Implement If-Modified-Since for directories.
  47. N - Handle rendezvousing with unverified nodes.
  48. - Specify: Stick rendezvous point's key in INTRODUCE cell.
  49. Bob should _always_ use key from INTRODUCE cell.
  50. - Implement.
  51. R - figure out enclaves, e.g. so we know what to recommend that people
  52. do, and so running a tor server on your website is helpful.
  53. - Do enclaves for same IP only.
  54. - Resolve first, then if IP is an OR, connect to next guy.
  55. N - the user interface interface
  56. - Skeleton only.
  57. - Implement parts along with trivial fun gui.
  58. N - add ipv6 support.
  59. - Spec issue: if a resolve returns an IP4 and an IP6 address,
  60. which to use?
  61. N&R - Update Spec
  62. R - learn from ben about his openssl-reinitialization-trick to
  63. rotate tls keys without making new connections.
  64. - (Roger grabs Ben next time he sees him on IRC)
  65. - christian grothoff's attack of infinite-length circuit.
  66. the solution is to have a separate 'extend-data' cell type
  67. which is used for the first N data cells, and only
  68. extend-data cells can be extend requests.
  69. - have a pool of circuits available, cannibalize them
  70. for your purposes (e.g. rendezvous, etc).
  71. D nt services on win32.
  72. - Once we have a trusted directory on port 80, stop falling back to
  73. forbidden ports when fascistfirewall blocks all good dirservers.
  74. o fix sprintf's to snprintf's?
  75. . Make intro points and rendezvous points accept $KEYID in addition
  76. to nicknames.
  77. o Specify
  78. o Implement parsing
  79. - Generate new formats (Not till 007 is dead)
  80. - make loglevel info less noisy
  81. - Facility to automatically choose long-term helper nodes; perhaps
  82. on by default for hidden services.
  83. o Make command-line strict about checking options; make only certain
  84. option prefixes work.
  85. - Rate-limit OR and directory connections overall and per-IP and
  86. maybe per subnet.
  87. D put expiry date on onion-key, so people don't keep trying
  88. old ones that they could know are expired?
  89. * Leave on todo list, see if pre3 onion fixes helped enough.
  90. D should the running-routers list put unverified routers at the
  91. end?
  92. * Cosmetic, don't do it yet.
  93. D make advertised_server_mode() ORs fetch dirs more often.
  94. * not necessary yet.
  95. D Add a notion of nickname->Pubkey binding that's not 'verification'
  96. * eventually, only when needed
  97. D ORs use uniquer default nicknames
  98. * Don't worry about this for now
  99. D Handle full buffers without totally borking
  100. * do this eventually, no rush.
  101. D if destination IP is running a tor node, extend a circuit there
  102. before sending begin.
  103. * don't do this for now. figure out how enclaves work. but do
  104. enclaves soon.
  105. - Support egd or other non-OS-integrated strong entropy sources
  106. more features, complex:
  107. - password protection for on-disk identity key
  108. . Switch dirservers entries to config lines:
  109. o read in and parse each TrustedDir config line.
  110. o stop reading dirservers file.
  111. o add some default TrustedDir lines if none defined, or if
  112. no torrc.
  113. o remove notion of ->is_trusted_dir from the routerlist. that's
  114. no longer where you look.
  115. o clean up router parsing flow, since it's simpler now?
  116. o when checking signature on a directory, look it up in
  117. options.TrustedDirs, and make sure there's a descriptor
  118. with that nickname, whose key hashes to the fingerprint,
  119. and who correctly signed the directory.
  120. o when fetching a directory, if you want a trusted one,
  121. choose from the trusteddir list.
  122. o which means keeping track of which ones are "up"
  123. ? if you don't need a trusted one, choose from the routerinfo
  124. list if you have one, else from the trusteddir list.
  125. * roger will do the above
  126. - Have clients and dirservers preserve reputation info over
  127. reboots.
  128. * continue not doing until we have something we need to preserve
  129. - round detected bandwidth up to nearest 10KB?
  130. - client software not upload descriptor until:
  131. - you've been running for an hour
  132. - it's sufficiently satisfied with its bandwidth
  133. - it decides it is reachable
  134. - start counting again if your IP ever changes.
  135. - never regenerate identity keys, for now.
  136. - you can set a bit for not-being-an-OR.
  137. * no need to do this yet. few people define their ORPort.
  138. - authdirserver lists you as running iff:
  139. - he can connect to you
  140. - he has successfully extended to you
  141. - you have sufficient mean-time-between-failures
  142. * keep doing nothing for now.
  143. blue sky:
  144. - Possible to get autoconf to easily install things into ~/.tor?
  145. ongoing:
  146. . rename/rearrange functions for what file they're in
  147. - generalize our transport: add transport.c in preparation for
  148. http, airhook, etc transport.
  149. o investigate sctp for alternate transport.
  150. For September:
  151. N . Windows port
  152. o works as client
  153. - deal with pollhup / reached_eof on all platforms
  154. . robust as a client
  155. . works as server
  156. - can be configured
  157. - robust as a server
  158. . Usable as NT service
  159. - docs for building in win
  160. - installer, including all needed libs.
  161. - Docs
  162. . FAQ
  163. o overview of tor. how does it work, what's it do, pros and
  164. cons of using it, why should I use it, etc.
  165. - a howto tutorial with examples
  166. * put a stub on the wiki
  167. o tutorial: how to set up your own tor network
  168. o (need to not hardcode dirservers file in config.c)
  169. o Make tutorial reflect this.
  170. . port forwarding howto for ipchains, etc
  171. * roger add to wiki of requests
  172. . correct, update, polish spec
  173. - document the exposed function api?
  174. o document what we mean by socks.
  175. N . packages
  176. . rpm
  177. * nick will look at the spec file
  178. - find a long-term rpm maintainer
  179. * roger will start guilting people
  180. - code
  181. - better warn/info messages
  182. o let tor do resolves.
  183. o extend socks4 to do resolves?
  184. o make script to ask tor for resolves
  185. - write howto for setting up tsocks, socat.
  186. - including on osx and win32
  187. - freecap handling
  188. - tsocks
  189. o gather patches, submit to maintainer
  190. * send him a reminder mail and see what's up.
  191. - intercept gethostbyname and others
  192. * add this to tsocks
  193. o do resolve via tor
  194. - redesign and thorough code revamp, with particular eye toward:
  195. - support half-open tcp connections
  196. - conn key rotation
  197. - other transports -- http, airhook
  198. - modular introduction mechanism
  199. - allow non-clique topology
  200. Other details and small and hard things:
  201. - tor should be able to have a pool of outgoing IP addresses
  202. that it is able to rotate through. (maybe)
  203. - tie into squid
  204. - hidserv offerers shouldn't need to define a SocksPort
  205. * figure out what breaks for this, and do it.
  206. - when the client fails to pick an intro point for a hidserv,
  207. it should refetch the hidserv desc.
  208. . should maybe make clients exit(1) when bad things happen?
  209. e.g. clock skew.
  210. - should retry exitpolicy end streams even if the end cell didn't
  211. resolve the address for you
  212. . Make logs handle it better when writing to them fails.
  213. o Dirserver shouldn't put you in running-routers list if you haven't
  214. uploaded a descriptor recently
  215. . Refactor: add own routerinfo to routerlist. Right now, only
  216. router_get_by_nickname knows about 'this router', as a hack to
  217. get circuit_launch_new to do the right thing.
  218. . Scrubbing proxies
  219. - Find an smtp proxy?
  220. . Get socks4a support into Mozilla
  221. - Need a relay teardown cell, separate from one-way ends.
  222. - Make it harder to circumvent bandwidth caps: look at number of bytes
  223. sent across sockets, not number sent inside TLS stream.
  224. - fix router_get_by_* functions so they can get ourselves too,
  225. and audit everything to make sure rend and intro points are
  226. just as likely to be us as not.
  227. ***************************Future tasks:****************************
  228. Rendezvous and hidden services:
  229. make it fast:
  230. - preemptively build and start rendezvous circs.
  231. - preemptively build n-1 hops of intro circs?
  232. - cannibalize general circs?
  233. make it reliable:
  234. - standby/hotswap/redundant services.
  235. - store stuff to disk? dirservers forget service descriptors when
  236. they restart; nodes offering hidden services forget their chosen
  237. intro points when they restart.
  238. make it robust:
  239. - auth mechanisms to let midpoint and bob selectively choose
  240. connection requests.
  241. make it scalable:
  242. - right now the hidserv store/lookup system is run by the dirservers;
  243. this won't scale.
  244. Tor scalability:
  245. Relax clique assumptions.
  246. Redesign how directories are handled.
  247. - Separate running-routers lookup from descriptor list lookup.
  248. - Resolve directory agreement somehow.
  249. - Cache directory on all servers.
  250. Find and remove bottlenecks
  251. - Address linear searches on e.g. circuit and connection lists.
  252. Reputation/memory system, so dirservers can measure people,
  253. and so other people can verify their measurements.
  254. - Need to measure via relay, so it's not distinguishable.
  255. Bandwidth-aware path selection. So people with T3's are picked
  256. more often than people with DSL.
  257. Reliability-aware node selection. So people who are stable are
  258. preferred for long-term circuits such as intro and rend circs,
  259. and general circs for irc, aim, ssh, etc.
  260. Let dissidents get to Tor servers via Tor users. ("Backbone model")
  261. Anonymity improvements:
  262. Is abandoning the circuit the only option when an extend fails, or
  263. can we do something without impacting anonymity too much?
  264. Is exiting from the middle of the circuit always a bad idea?
  265. Helper nodes. Decide how to use them to improve safety.
  266. DNS resolution: need to make tor support resolve requests. Need to write
  267. a script and an interface (including an extension to the socks
  268. protocol) so we can ask it to do resolve requests. Need to patch
  269. tsocks to intercept gethostbyname, else we'll continue leaking it.
  270. Improve path selection algorithms based on routing-zones paper. Be sure
  271. to start and end circuits in different ASs. Ideally, consider AS of
  272. source and destination -- maybe even enter and exit via nearby AS.
  273. Intermediate model, with some delays and mixing.
  274. Add defensive dropping regime?
  275. Make it more correct:
  276. Handle half-open connections: right now we don't support all TCP
  277. streams, at least according to the protocol. But we handle all that
  278. we've seen in the wild.
  279. Support IPv6.
  280. Efficiency/speed/robustness:
  281. Congestion control. Is our current design sufficient once we have heavy
  282. use? Need to measure and tweak, or maybe overhaul.
  283. Allow small cells and large cells on the same network?
  284. Cell buffering and resending. This will allow us to handle broken
  285. circuits as long as the endpoints don't break, plus will allow
  286. connection (tls session key) rotation.
  287. Implement Morphmix, so we can compare its behavior, complexity, etc.
  288. Use cpuworker for more heavy lifting.
  289. - Signing (and verifying) hidserv descriptors
  290. - Signing (and verifying) intro/rend requests
  291. - Signing (and verifying) router descriptors
  292. - Signing (and verifying) directories
  293. - Doing TLS handshake (this is very hard to separate out, though)
  294. Buffer size pool: allocate a maximum size for all buffers, not
  295. a maximum size for each buffer. So we don't have to give up as
  296. quickly (and kill the thickpipe!) when there's congestion.
  297. Exit node caching: tie into squid or other caching web proxy.
  298. Other transport. HTTP, udp, rdp, airhook, etc. May have to do our own
  299. link crypto, unless we can bully openssl into it.
  300. P2P Tor:
  301. Do all the scalability stuff above, first.
  302. Incentives to relay. Not so hard.
  303. Incentives to allow exit. Possibly quite hard.
  304. Sybil defenses without having a human bottleneck.
  305. How to gather random sample of nodes.
  306. How to handle nodelist recommendations.
  307. Consider incremental switches: a p2p tor with only 50 users has
  308. different anonymity properties than one with 10k users, and should
  309. be treated differently.