TODO 13 KB

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