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