TODO 20 KB

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