TODO 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  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, real soon now:
  19. x - When we've been idle a long time, we stop fetching server
  20. descriptors. When we then get a socks request, we build circuits
  21. immediately using whatever descriptors we have, rather than waiting
  22. until we've fetched correct ones.
  23. x - If the client's clock is too far in the past, it will drop (or
  24. just not try to get) descriptors, so it'll never build circuits.
  25. o when we start, remove^Wmark as unusable any entryguards that are listed
  26. in excludenodes.
  27. o Remember the last time we saw one of our entry guards labeled with
  28. the GUARD flag. If it's been too long, it is not suitable for use.
  29. If it's been really too long, remove it from the list.
  30. o Figure out avoiding duplicate /24 lines
  31. o automatically add /16 servers to family
  32. D do it in an efficient way. keep a list of something somewhere?
  33. D The right thing here is to revamp our node selection implementation.
  34. (Deferred until oprofile says this matters.)
  35. o make it configurable, so people can turn it on or off.
  36. N - Clients stop dumping old descriptors if the network-statuses
  37. claim they're still valid.
  38. R . If we fail to connect via an exit enclave, (warn and) try again
  39. without demanding that exit node.
  40. - And recognize when extending to the enclave node is failing,
  41. so we can abandon then too.
  42. N - We need a separate list of "hidserv authorities" if we want to
  43. retire moria1 from the main list.
  44. P - Figure out why dll's compiled in mingw don't work right in Winxp.
  45. P - Figure out why openssl 0.9.8c "make test" fails at sha256t test.
  46. Items for 0.1.2.x:
  47. o re-enable blossom functionality: let tor servers decide if they
  48. will use local search when resolving, or not.
  49. N - Document it.
  50. - enumerate events of important things that occur in tor, so vidalia can
  51. react.
  52. N - Backend implementation
  53. R - Actually list all the events (notice and warn log messages are a good
  54. place to look.) Divide messages into categories, perhaps.
  55. N - Specify general event system
  56. R - Specify actual events.
  57. x - We should ship with a list of stable dir mirrors -- they're not
  58. trusted like the authorities, but they'll provide more robustness
  59. and diversity for bootstrapping clients.
  60. N - Simplify authority operation
  61. - Follow weasel's proposal, crossed with mixminion dir config format
  62. - Reject/invalidate by IP.
  63. - Servers are easy to setup and run: being a relay is about as easy as
  64. being a client.
  65. - Reduce resource load
  66. N - Come up with good 'nicknames' automatically, or make no-nickname
  67. routers workable. [Make a magic nickname "Unnamed" that can't be
  68. registered and can't be looked up by nickname.]
  69. d - Tolerate clock skew on bridge relays.
  70. d - A way to examine and twiddle router flags from controller.
  71. - A way to export server descriptors to controllers
  72. N - Event / getinfo for "when did routerdesc last change".
  73. d - a way to pick entries based wholly on extend_info equivalent;
  74. a way to export extend_info equivalent.
  75. R - option to dl directory info via tor
  76. - Make an option like __AllDirActionsPrivate that falls back to
  77. non-Tor DL when not enough info present.
  78. D Count TLS bandwidth more accurately
  79. - Improvements to bandwidth counting
  80. R - look into "uncounting" bytes spent on local connections, so
  81. we can bandwidthrate but still have fast downloads.
  82. R - "bandwidth classes", for incoming vs initiated-here conns.
  83. d - Write limiting; separate token bucket for write
  84. - Write-limit directory responses (need to research)
  85. N - DNS improvements
  86. o Option to deal with broken DNS of the "ggoogle.com? Ah, you meant
  87. ads.me.com!" variety.
  88. o Autodetect whether DNS is broken in this way.
  89. o Don't ask reject *:* nodes for DNS unless client wants you to.
  90. . Asynchronous DNS
  91. o Document and rename SearchDomains, ResolvConf options
  92. D Make API closer to getaddrinfo()
  93. - Teach it to be able to listen for A and PTR requests to be processed.
  94. Interface should be set_request_listener(sock, cb); [ cb(request) ]
  95. send_reply(request, answer);
  96. d - Add option to use /etc/hosts?
  97. d - Special-case localhost?
  98. - Verify that it works on windows
  99. . Make reverse DNS work.
  100. o Specify
  101. X Implement with dnsworkers
  102. (There's no point doing this, since we will throw away dnsworkers once
  103. eventdns is confirmed to work everywhere.)
  104. o Implement in eventdns
  105. o Connect to resolve cells, server-side.
  106. o Add element to routerinfo to note routers that aren't using eventdns,
  107. so we can avoid sending them reverse DNS etc.
  108. o Fix the bug with server-side caching, whatever is causing it.
  109. . Add client-side interface
  110. o SOCKS interface: specify
  111. o SOCKS interface: implement
  112. - Cache answers client-side
  113. o Add to Tor-resolve.py
  114. - Add to tor-resolve
  115. - Check for invalid characters in hostnames before trying to resolve
  116. them. (This will help catch attempts do to mean things to our DNS
  117. server, and bad software that tries to do DNS lookups on whole URLs.)
  118. - address_is_invalid_destination() is the right thing to call here
  119. (and feel free to make that function smarter)
  120. - Performance improvements
  121. x - Better estimates in the directory of whether servers have good uptime
  122. (high expected time to failure) or good guard qualities (high
  123. fractional uptime).
  124. - AKA Track uptime as %-of-time-up, as well as time-since-last-down
  125. - Clients should prefer to avoid exit nodes for non-exit path positions.
  126. (bug 200)
  127. R - spec
  128. x - implement
  129. - Have a "Faster" status flag that means it. Fast2, Fast4, Fast8?
  130. x - spec
  131. d - implement
  132. - A more efficient dir protocol.
  133. N - Later, servers will stop generating new descriptors simply
  134. because 18 hours have passed: we must start tolerating this now.
  135. - Critical but minor bugs, backport candidates.
  136. d - Failed rend desc fetches sometimes don't get retried. True/false?
  137. R - non-v1 authorities should not accept rend descs.
  138. R - support dir 503s better
  139. o clients don't log as loudly when they receive them
  140. - they don't count toward the 3-strikes rule
  141. - should there be some threshold of 503's after which we give up?
  142. - Delay when we get a lot of 503s.
  143. N - split "router is down" from "dirport shouldn't be tried for a while"?
  144. Just a separate bit.
  145. - authorities should *never* 503 a cache, but *should* 503 clients
  146. when they feel like it.
  147. - update dir-spec with what we decided for each of these
  148. N - provide no-cache no-index headers from the dirport?
  149. - Windows server usability
  150. - Solve the ENOBUFS problem.
  151. - make tor's use of openssl operate on buffers rather than sockets,
  152. so we can make use of libevent's buffer paradigm once it has one.
  153. - make tor's use of libevent tolerate either the socket or the
  154. buffer paradigm; includes unifying the functions in connect.c.
  155. - We need a getrlimit equivalent on Windows so we can reserve some
  156. file descriptors for saving files, etc. Otherwise we'll trigger
  157. asserts when we're out of file descriptors and crash.
  158. M - rewrite how libevent does select() on win32 so it's not so very slow.
  159. - Add overlapped IO
  160. o Exitlist should avoid outputting the same IP address twice.
  161. Nd- Have a mode that doesn't write to disk much, so we can run Tor on
  162. flash memory (e.g. Linksys routers or USB keys).
  163. o Add AvoidDiskWrites config option.
  164. - only write state file when it's "changed"
  165. - stop writing identity key / fingerprint / etc every restart
  166. - stop caching directory stuff -- and disable mmap?
  167. - more?
  168. NR- Write path-spec.txt
  169. - Packaging
  170. - Tell people about OSX Uninstaller
  171. - Quietly document NT Service options
  172. - Switch canonical win32 compiler to mingw.
  173. NR - Get some kind of "meta signing key" to be used solely to sign
  174. releases/to certify releases when signed by the right people/
  175. to certify sign the right people's keys? Also use this to cert the SSL
  176. key, etc.
  177. - If we haven't replaced privoxy, lock down its configuration in all
  178. packages, as documented in tor-doc-unix.html
  179. - Docs
  180. - More prominently, we should have a recommended apps list.
  181. - recommend gaim.
  182. - unrecommend IE because of ftp:// bug.
  183. - torrc.complete.in needs attention?
  184. - we should add a preamble to tor-design saying it's out of date.
  185. Topics to think about during 0.1.2.x development:
  186. * Figure out incentives.
  187. - (How can we make this tolerant of a bad v0?)
  188. * Figure out non-clique.
  189. * Figure out China.
  190. - Figure out partial network knowledge.
  191. - Figure out hidden services.
  192. - Design next-version protocol for directories
  193. - Design next-version protocol for connections
  194. For blocking-resistance scheme:
  195. X allow ordinary-looking ssl for dir connections. need a new dirport
  196. for this, or can we handle both ssl and non-ssl, or should we
  197. entirely switch to ssl in certain cases?
  198. Rd- Official way to do authenticated dir conns: connect to OR port,
  199. and exit to 'localhost:dir-port'.
  200. - Make everybody with a dir-port implicitly accept exit to
  201. localhost:dir-port.
  202. - Check whether this works with one-hop circ case.
  203. d - need to figure out how to fetch status of a few servers from the BDA
  204. without fetching all statuses. A new URL to fetch I presume?
  205. Deferred from 0.1.2.x:
  206. - Directory guards
  207. - RAM use in directory authorities.
  208. - Memory use improvements:
  209. - Look into pulling serverdescs off buffers as they arrive.
  210. - Save and mmap v1 directories, and networkstatus docs; store them
  211. zipped, not uncompressed.
  212. - Switch cached_router_t to use mmap.
  213. - What to do about reference counts on windows? (On Unix, this is
  214. easy: unlink works fine. (Right?) On Windows, I have doubts. Do we
  215. need to keep multiple files?)
  216. - What do we do about the fact that people can't read zlib-
  217. compressed files manually?
  218. - Add IPv6 support to eventdns.c
  219. - Refactor DNS resolve implementation
  220. - Refactor exit side of resolve: do we need a connection_t?
  221. - Refactor entry side of resolve: do we need a connection_t?
  222. - A more efficient dir protocol.
  223. - Authorities should fetch the network-statuses amongst each
  224. other, consensus them, and advertise a communal network-status.
  225. This is not so much for safety/complexity as it is to reduce
  226. bandwidth requirements for Alice.
  227. - How does this interact with our goal of being able to choose
  228. your own dir authorities? I guess we're now assuming that all
  229. dir authorities know all the other authorities in their "group"?
  230. - Should we also look into a "delta since last network-status
  231. checkpoint" scheme, to reduce overhead further?
  232. - Extend the "r" line in network-status to give a set of buckets (say,
  233. comma-separated) for that router.
  234. - Buckets are deterministic based on IP address.
  235. - Then clients can choose a bucket (or set of buckets) to
  236. download and use.
  237. - Improvements to versioning.
  238. - When we connect to a Tor server, it sends back a cell listing
  239. the IP it believes it is using. Use this to block dvorak's attack.
  240. Also, this is a fine time to say what time you think it is.
  241. o Verify that a new cell type is okay with deployed codebase
  242. . Specify HELLO cells
  243. . Figure out v0 compatibility.
  244. - Implement
  245. Minor items for 0.1.2.x as time permits:
  246. - Flesh out options_description array in src/or/config.c
  247. - Don't let 'newnym' be triggered more often than every n seconds.
  248. - change log_fn() to log() on notice/warn/err logs where we can.
  249. - the deb now uses --verify-config to distinguish between configuration
  250. errors and other errors. Should the rpm, the ports, etc do this too?
  251. X If we try to publish as a nickname that's already claimed, should
  252. we append a number (or increment the number) and try again? This
  253. way people who read their logs can fix it as before, but people
  254. who don't read their logs will still offer Tor servers.
  255. - Fall back to unnamed; warn user; sent controller event.
  256. ! - Tor should bind its ports before dropping privs, so users don't
  257. have to do the ipchains dance.
  258. - Rate limit exit connections to a given destination -- this helps
  259. us play nice with websites when Tor users want to crawl them; it
  260. also introduces DoS opportunities.
  261. ! - The bw_accounting file should get merged into the state file.
  262. R - Streamline how we pick entry nodes.
  263. ! - Better installers and build processes.
  264. - Commit edmanm's win32 makefile to tor contrib, or write a new one.
  265. - Christian Grothoff's attack of infinite-length circuit.
  266. the solution is to have a separate 'extend-data' cell type
  267. which is used for the first N data cells, and only
  268. extend-data cells can be extend requests.
  269. - Specify, including thought about anonymity implications.
  270. - Display the reasons in 'destroy' and 'truncated' cells under some
  271. circumstances?
  272. - We need a way for the authorities to declare that nodes are
  273. in a family. Also, it kinda sucks that family declarations use O(N^2)
  274. space in the descriptors.
  275. - If the server is spewing complaints about raising your ulimit -n,
  276. we should add a note about this to the server descriptor so other
  277. people can notice too.
  278. - cpu fixes:
  279. - see if we should make use of truncate to retry
  280. X kill dns workers more slowly
  281. . Directory changes
  282. . Some back-out mechanism for auto-approval
  283. - a way of rolling back approvals to before a timestamp
  284. - Consider minion-like fingerprint file/log combination.
  285. - packaging and ui stuff:
  286. . multiple sample torrc files
  287. . figure out how to make nt service stuff work?
  288. . Document it.
  289. - Vet all pending installer patches
  290. - Win32 installer plus privoxy, sockscap/freecap, etc.
  291. - Vet win32 systray helper code
  292. - Improve controller
  293. - a NEWSTATUS event similar to NEWDESC.
  294. - change circuit status events to give more details, like purpose,
  295. whether they're internal, when they become dirty, when they become
  296. too dirty for further circuits, etc.
  297. - What do we want here, exactly?
  298. - Specify and implement it.
  299. - Change stream status events analogously.
  300. - What do we want here, exactly?
  301. - Specify and implement it.
  302. - Make other events "better".
  303. - Change stream status events analogously.
  304. - What do we want here, exactly?
  305. - Specify and implement it.
  306. - Make other events "better" analogously
  307. - What do we want here, exactly?
  308. - Specify and implement it.
  309. . Expose more information via getinfo:
  310. - import and export rendezvous descriptors
  311. - Review all static fields for additional candidates
  312. - Allow EXTENDCIRCUIT to unknown server.
  313. - We need some way to adjust server status, and to tell tor not to
  314. download directories/network-status, and a way to force a download.
  315. - It would be nice to request address lookups from the controller
  316. without using SOCKS.
  317. - Make everything work with hidden services
  318. - Directory system improvements
  319. - config option to publish what ports you listen on, beyond
  320. ORPort/DirPort. It should support ranges and bit prefixes (?) too.
  321. - Parse this.
  322. - Relay this in networkstatus.
  323. o smartlist_uniq(): We have at least 3 places that check a smartlist for
  324. duplicates and then removes them: networkstatus_parse_from_string(),
  325. sort_version_list(), and router_rebuild_descriptor(). This should probably
  326. get its own function that takes a comparator and a delete function.
  327. Future version:
  328. - Configuration format really wants sections.
  329. - Good RBL substitute.
  330. . Update the hidden service stuff for the new dir approach.
  331. - switch to an ascii format, maybe sexpr?
  332. - authdirservers publish blobs of them.
  333. - other authdirservers fetch these blobs.
  334. - hidserv people have the option of not uploading their blobs.
  335. - you can insert a blob via the controller.
  336. - and there's some amount of backwards compatibility.
  337. - teach clients, intro points, and hidservs about auth mechanisms.
  338. - come up with a few more auth mechanisms.
  339. - auth mechanisms to let hidden service midpoint and responder filter
  340. connection requests.
  341. - Bind to random port when making outgoing connections to Tor servers,
  342. to reduce remote sniping attacks.
  343. - Have new people be in limbo and need to demonstrate usefulness
  344. before we approve them.
  345. - Clients should estimate their skew as median of skew from servers
  346. over last N seconds.
  347. - Make router_is_general_exit() a bit smarter once we're sure what it's for.
  348. - Audit everything to make sure rend and intro points are just as likely to
  349. be us as not.
  350. - Do something to prevent spurious EXTEND cells from making middleman
  351. nodes connect all over. Rate-limit failed connections, perhaps?
  352. - Automatically determine what ports are reachable and start using
  353. those, if circuits aren't working and it's a pattern we recognize
  354. ("port 443 worked once and port 9001 keeps not working").
  355. - Limit to 2 dir, 2 OR, N SOCKS connections per IP.
  356. - Handle full buffers without totally borking
  357. - Rate-limit OR and directory connections overall and per-IP and
  358. maybe per subnet.
  359. - Hold-open-until-flushed now works by accident; it should work by
  360. design.
  361. - DoS protection: TLS puzzles, public key ops, bandwidth exhaustion.
  362. - Specify?
  363. - tor-resolve script should use socks5 to get better error messages.
  364. - hidserv offerers shouldn't need to define a SocksPort
  365. * figure out what breaks for this, and do it.
  366. - tor should be able to have a pool of outgoing IP addresses
  367. that it is able to rotate through. (maybe)
  368. - Specify; implement.
  369. - let each hidden service (or other thing) specify its own
  370. OutboundBindAddress?
  371. Blue-sky:
  372. - Patch privoxy and socks protocol to pass strings to the browser.
  373. - Standby/hotswap/redundant hidden services.
  374. - Robust decentralized storage for hidden service descriptors.
  375. - The "China problem"
  376. - Allow small cells and large cells on the same network?
  377. - Cell buffering and resending. This will allow us to handle broken
  378. circuits as long as the endpoints don't break, plus will allow
  379. connection (tls session key) rotation.
  380. - Implement Morphmix, so we can compare its behavior, complexity, etc.
  381. - Other transport. HTTP, udp, rdp, airhook, etc. May have to do our own
  382. link crypto, unless we can bully openssl into it.
  383. - Need a relay teardown cell, separate from one-way ends.
  384. (Pending a user who needs this)
  385. - Handle half-open connections: right now we don't support all TCP
  386. streams, at least according to the protocol. But we handle all that
  387. we've seen in the wild.
  388. (Pending a user who needs this)
  389. Non-Coding:
  390. - Mark up spec; note unclear points about servers
  391. - Mention controller libs someplace.
  392. . more pictures from ren. he wants to describe the tor handshake
  393. NR- write a spec appendix for 'being nice with tor'
  394. - tor-in-the-media page
  395. - Remove need for HACKING file.
  396. - Figure out licenses for website material.
  397. Website:
  398. - and remove home and make the "Tor" picture be the link to home.
  399. - put the logo on the website, in source form, so people can put it on
  400. stickers directly, etc.
  401. R - make a page with the hidden service diagrams.
  402. - ask Jan to be the translation coordinator? add to volunteer page.