TODO 15 KB

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