TODO 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  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. Things we'd like to do in 0.2.0.x:
  16. - See also Flyspray tasks.
  17. - See also all items marked XXXX020 and DOCDOC in the code
  18. - http://tor.eff.org/eff/legal-faq.html#License doesn't mention
  19. licenses for other components of the bundles.
  20. - Bugs.
  21. - Bug reports Roger has heard along that way that don't have enough
  22. details/attention to solve them yet.
  23. - tup said that when he set FetchUselessDescriptors, after
  24. 24 or 48 hours he wasn't fetching any descriptors at all
  25. anymore. This was in 0.2.0 but worked fine in 0.1.2.
  26. - arma noticed that when his network went away and he tried
  27. a new guard node and the connect() syscall failed to it,
  28. the guard wasn't being marked as down. 0.2.0.x.
  29. - after being without network for 12 hours, arma's tor decided
  30. it couldn't fetch any network statuses, and never tried again
  31. even when the network came back and arma clicked on things.
  32. also 0.2.0.
  33. - phobos says relaybandwidth* sometimes don't do what we expect.
  34. http://interloper.org/tmp/2007-06-bw-usage.png
  35. - this notion of authorities notifying servers that they're
  36. unreachable is bunk -- it's leftover from the time when all
  37. servers ran 24/7. now it triggers every time a server goes
  38. away and then returns before the old descriptor has expired.
  39. - add a --quiet commandline option that suppresses logs. useful
  40. for --hashed-password and maybe others.
  41. - Tor logs the libevent version on startup, for debugging purposes.
  42. This is great. But it does this before configuring the logs, so
  43. it only goes to stdout and is then lost.
  44. - we should do another bandwidth test every 12 hours or something
  45. if we're showing less than 50KB and our bandwidthrate says we can
  46. do more than that. I think some servers are forgetting the results
  47. of their first test, and then never seeing use.
  48. - Proposals:
  49. . 101: Voting on the Tor Directory System (plus 103)
  50. . Finalize proposal
  51. * Describe schedule in copious detail.
  52. . Get authorities voting
  53. - While we're at it, let v3 authorities have fqdns lines.
  54. - Fix all XXXX020s in vote code
  55. . Validate information properly.
  56. - Dump certificates with the wrong time. Or just warn?
  57. - When checking a consensus, make sure that its times are plausible.
  58. . Start caching consensus documents once authorities make them;
  59. start downloading consensus documents once caches serve
  60. them
  61. - Code to delay next download while fetching certificates to verify
  62. a consensus we already got.
  63. - Code to retry consensus download if we got one we already have.
  64. - Use if-modified-since on consensus download
  65. - Use if-modified-since on certificate download
  66. - Enable for non-caches
  67. - Code to use v3 networkstatus documents once clients are
  68. fetching them
  69. - Implement
  70. - Enable
  71. - Controller support
  72. - GETINFO to get consensus
  73. - Event when new consensus arrives
  74. - 105: Version negotiation for the Tor protocol
  75. . 111: Prioritize local traffic over relayed.
  76. - Merge into tor-spec.txt.
  77. - Refactoring:
  78. . Make cells get buffered on circuit, not on the or_conn.
  79. . Switch to pool-allocation for cells?
  80. - Benchmark pool-allocation vs straightforward malloc.
  81. - Adjust memory allocation logic in pools to favor a little less
  82. slack memory.
  83. . Remove socketpair-based bridges conns, and the word "bridge". (Use
  84. shared (or connected) buffers for communication, rather than sockets.)
  85. . Implement
  86. - Handle rate-limiting on directory writes to linked directory
  87. connections in a more sensible manner.
  88. - Find more ways to test this.
  89. - Have clients do TLS connection rotation less often than "every 10
  90. minutes" in the thrashy case, and more often than "once a week" in the
  91. extra-stable case.
  92. - Streamline how we pick entry nodes: Make choose_random_entry() have
  93. less magic and less control logic.
  94. - Refactor networkstatus generation:
  95. - Include "v" line in getinfo values.
  96. - Bridges:
  97. . Bridges users (rudimentary version)
  98. o Ability to specify bridges manually
  99. o Config option 'UseBridges' that bridge users can turn on.
  100. o uses bridges as first hop rather than entry guards.
  101. o if you don't have any routerinfos for your bridges, or you don't
  102. like the ones you have, ask a new bridge for its server/authority.
  103. . Ask all directory questions to bridge via BEGIN_DIR.
  104. - use the bridges for dir fetches even when our dirport is open.
  105. R - drop 'authority' queries if they're to our own identity key; accept
  106. them otherwise.
  107. X Design/implement the "local-status" or something like it, from the
  108. "Descriptor purposes: how to tell them apart" section of
  109. http://archives.seul.org/or/dev/May-2007/msg00008.html
  110. o timeout and retry schedules for fetching bridge descriptors
  111. - give extend_info_t a router_purpose again
  112. o react faster to download networkstatuses after the first bridge
  113. descriptor arrives
  114. o be more robust to bridges being marked as down and leaving us
  115. stranded without any known "running" bridges.
  116. - Bridges operators (rudimentary version)
  117. - Ability to act as dir cache without a dir port.
  118. o Bridges publish to bridge authorities
  119. o Fix BEGIN_DIR so that you connect to bridge of which you only
  120. know IP (and optionally fingerprint), and then use BEGIN_DIR to learn
  121. more about it.
  122. - look at server_mode() and decide if it always applies to bridges too.
  123. - Bridges authorities (rudimentary version)
  124. o Rudimentary "do not publish networkstatus" option for bridge
  125. authorities.
  126. - Clients can ask bridge authorities for more bridges.
  127. - Bridges
  128. o Clients can ask bridge authorities for updates on known bridges.
  129. - More TLS normalization work: make Tor less easily
  130. fingerprinted.
  131. - Directory system improvements
  132. - Misc
  133. - Make BEGIN_DIR mandatory for asking questions of bridge authorities?
  134. - Features (other than bridges):
  135. - Blocking-resistance.
  136. - Write a proposal; make this part of 105.
  137. - Audit how much RAM we're using for buffers and cell pools; try to
  138. trim down a lot.
  139. - Base relative control socket paths on datadir.
  140. - We should ship with a list of stable dir mirrors -- they're not
  141. trusted like the authorities, but they'll provide more robustness
  142. and diversity for bootstrapping clients.
  143. - Better estimates in the directory of whether servers have good uptime
  144. (high expected time to failure) or good guard qualities (high
  145. fractional uptime).
  146. - AKA Track uptime as %-of-time-up, as well as time-since-last-down
  147. o Implement tracking
  148. - Make uptime info persist too.
  149. - Base Guard on weighted fractional uptime.
  150. - Make TrackHostExits expire TrackHostExitsExpire seconds after their
  151. *last* use, not their *first* use.
  152. - Limit to 2 dir, 2 OR, N SOCKS connections per IP.
  153. - Or maybe close connections from same IP when we get a lot from one.
  154. - Or maybe block IPs that connect too many times at once.
  155. - add an AuthDirBadexit torrc option if we decide we want one.
  156. - Testing
  157. N - Hack up a client that gives out weird/no certificates, so we can
  158. test to make sure that this doesn't cause servers to crash.
  159. - Deprecations:
  160. - can we deprecate 'getinfo network-status'?
  161. - can we deprecate the FastFirstHopPK config option?
  162. - Documentation
  163. - HOWTO for DNSPort.
  164. - Quietly document NT Service options
  165. - More prominently, we should have a recommended apps list.
  166. - recommend pidgin (gaim is renamed)
  167. - unrecommend IE because of ftp:// bug.
  168. - we should add a preamble to tor-design saying it's out of date.
  169. . Document transport and natdport in a good HOWTO.
  170. - Publicize torel. (What else?
  171. . Finish path-spec.txt
  172. P - Packaging:
  173. P - Can we switch to polipo? Please?
  174. P - Make documentation realize that location of system configuration file
  175. will depend on location of system defaults, and isn't always /etc/torrc.
  176. P - If we haven't replaced privoxy, lock down its configuration in all
  177. packages, as documented in tor-doc-unix.html
  178. P - Figure out why dll's compiled in mingw don't work right in WinXP.
  179. P - Create packages for Nokia 800, requested by Chris Soghoian
  180. P - Consider creating special Tor-Polipo-Vidalia test packages,
  181. requested by Dmitri Vitalev
  182. - Get Vidalia supporting protocolinfo and using auth by default.
  183. Nice-to-have items for 0.2.0.x, time permitting:
  184. - Proposals
  185. - 113: Simplifying directory authority administration
  186. - 110: prevent infinite-length circuits (phase one)
  187. . Robust decentralized storage for hidden service descriptors.
  188. (Karsten is working on this; proposal 114.)
  189. - 118: Listen on and advertise multiple ports:
  190. - Tor should be able to have a pool of outgoing IP addresses that it is
  191. able to rotate through. (maybe. Possible overlap with proposal 118.)
  192. - config option to publish what ports you listen on, beyond
  193. ORPort/DirPort. It should support ranges and bit prefixes (?) too.
  194. (This is very similar to proposal 118.)
  195. - 117: IPv6 Exits
  196. - Internal code support for ipv6:
  197. o Clone ipv6 functions (inet_ntop, inet_pton) where they don't exist.
  198. - Most address variables need to become tor_addr_t
  199. - Teach resolving code how to handle ipv6.
  200. - Teach exit policies about ipv6 (consider ipv4/ipv6 interaction!)
  201. - Features
  202. - Let controller set router flags for authority to transmit, and for
  203. client to use.
  204. - add an 'exit-address' line in the descriptor for servers that exit
  205. from something that isn't their published address.
  206. - Clients should estimate their skew as median of skew from servers
  207. over last N seconds.
  208. - More work on AvoidDiskWrites?
  209. - Protocol work
  210. - MAYBE kill stalled circuits rather than stalled connections. This is
  211. possible thanks to cell queues, but we need to consider the anonymity
  212. implications.
  213. - Implement TLS shutdown properly when possible.
  214. - Low-priority bugs:
  215. - we try to build 4 test circuits to break them over different
  216. servers. but sometimes our entry node is the same for multiple
  217. test circuits. this defeats the point.
  218. - If the client's clock is too far in the past, it will drop (or just not
  219. try to get) descriptors, so it'll never build circuits.
  220. - Refactoring:
  221. - Move all status info out of routerinfo into local_routerstatus. Make
  222. "who can change what" in local_routerstatus explicit. Make
  223. local_routerstatus (or equivalent) subsume all places to go for "what
  224. router is this?"
  225. - Build:
  226. - Detect correct version of libraries from autoconf script.
  227. - Documentation:
  228. - Review torrc.sample to make it more discursive.
  229. Deferred from 0.2.0.x:
  230. - Features
  231. - Make a TCP DNSPort
  232. - Refactoring
  233. - Make resolves no longer use edge_connection_t unless they are actually
  234. _on_ a socks connection: have edge_connection_t and (say)
  235. dns_request_t both extend an edge_stream_t, and have p_streams and
  236. n_streams both be linked lists of edge_stream_t.
  237. - Generate torrc.{complete|sample}.in, tor.1.in, the HTML manual, and the
  238. online config documentation from a single source.
  239. - Blocking/scanning-resistance
  240. - It would be potentially helpful to https requests on the OR port by
  241. acting like an HTTPS server.
  242. - Do we want to maintain our own set of entryguards that we use as
  243. next hop after the bridge? Open research question; let's say no
  244. for 0.2.0 unless we learn otherwise.
  245. - Should do reachability testing but only on the purpose==bridge
  246. descriptors we have.
  247. - Some mechanism for specifying that we want to stop using a cached
  248. bridge.
  249. Future versions:
  250. - See also Flyspray tasks.
  251. - See also all OPEN/ACCEPTED proposals.
  252. - See also all items marked XXXX and FFFF in the code.
  253. - Protocol:
  254. - Our current approach to block attempts to use Tor as a single-hop proxy
  255. is pretty lame; we should get a better one.
  256. - Allow small cells and large cells on the same network?
  257. - Cell buffering and resending. This will allow us to handle broken
  258. circuits as long as the endpoints don't break, plus will allow
  259. connection (tls session key) rotation.
  260. - Implement Morphmix, so we can compare its behavior, complexity,
  261. etc. But see paper breaking morphmix.
  262. - Other transport. HTTP, udp, rdp, airhook, etc. May have to do our own
  263. link crypto, unless we can bully DTLS into it.
  264. - Need a relay teardown cell, separate from one-way ends.
  265. (Pending a user who needs this)
  266. - Handle half-open connections: right now we don't support all TCP
  267. streams, at least according to the protocol. But we handle all that
  268. we've seen in the wild.
  269. (Pending a user who needs this)
  270. - Directory system
  271. - BEGIN_DIR items
  272. - turn the received socks addr:port into a digest for setting .exit
  273. - handle connect-dir streams that don't have a chosen_exit_name set.
  274. - Have a "Faster" status flag that means it. Fast2, Fast4, Fast8?
  275. - Add an option (related to AvoidDiskWrites) to disable directory
  276. caching. (Is this actually a good idea??)
  277. - Add d64 and fp64 along-side d and fp so people can paste status
  278. entries into a url. since + is a valid base64 char, only allow one
  279. at a time. Consider adding to controller as well.
  280. - Some back-out mechanism for auto-approval on authorities
  281. - a way of rolling back approvals to before a timestamp
  282. - Consider minion-like fingerprint file/log combination.
  283. - Have new people be in limbo and need to demonstrate usefulness
  284. before we approve them.
  285. - Hidden services:
  286. - Standby/hotswap/redundant hidden services.
  287. . Update the hidden service stuff for the new dir approach. (Much
  288. of this will be superseded by 114.)
  289. - switch to an ascii format, maybe sexpr?
  290. - authdirservers publish blobs of them.
  291. - other authdirservers fetch these blobs.
  292. - hidserv people have the option of not uploading their blobs.
  293. - you can insert a blob via the controller.
  294. - and there's some amount of backwards compatibility.
  295. - teach clients, intro points, and hidservs about auth mechanisms.
  296. - come up with a few more auth mechanisms.
  297. - auth mechanisms to let hidden service midpoint and responder filter
  298. connection requests.
  299. - Let each hidden service (or other thing) specify its own
  300. OutboundBindAddress?
  301. - Hidserv offerers shouldn't need to define a SocksPort
  302. - Server operation
  303. - When we notice a 'Rejected: There is already a named server with
  304. this nickname' message... or maybe instead when we see in the
  305. networkstatuses that somebody else is Named with the name we
  306. want: warn the user, send a STATUS_SERVER message, and fall back
  307. to unnamed.
  308. - If the server is spewing complaints about raising your ulimit -n,
  309. we should add a note about this to the server descriptor so other
  310. people can notice too.
  311. - When we hit a funny error from a dir request (eg 403 forbidden),
  312. but tor is working and happy otherwise, and we haven't seen many
  313. such errors recently, then don't warn about it.
  314. - Controller
  315. - A way to adjust router flags from the controller. (How do we
  316. prevent the authority from clobbering them soon afterward?)
  317. - Implement missing status events and accompanying getinfos
  318. - DIR_REACHABLE
  319. - BAD_DIR_RESPONSE (Unexpected directory response; maybe we're behind
  320. a firewall.)
  321. - BAD_PROXY (Bad http or https proxy)
  322. - UNRECOGNIZED_ROUTER (a nickname we asked for is unavailable)
  323. - Status events related to hibernation
  324. - something about failing to parse our address?
  325. from resolve_my_address() in config.c
  326. - sketchy OS, sketchy threading
  327. - too many onions queued: threading problems or slow CPU?
  328. - Implement missing status event fields:
  329. - TIMEOUT on CHECKING_REACHABILITY
  330. - GETINFO status/client, status/server, status/general: There should be
  331. some way to learn which status events are currently "in effect."
  332. We should specify which these are, what format they appear in, and so
  333. on.
  334. - More information in events:
  335. - Include bandwidth breakdown by conn->type in BW events.
  336. - Change circuit status events to give more details, like purpose,
  337. whether they're internal, when they become dirty, when they become
  338. too dirty for further circuits, etc.
  339. - Change stream status events analogously.
  340. - Expose more information via getinfo:
  341. - import and export rendezvous descriptors
  342. - Review all static fields for additional candidates
  343. - Allow EXTENDCIRCUIT to unknown server.
  344. - We need some way to adjust server status, and to tell tor not to
  345. download directories/network-status, and a way to force a download.
  346. - Make everything work with hidden services
  347. - Performance/resources
  348. - per-conn write buckets
  349. - separate config options for read vs write limiting
  350. (It's hard to support read > write, since we need better
  351. congestion control to avoid overfull buffers there. So,
  352. defer the whole thing.)
  353. - Investigate RAM use in directory authorities.
  354. - Look into pulling serverdescs off buffers as they arrive.
  355. - Rate limit exit connections to a given destination -- this helps
  356. us play nice with websites when Tor users want to crawl them; it
  357. also introduces DoS opportunities.
  358. - Consider truncating rather than destroying failed circuits,
  359. in order to save the effort of restarting. There are security
  360. issues here that need thinking, though.
  361. - Handle full buffers without totally borking
  362. - Rate-limit OR and directory connections overall and per-IP and
  363. maybe per subnet.
  364. - Misc
  365. - Hold-open-until-flushed now works by accident; it should work by
  366. design.
  367. - Display the reasons in 'destroy' and 'truncated' cells under
  368. some circumstances?
  369. - Make router_is_general_exit() a bit smarter once we're sure what
  370. it's for.
  371. - Automatically determine what ports are reachable and start using
  372. those, if circuits aren't working and it's a pattern we
  373. recognize ("port 443 worked once and port 9001 keeps not
  374. working").
  375. - Security
  376. - some better fix for bug #516?
  377. - don't do dns hijacking tests if we're reject *:* exit policy?
  378. (deferred until 0.1.1.x is less common)
  379. - Directory guards
  380. - Mini-SoaT:
  381. - Servers might check certs for known-good ssl websites, and if
  382. they come back self-signed, declare themselves to be
  383. non-exits. Similar to how we test for broken/evil dns now.
  384. - Authorities should try using exits for http to connect to some
  385. URLS (specified in a configuration file, so as not to make the
  386. List Of Things Not To Censor completely obvious) and ask them
  387. for results. Exits that don't give good answers should have
  388. the BadExit flag set.
  389. - Alternatively, authorities should be able to import opinions
  390. from Snakes on a Tor.
  391. - More consistent error checking in router_parse_entry_from_string().
  392. I can say "banana" as my bandwidthcapacity, and it won't even squeak.
  393. - Bind to random port when making outgoing connections to Tor servers,
  394. to reduce remote sniping attacks.
  395. - Audit everything to make sure rend and intro points are just as
  396. likely to be us as not.
  397. - Do something to prevent spurious EXTEND cells from making
  398. middleman nodes connect all over. Rate-limit failed
  399. connections, perhaps?
  400. - DoS protection: TLS puzzles, public key ops, bandwidth exhaustion.
  401. - Bridges
  402. - Tolerate clock skew on bridge relays.
  403. - Needs thinking
  404. - Now that we're avoiding exits when picking non-exit positions,
  405. we need to consider how to pick nodes for internal circuits. If
  406. we avoid exits for all positions, we skew the load balancing. If
  407. we accept exits for all positions, we leak whether it's an
  408. internal circuit at every step. If we accept exits only at the
  409. last hop, we reintroduce Lasse's attacks from the Oakland paper.
  410. - Windows server usability
  411. - Solve the ENOBUFS problem.
  412. - make tor's use of openssl operate on buffers rather than sockets,
  413. so we can make use of libevent's buffer paradigm once it has one.
  414. - make tor's use of libevent tolerate either the socket or the
  415. buffer paradigm; includes unifying the functions in connect.c.
  416. - We need a getrlimit equivalent on Windows so we can reserve some
  417. file descriptors for saving files, etc. Otherwise we'll trigger
  418. asserts when we're out of file descriptors and crash.
  419. - Merge code from Urz into libevent
  420. - Make Tor use evbuffers.
  421. - Documentation
  422. - a way to generate the website diagrams from source, so we can
  423. translate them as utf-8 text rather than with gimp. (svg? or
  424. imagemagick?)
  425. . Flesh out options_description array in src/or/config.c
  426. . multiple sample torrc files
  427. . figure out how to make nt service stuff work?
  428. . Document it.
  429. - Refactor tor man page to divide generally useful options from
  430. less useful ones?
  431. - Add a doxygen style checker to make check-spaces so nick doesn't drift
  432. too far from arma's undocumented styleguide. Also, document that
  433. styleguide in HACKING. (See r9634 for example.)
  434. - exactly one space at beginning and at end of comments, except i
  435. guess when there's line-length pressure.
  436. - if we refer to a function name, put a () after it.
  437. - only write <b>foo</b> when foo is an argument to this function.
  438. - doxygen comments must always end in some form of punctuation.
  439. - capitalize the first sentence in the doxygen comment, except
  440. when you shouldn't.
  441. - avoid spelling errors and incorrect comments. ;)
  442. - Packaging
  443. - The Debian package now uses --verify-config when (re)starting,
  444. to distinguish configuration errors from other errors. Perhaps
  445. the RPM and other startup scripts should too?
  446. - add a "default.action" file to the tor/vidalia bundle so we can
  447. fix the https thing in the default configuration:
  448. http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ#PrivoxyWeirdSSLPort
  449. - Related tools
  450. - Patch privoxy and socks protocol to pass strings to the browser.
  451. Documentation, non-version-specific.
  452. - Specs
  453. - Mark up spec; note unclear points about servers
  454. NR - write a spec appendix for 'being nice with tor'
  455. - Specify the keys and key rotation schedules and stuff
  456. - Mention controller libs someplace.
  457. - Remove need for HACKING file.
  458. P - document http://wiki.noreply.org/noreply/TheOnionRouter/TransparentProxy on freebsd and osx
  459. P - figure out why x86_64 won't build rpms from tor.spec
  460. P - figure out spec files for bundles of vidalia-tor-polipo
  461. P - figure out polipo install scripts for bundles of vidalia-tor-polipo on osx, win32
  462. P - figure out selinux policy for tor
  463. P - change packaging system to more automated and specific for each
  464. platform, suggested by Paul Wouter
  465. P - Setup repos for redhat and suse rpms & start signing the rpms the
  466. way package management apps prefer
  467. Website:
  468. P - tor-in-the-media page
  469. - more pictures from ren. he wants to describe the tor handshake
  470. - Figure out licenses for website material.
  471. P - put the logo on the website, in source form, so people can put it on
  472. stickers directly, etc.
  473. P - put the source image for the stickers on the website, so people can
  474. print their own
  475. P - figure out a license for the logos and docs we publish
  476. R - make a page with the hidden service diagrams.
  477. P - ask Jan/Jens to be the translation coordinator? add to volunteer page.
  478. - add a page for localizing all tor's components.
  479. - It would be neat if we had a single place that described _all_ the
  480. tor-related tools you can use, and what they give you, and how well they
  481. work. Right now, we don't give a lot of guidance wrt
  482. torbutton/foxproxy/privoxy/polipo in any consistent place.