TODO 17 KB

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