TODO 23 KB

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