TODO 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. Legend:
  2. SPEC!! - Not specified
  3. SPEC - Spec not finalized
  4. NICK - nick claims
  5. ARMA - arma claims
  6. - Not done
  7. * Top priority
  8. . Partially done
  9. o Done
  10. D Deferred
  11. X Abandoned
  12. Bugs:
  13. - should maybe make clients exit(1) when bad things happen?
  14. e.g. clock skew.
  15. o client-side dns cache doesn't appear to be getting populated
  16. by 'connected' cells. In fact, the 'connected' cells don't even
  17. include the IP.
  18. o When it can't resolve any dirservers, it is useless from then on.
  19. We should make it reload the RouterFile if it has no dirservers.
  20. o Sometimes it picks a middleman node as the exit for a circuit.
  21. o if you specify a non-dirserver as exitnode or entrynode, when it
  22. makes the first few circuits it hasn't yet fetched the directory,
  23. so it warns that it doesn't know the node.
  24. o make 'make test' exit(1) if a test fails.
  25. . fix buffer unit test so it passes
  26. Short-term:
  27. o put IP into the descriptor, so clients don't need to resolve things
  28. o when you hup, rewrite the router.desc file (and maybe others)
  29. - consider handling broken socks4 implementations
  30. - improve how it behaves when i remove a line from the approved-routers files
  31. - Make tls connections tls_close intentionally
  32. - Add '[...truncated]' or similar to truncated log entries (like the directory
  33. in connection_dir_process_inbuf()).
  34. - Make logs handle it better when writing to them fails.
  35. o Rename ACI to circID
  36. . integrate rep_ok functions, see what breaks
  37. - update tor faq
  38. o obey SocksBindAddress, ORBindAddress
  39. o warn if we're running as root
  40. o make connection_flush_buf() more obviously obsolete
  41. o let hup reread the config file, eg so we can get new exit
  42. policies without restarting
  43. o Put recommended_versions in a config entry
  44. X use times(2) rather than gettimeofday to measure how long it
  45. takes to process a cell
  46. o Separate trying to rebuild a circuit because you have none from trying
  47. to rebuild a circuit because the current one is stale
  48. X Continue reading from socks port even while waiting for connect.
  49. o Exit policies
  50. o Spec how to write the exit policies
  51. o Path selection algorithms
  52. o Choose path more incrementally
  53. o Let user request first/last node
  54. o And disallow certain nodes
  55. D Choose path by jurisdiction, etc?
  56. o Make relay end cells have failure status and payload attached
  57. X let non-approved routers handshake.
  58. X Dirserver shouldn't put you in running-routers list if you haven't
  59. uploaded a descriptor recently
  60. X migrate to using nickname rather than addr:port for routers
  61. - migrate to using IPv6 sizes everywhere
  62. o Move from onions to ephemeral DH
  63. o incremental path building
  64. o transition circuit-level sendmes to hop-level sendmes
  65. o implement truncate, truncated
  66. o move from 192byte DH to 128byte DH, so it isn't so damn slow
  67. X exiting from not-last hop
  68. X OP logic to decide to extend/truncate a path
  69. X make sure exiting from the not-last hop works
  70. X logic to find last *open* hop, not last hop, in cpath
  71. o Remember address and port when beginning.
  72. - Extend by nickname/hostname/something, not by IP.
  73. - Need a relay teardown cell, separate from one-way ends.
  74. X remove per-connection rate limiting
  75. - Make it harder to circumvent bandwidth caps: look at number of bytes
  76. sent across sockets, not number sent inside TLS stream.
  77. On-going
  78. . Better comments for functions!
  79. . Go through log messages, reduce confusing error messages.
  80. . make the logs include more info (fd, etc)
  81. . Unit tests
  82. . Update the spec so it matches the code
  83. Mid-term:
  84. - Rotate tls-level connections -- make new ones, expire old ones.
  85. So we get actual key rotation, not just symmetric key rotation
  86. o Are there anonymity issues with sequential streamIDs? Sequential
  87. circIDs? Eg an attacker can learn how many there have been.
  88. The fix is to initialize them randomly rather than at 1.
  89. - Look at having smallcells and largecells
  90. . Redo scheduler
  91. o fix SSL_read bug for buffered records
  92. - make round-robining more fair
  93. - What happens when a circuit's length is 1? What breaks?
  94. . streams / circuits
  95. o Implement streams
  96. o Rotate circuits after N minutes?
  97. X Circuits should expire when circuit->expire triggers
  98. NICK . Handle half-open connections
  99. o openssh is an application that uses half-open connections
  100. o Figure out what causes connections to close, standardize
  101. when we mark a connection vs when we tear it down
  102. o Look at what ssl does to keep from mutating data streams
  103. o Put CPU workers in separate processes
  104. o Handle multiple cpu workers (one for each cpu, plus one)
  105. o Queue for pending tasks if all workers full
  106. o Support the 'process this onion' task
  107. D Merge dnsworkers and cpuworkers to some extent
  108. o Handle cpuworkers dying
  109. . Scrubbing proxies
  110. - Find an smtp proxy?
  111. - Check the old smtp proxy code
  112. o Find an ftp proxy? wget --passive
  113. D Wait until there are packet redirectors for Linux
  114. . Get socks4a support into Mozilla
  115. . Develop rendezvous points
  116. X Handle socks commands other than connect, eg, bind?
  117. o Design
  118. - Spec
  119. - Implement
  120. . Tests
  121. o Testing harness/infrastructure
  122. D System tests (how?)
  123. - Performance tests, so we know when we've improved
  124. . webload infrastructure (Bruce)
  125. . httperf infrastructure (easy to set up)
  126. . oprofile (installed in RH >8.0)
  127. NICK . Daemonize and package
  128. o Teach it to fork and background
  129. . Red Hat spec file
  130. o Debian spec file equivalent
  131. . Portability
  132. . Which .h files are we actually using?
  133. . Port to:
  134. o Linux
  135. o BSD
  136. . Solaris
  137. o Cygwin
  138. . Win32
  139. o OS X
  140. - deal with pollhup / reached_eof on all platforms
  141. o openssl randomness
  142. o inet_ntoa
  143. o stdint.h
  144. - Make a script to set up a local network on your machine
  145. o More flexibility in node addressing
  146. D Support IPv6 rather than just 4
  147. o Handle multihomed servers (config variable to set IP)
  148. In the distant future:
  149. D Load balancing between router twins
  150. D Keep track of load over links/nodes, to
  151. know who's hosed
  152. SPEC!! D Non-clique topologies
  153. D Implement our own memory management, at least for common structs
  154. (Not ever necessary?)
  155. D Advanced directory servers
  156. D Automated reputation management
  157. SPEC!! D Figure out how to do threshold directory servers
  158. D jurisdiction info in dirserver entries? other info?
  159. Older (done) todo stuff:
  160. For 0.0.2pre17:
  161. o Put a H(K | handshake) into the onionskin response
  162. o Make cells 512 bytes
  163. o Reduce streamid footprint from 7 bytes to 2 bytes
  164. X Check for collisions in streamid (now possible with
  165. just 2 bytes), and back up & replace with padding if so
  166. o Use the 4 reserved bytes in each cell header to keep 1/5
  167. of a sha1 of the ongoing relay payload (move into stream header)
  168. o Move length into the stream header too
  169. o Make length 2 bytes
  170. D increase DH key length
  171. D increase RSA key length
  172. D Spec the stream_id stuff. Clarify that nobody on the backward
  173. stream should look at stream_id.
  174. Cell:
  175. ACI (anonymous circuit identifier) [2 bytes]
  176. Command [1 byte]
  177. Payload (padded with 0 bytes) [509 bytes]
  178. Relay payload:
  179. Relay command [1 byte]
  180. Stream ID [7 bytes]
  181. Partial SHA-1 [4 bytes]
  182. Length [2 bytes]
  183. Relay payload [495 bytes]
  184. For 0.0.2pre15:
  185. o don't pick exit nodes which will certainly reject all things.
  186. o don't pick nodes that the directory says are down
  187. o choose randomly from running dirservers, not just first one
  188. o install the man page
  189. o warn when client-side tries an address/port which no router in the dir accepts.
  190. For 0.0.2pre14:
  191. o More flexible exit policies (18.*, 18.0.0.0/8)
  192. o Work to succeed in the precense of exit policy violation
  193. o Replace desired_path_len with opaque path-selection specifier
  194. o Client-side DNS caching
  195. o Add entries to client DNS cache based on END cells
  196. o Remove port from END_REASON_EXITPOLICY cells
  197. o Start building new circuits when we get an exit-policy
  198. failure. (Defer exiting from the middle of existing
  199. circuits or extending existing circuits for later.)
  200. o Implement function to check whether a routerinfo_t
  201. supports a given exit addr.
  202. o Choose the exit node of an in-progress circuit based on
  203. pending AP connections.
  204. o Choose the exit node _first_, then beginning, then
  205. middle nodes.
  206. Previous:
  207. o Get tor to act like a socks server
  208. o socks4, socks4a
  209. o socks5
  210. o routers have identity key, link key, onion key.
  211. o link key certs are
  212. D signed by identity key
  213. D not in descriptor
  214. o not in config
  215. D not on disk
  216. o identity and onion keys are in descriptor (and disk)
  217. o upon boot, if it doesn't find identity key, generate it and write it.
  218. o also write a file with the identity key fingerprint in it
  219. o router generates descriptor: flesh out router_get_my_descriptor()
  220. o Routers sign descriptors with identity key
  221. o routers put version number in descriptor
  222. o routers should maybe have `uname -a` in descriptor?
  223. o Give nicknames to routers
  224. o in config
  225. o in descriptors
  226. o router posts descriptor
  227. o when it boots
  228. o every DirFetchPostPeriod seconds
  229. D when it changes
  230. o change tls stuff so certs don't get written to disk, or read from disk
  231. o make directory.c 'thread'safe
  232. o dirserver parses descriptor
  233. o dirserver checks signature
  234. D client checks signature?
  235. o dirserver writes directory to file
  236. o reads that file upon boot
  237. o directory includes all routers, up and down
  238. o add "up" line to directory, listing nicknames
  239. o instruments ORs to report stats
  240. o average cell fullness
  241. o average bandwidth used
  242. o configure log files. separate log file, separate severities.
  243. o what assumptions break if we fclose(0) when we daemonize?
  244. o make buffer struct elements opaque outside buffers.c
  245. o add log convention to the HACKING file
  246. o make 'make install' do the right thing
  247. o change binary name to tor
  248. o change config files so you look at commandline, else look in
  249. /etc/torrc. no cascading.
  250. o have an absolute datadir with fixed names for files, and fixed-name
  251. keydir under that with fixed names
  252. o Move (most of) the router/directory code out of main.c
  253. o Simple directory servers
  254. o Include key in source; sign directories
  255. o Signed directory backend
  256. o Document
  257. o Integrate
  258. o Add versions to code
  259. o Have directories list recommended-versions
  260. o Include line in directories
  261. o Check for presence of line.
  262. o Quit if running the wrong version
  263. o Command-line option to override quit
  264. o Add more information to directory server entries
  265. o Exit policies
  266. o Clearer bandwidth management
  267. o Do we want to remove bandwidth from OR handshakes?
  268. o What about OP handshakes?
  269. X Move away from openssl
  270. o Abstract out crypto calls
  271. X Look at nss, others? Just include code?
  272. o Use a stronger cipher
  273. o aes now, by including the code ourselves
  274. X On the fly compression of each stream
  275. o Clean up the event loop (optimize and sanitize)
  276. o Remove that awful concept of 'roles'
  277. o Terminology
  278. o Circuits, topics, cells stay named that
  279. o 'Connection' gets divided, or renamed, or something?
  280. o DNS farm
  281. o Distribute queries onto the farm, get answers
  282. o Preemptively grow a new worker before he's needed
  283. o Prune workers when too many are idle
  284. o DNS cache
  285. o Clear DNS cache over time
  286. D Honor DNS TTL info (how??)
  287. o Have strategy when all workers are busy
  288. o Keep track of which connections are in dns_wait
  289. o Need to cache positives/negatives on the tor side
  290. o Keep track of which queries have been asked
  291. o Better error handling when
  292. o An address doesn't resolve
  293. o We have max workers running
  294. o Consider taking the master out of the loop?
  295. X Implement reply onions
  296. o Total rate limiting
  297. o Look at OR handshake in more detail
  298. o Spec it
  299. o Merge OR and OP handshakes
  300. o rearrange connection_or so it doesn't suck so much to read
  301. D Periodic link key rotation. Spec?
  302. o wrap malloc with something that explodes when it fails
  303. o Clean up the number of places that get to look at prkey