TODO 12 KB

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