TODO 15 KB

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