136-legacy-keys.txt 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. Filename: 136-legacy-keys.txt
  2. Title: Mass authority migration with legacy keys
  3. Author: Nick Mathewson
  4. Created: 13-May-2008
  5. Status: Finished
  6. Overview:
  7. This document describes a mechanism to change the keys of more than
  8. half of the directory servers at once without breaking old clients
  9. and caches immediately.
  10. Motivation:
  11. If a single authority's identity key is believed to be compromised,
  12. the solution is obvious: remove that authority from the list,
  13. generate a new certificate, and treat the new cert as belonging to a
  14. new authority. This approach works fine so long as less than 1/2 of
  15. the authority identity keys are bad.
  16. Unfortunately, the mass-compromise case is possible if there is a
  17. sufficiently bad bug in Tor or in any OS used by a majority of v3
  18. authorities. Let's be prepared for it!
  19. We could simply stop using the old keys and start using new ones,
  20. and tell all clients running insecure versions to upgrade.
  21. Unfortunately, this breaks our cacheing system pretty badly, since
  22. caches won't cache a consensus that they don't believe in. It would
  23. be nice to have everybody become secure the moment they upgrade to a
  24. version listing the new authority keys, _without_ breaking upgraded
  25. clients until the caches upgrade.
  26. So, let's come up with a way to provide a time window where the
  27. consensuses are signed with the new keys and with the old.
  28. Design:
  29. We allow directory authorities to list a single "legacy key"
  30. fingerprint in their votes. Each authority may add a single legacy
  31. key. The format for this line is:
  32. legacy-dir-key FINGERPRINT
  33. We describe a new consensus method for generating directory
  34. consensuses. This method is consensus method "3".
  35. When the authorities decide to use method "3" (as described in 3.4.1
  36. of dir-spec.txt), for every included vote with a legacy-dir-key line,
  37. the consensus includes an extra dir-source line. The fingerprint in
  38. this extra line is as in the legacy-dir-key line. The ports and
  39. addresses are in the dir-source line. The nickname is as in the
  40. dir-source line, with the string "-legacy" appended.
  41. [We need to include this new dir-source line because the code
  42. won't accept or preserve signatures from authorities not listed
  43. as contributing to the consensus.]
  44. Authorities using legacy dir keys include two signatures on their
  45. consensuses: one generated with a signing key signed with their real
  46. signing key, and another generated with a signing key signed with
  47. another signing key attested to by their identity key. These
  48. signing keys MUST be different. Authorities MUST serve both
  49. certificates if asked.
  50. Process:
  51. In the event of a mass key failure, we'll follow the following
  52. (ugly) procedure:
  53. - All affected authorities generate new certificates and identity
  54. keys, and circulate their new dirserver lines. They copy their old
  55. certificates and old broken keys, but put them in new "legacy
  56. key files".
  57. - At the earliest time that can be arranged, the authorities
  58. replace their signing keys, identity keys, and certificates
  59. with the new uncompromised versions, and update to the new list
  60. of dirserer lines.
  61. - They add an "V3DirAdvertiseLegacyKey 1" option to their torrc.
  62. - Now, new consensuses will be generated using the new keys, but
  63. the results will also be signed with the old keys.
  64. - Clients and caches are told they need to upgrade, and given a
  65. time window to do so.
  66. - At the end of the time window, authorities remove the
  67. V3DirAdvertiseLegacyKey option.
  68. Notes:
  69. It might be good to get caches to cache consensuses that they do not
  70. believe in. I'm not sure the best way of how to do this.
  71. It's a superficially neat idea to have new signing keys and have
  72. them signed by the new and by the old authority identity keys. This
  73. breaks some code, though, and doesn't actually gain us anything,
  74. since we'd still need to include each signature twice.
  75. It's also a superficially neat idea, if identity keys and signing
  76. keys are compromised, to at least replace all the signing keys.
  77. I don't think this achieves us anything either, though.