TODO 24 KB

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