TODO 14 KB

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