TODO 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. $Id$
  2. Legend:
  3. SPEC!! - Not specified
  4. SPEC - Spec not finalized
  5. N - nick claims
  6. R - arma claims
  7. P - phobos claims
  8. - Not done
  9. * Top priority
  10. . Partially done
  11. o Done
  12. D Deferred
  13. X Abandoned
  14. . <nickm> "Let's try to find a way to make it run and make the version
  15. match, but if not, let's just make it run."
  16. - <arma> "should we detect if we have a --with-ssl-dir and try the -R
  17. by default, if it works?"
  18. Items for 0.1.2.x:
  19. - Bug: We are willing to build circuits using not-up-to-date descriptors,
  20. when we get a request and we've been idle a long time.
  21. - We should ship with a list of stable dir mirrors -- they're not
  22. trusted like the authorities, but they'll provide more robustness
  23. and diversity for bootstrapping clients.
  24. - Servers are easy to setup and run: being a relay is about as easy as
  25. being a client.
  26. - Reduce resource load
  27. - look into "uncounting" bytes spent on local connections. so
  28. we can bandwidthrate but still have fast downloads.
  29. - Write limiting; separate token bucket for write
  30. o dir answers include a your-ip-address-is header, so we can
  31. break our dependency on dyndns.
  32. - Count TLS bandwidth more accurately
  33. - Write-limit directory responses.
  34. N . Improve memory usage on tight-memory machines.
  35. - Directory-related fixes.
  36. o Remember offset and location of each descriptor in the cache/journal
  37. o When sending a big pile of descs to a client, don't shove them all
  38. on the buffer at once. Keep a list of the descriptor digests for
  39. the descriptors we still want to send. We might end up truncating
  40. some replies by returning fewer descriptors than were requested (if
  41. somebody requests a desc that we throw away before we deliver it),
  42. but this happens only when somebody wants an obsolete desc, and
  43. clients can already handle truncated replies.
  44. o But what do we do about compression? That's the part that makes
  45. stuff hard.
  46. o Implement compress/decompress-on-the-fly support.
  47. o Use it for returning lists of descriptors.
  48. o Use it for returning lists of network status docs. (This will
  49. take a hybrid approach; let's get the other bits working first.)
  50. o Make clients handle missing Content-Length tags. (Oh, they do.)
  51. o Verify that this has happened for a long time.
  52. o Try a similar trick for spooling out v1 directories. These we
  53. _uncompress_ on the fly.
  54. - Look into pulling serverdescs off buffers as they arrive.
  55. . Mmap cache files where possible.
  56. o Mmap cached-routers file; when building it, go oldest-to-newest.
  57. - More unit tests and asserts for cached-routers file: ensure digest
  58. for the right router. Verify dl by digest, fp, etc.
  59. . Make sure cached-routers values and offsets are correct in the
  60. presence of windows FS insanity.
  61. - Save and mmap v1 directories; store them zipped, not
  62. uncompressed.
  63. - Store networkstatus docs zipped, not uncompressed. Maaaybe mmap
  64. them too.
  65. o Be a little more OO to save memory in frequently
  66. replicated structs.
  67. o Split circuit_t into origin circuits and or circuits
  68. o Move as many fields as reasonable out of base class.
  69. o Re-pack structs to avoid wasted bytes.
  70. o Split connection_t based on type field.
  71. - "bandwidth classes", for incoming vs initiated-here conns.
  72. o Asynchronous DNS
  73. o And test it
  74. . Make it work on windows.
  75. o Implement
  76. . Enable
  77. - Test
  78. - Make the Nameservers option documented, and make it work right on
  79. reload.
  80. - Fail when we have no configured nameservers!
  81. - Make it the default on platforms where it works
  82. - Security improvements
  83. - Directory guards
  84. R - remember the last time we saw one of our entry guards labelled with
  85. the GUARD flag. If it's been too long, it is not suitable for use.
  86. If it's been really too long, remove it from the list.
  87. - Make reverse DNS work.
  88. - Specify
  89. - Implement with dnsworkers
  90. - Implement in eventdns
  91. - Connect to resolve cells, server-side.
  92. - Add client-side interface
  93. - Performance improvements
  94. - Better estimates in the directory of whether servers have good uptime
  95. (high expected time to failure) or good guard qualities (high
  96. fractional uptime).
  97. - AKA Track uptime as %-of-time-up, as well as time-since-last-down.
  98. - Clients should prefer to avoid exit nodes for non-exit path positions.
  99. (bug 200)
  100. - Have a "Faster" status flag that means it. Fast2, Fast4, Fast8?
  101. - A more efficient dir protocol.
  102. N - Clients stop dumping old descriptors if the network-statuses
  103. claim they're still valid.
  104. - Later, servers will stop generating new descriptors simply
  105. because 18 hours have passed.
  106. - Authorities should fetch the network-statuses amongst each
  107. other, consensus them, and advertise a communal network-status.
  108. This is not so much for safety/complexity as it is to reduce
  109. bandwidth requirements for Alice.
  110. - How does this interact with our goal of being able to choose
  111. your own dir authorities? I guess we're now assuming that all
  112. dir authorities know all the other authorities in their "group"?
  113. - Should we also look into a "delta since last network-status
  114. checkpoint" scheme, to reduce overhead further?
  115. - Extend the "r" line in network-status to give a set of buckets (say,
  116. comma-separated) for that router.
  117. - Buckets are deterministic based on IP address.
  118. - Then clients can choose a bucket (or set of buckets) to
  119. download and use.
  120. - Critical but minor bugs, backport candidates.
  121. - If the client's clock is too far in the past, it will drop (or
  122. just not try to get) descriptors, so it'll never build circuits.
  123. R - Failed rend desc fetches sometimes don't get retried.
  124. . If we fail to connect via an exit enclave, (warn and) try again
  125. without demanding that exit node.
  126. - And recognize when extending to the enclave node is failing,
  127. so we can abandon then too.
  128. R - non-v1 authorities should not accept rend descs.
  129. - We need a separate list of "hidserv authorities" if we want to
  130. retire moria1 from the main list.
  131. - support dir 503s better
  132. o clients don't log as loudly when they receive them
  133. - they don't count toward the 3-strikes rule
  134. - should there be some threshold of 503's after which we give up?
  135. - think about how to split "router is down" from "dirport shouldn't
  136. be tried for a while"?
  137. - authorities should *never* 503 a cache, but *should* 503 clients
  138. when they feel like it.
  139. - update dir-spec with what we decided for each of these
  140. - provide no-cache no-index headers from the dirport?
  141. - Windows server usability
  142. - Solve the ENOBUFS problem.
  143. - make tor's use of openssl operate on buffers rather than sockets,
  144. so we can make use of libevent's buffer paradigm once it has one.
  145. - make tor's use of libevent tolerate either the socket or the
  146. buffer paradigm; includes unifying the functions in connect.c.
  147. - We need a getrlimit equivalent on Windows so we can reserve some
  148. file descriptors for saving files, etc. Otherwise we'll trigger
  149. asserts when we're out of file descriptors and crash.
  150. M - rewrite how libevent does select() on win32 so it's not so very slow.
  151. - Add overlapped IO
  152. N - When we connect to a Tor server, it sends back a cell listing
  153. the IP it believes it is using. Use this to block dvorak's attack.
  154. Also, this is a fine time to say what time you think it is.
  155. o Verify that a new cell type is okay with deployed codebase
  156. . Specify HELLO cells
  157. . Figure out v0 compatibility.
  158. - Implement
  159. N - Exitlist should avoid outputting the same IP address twice.
  160. N - Write path-spec.txt
  161. - Break the dir v1 stuff out of tor-spec.txt into dir-spec-v1.txt,
  162. and change the new dir-spec.txt to dir-spec-v2.txt.
  163. - Packaging
  164. - Tell people about OSX Uninstaller
  165. - Quietly document NT Service options
  166. - Docs
  167. - More prominently, we should have a recommended apps list.
  168. - recommend gaim.
  169. - unrecommend IE because of ftp:// bug.
  170. - torrc.complete.in needs attention?
  171. Topics to think about during 0.1.2.x development:
  172. * Figure out incentives.
  173. - (How can we make this tolerant of a bad v0?)
  174. * Figure out non-clique.
  175. * Figure out China.
  176. - Figure out avoiding duplicate /24 lines
  177. - Figure out partial network knowledge.
  178. - Figure out hidden services.
  179. Minor items for 0.1.2.x as time permits.
  180. - Tor should bind its ports before dropping privs, so users don't
  181. have to do the ipchains dance.
  182. - Make --verify-config return a useful error code.
  183. - Rate limit exit connections to a given destination -- this helps
  184. us play nice with websites when Tor users want to crawl them; it
  185. also introduces DoS opportunities.
  186. - The bw_accounting file should get merged into the state file.
  187. - Streamline how we define a guard node as 'up'.
  188. - Better installers and build processes.
  189. - Commit edmanm's win32 makefile to tor cvs contrib, or write a new one.
  190. - Christian Grothoff's attack of infinite-length circuit.
  191. the solution is to have a separate 'extend-data' cell type
  192. which is used for the first N data cells, and only
  193. extend-data cells can be extend requests.
  194. - Specify, including thought about anonymity implications.
  195. - Display the reasons in 'destroy' and 'truncated' cells under some
  196. circumstances?
  197. - We need a way for the authorities to declare that nodes are
  198. in a family. Also, it kinda sucks that family declarations use O(N^2)
  199. space in the descriptors.
  200. - If the server is spewing complaints about raising your ulimit -n,
  201. we should add a note about this to the server descriptor so other
  202. people can notice too.
  203. - rate limit the number of exit connections to a given destination, to
  204. help with DoS/crawling issues.
  205. - cpu fixes:
  206. - see if we should make use of truncate to retry
  207. - kill dns workers more slowly
  208. . Directory changes
  209. . Some back-out mechanism for auto-approval
  210. - a way of rolling back approvals to before a timestamp
  211. - Consider minion-like fingerprint file/log combination.
  212. - packaging and ui stuff:
  213. . multiple sample torrc files
  214. . figure out how to make nt service stuff work?
  215. . Document it.
  216. - Vet all pending installer patches
  217. - Win32 installer plus privoxy, sockscap/freecap, etc.
  218. - Vet win32 systray helper code
  219. - Improve controller
  220. - change circuit status events to give more details, like purpose,
  221. whether they're internal, when they become dirty, when they become
  222. too dirty for further circuits, etc.
  223. - What do we want here, exactly?
  224. - Specify and implement it.
  225. - Change stream status events analogously.
  226. - What do we want here, exactly?
  227. - Specify and implement it.
  228. - Make other events "better".
  229. - Change stream status events analogously.
  230. - What do we want here, exactly?
  231. - Specify and implement it.
  232. - Make other events "better" analogously
  233. - What do we want here, exactly?
  234. - Specify and implement it.
  235. . Expose more information via getinfo:
  236. - import and export rendezvous descriptors
  237. - Review all static fields for additional candidates
  238. - Allow EXTENDCIRCUIT to unknown server.
  239. - We need some way to adjust server status, and to tell tor not to
  240. download directories/network-status, and a way to force a download.
  241. - It would be nice to request address lookups from the controller
  242. without using SOCKS.
  243. - Make everything work with hidden services
  244. - Directory system improvements
  245. - config option to publish what ports you listen on, beyond
  246. ORPort/DirPort. It should support ranges and bit prefixes (?) too.
  247. - Parse this.
  248. - Relay this in networkstatus.
  249. Future version:
  250. - Tor should have a "DNS port" so we don't need to ship with (and
  251. write) a clean portable dns proxy.
  252. . Update the hidden service stuff for the new dir approach.
  253. - switch to an ascii format, maybe sexpr?
  254. - authdirservers publish blobs of them.
  255. - other authdirservers fetch these blobs.
  256. - hidserv people have the option of not uploading their blobs.
  257. - you can insert a blob via the controller.
  258. - and there's some amount of backwards compatibility.
  259. - teach clients, intro points, and hidservs about auth mechanisms.
  260. - come up with a few more auth mechanisms.
  261. - auth mechanisms to let hidden service midpoint and responder filter
  262. connection requests.
  263. - Bind to random port when making outgoing connections to Tor servers,
  264. to reduce remote sniping attacks.
  265. - Have new people be in limbo and need to demonstrate usefulness
  266. before we approve them.
  267. - Clients should estimate their skew as median of skew from servers
  268. over last N seconds.
  269. - Make router_is_general_exit() a bit smarter once we're sure what it's for.
  270. - Audit everything to make sure rend and intro points are just as likely to
  271. be us as not.
  272. - Do something to prevent spurious EXTEND cells from making middleman
  273. nodes connect all over. Rate-limit failed connections, perhaps?
  274. - Automatically determine what ports are reachable and start using
  275. those, if circuits aren't working and it's a pattern we recognize
  276. ("port 443 worked once and port 9001 keeps not working").
  277. - Limit to 2 dir, 2 OR, N SOCKS connections per IP.
  278. - Handle full buffers without totally borking
  279. - Rate-limit OR and directory connections overall and per-IP and
  280. maybe per subnet.
  281. - Hold-open-until-flushed now works by accident; it should work by
  282. design.
  283. - DoS protection: TLS puzzles, public key ops, bandwidth exhaustion.
  284. - Specify?
  285. - tor-resolve script should use socks5 to get better error messages.
  286. - hidserv offerers shouldn't need to define a SocksPort
  287. * figure out what breaks for this, and do it.
  288. - tor should be able to have a pool of outgoing IP addresses
  289. that it is able to rotate through. (maybe)
  290. - let each hidden service (or other thing) specify its own
  291. OutboundBindAddress?
  292. - Have a mode that doesn't write to disk much, so we can run Tor on
  293. flash memory (e.g. Linksys routers).
  294. Blue-sky:
  295. - Patch privoxy and socks protocol to pass strings to the browser.
  296. - Standby/hotswap/redundant hidden services.
  297. - Robust decentralized storage for hidden service descriptors.
  298. - The "China problem"
  299. - Allow small cells and large cells on the same network?
  300. - Cell buffering and resending. This will allow us to handle broken
  301. circuits as long as the endpoints don't break, plus will allow
  302. connection (tls session key) rotation.
  303. - Implement Morphmix, so we can compare its behavior, complexity, etc.
  304. - Other transport. HTTP, udp, rdp, airhook, etc. May have to do our own
  305. link crypto, unless we can bully openssl into it.
  306. - Need a relay teardown cell, separate from one-way ends.
  307. (Pending a user who needs this)
  308. - Handle half-open connections: right now we don't support all TCP
  309. streams, at least according to the protocol. But we handle all that
  310. we've seen in the wild.
  311. (Pending a user who needs this)
  312. Non-Coding:
  313. - Mark up spec; note unclear points about servers
  314. - Mention controller libs someplace.
  315. P - flesh out the rest of the section 6 of the faq
  316. . more pictures from ren. he wants to describe the tor handshake
  317. NR- write a spec appendix for 'being nice with tor'
  318. - tor-in-the-media page
  319. - Remove need for HACKING file.
  320. - Figure out licenses for website material.
  321. Website:
  322. - and remove home and make the "Tor" picture be the link to home.
  323. - put the logo on the website, in source form, so people can put it on
  324. stickers directly, etc.
  325. R - make a page with the hidden service diagrams.
  326. - ask Jan to be the translation coordinator? add to volunteer page.