TODO 15 KB

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