TODO 22 KB

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