TODO 14 KB

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