TODO 14 KB

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