TODO 15 KB

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