TODO 14 KB

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