summaryrefslogtreecommitdiff
path: root/website/bugs/revoke-hostname-revoking-wrong-userid.mdwm
blob: 5c2c508d043e1851f7b625a17590ce3b96b998a4 (plain)
  1. [[meta title="revoke-hostname function revokes wrong hostname user ID"]]
  2. It appears that the monkeysphere-server revoke-hostname function will
  3. occasionaly revoke the wrong hostname. I say occasionally, but it
  4. seems to be doing it pretty consistently for me at the moment:
  5. servo:~ 0$ sudo monkeysphere-server n- servo.finestructure.net
  6. The following host key user ID will be revoked:
  7. ssh://servo.finestructure.net
  8. Are you sure you would like to revoke this user ID? (y/N) y
  9. gpg (GnuPG) 1.4.9; Copyright (C) 2008 Free Software Foundation, Inc.
  10. This is free software: you are free to change and redistribute it.
  11. There is NO WARRANTY, to the extent permitted by law.
  12. Secret key is available.
  13. pub 1024R/9EEAC276 created: 2008-07-10 expires: never usage: CA
  14. trust: ultimate validity: ultimate
  15. [ultimate] (1) ssh://localhost.localdomain
  16. [ultimate] (2). ssh://servo.finestructure.net
  17. [ revoked] (3) ssh://jamie.rollins
  18. [ revoked] (4) asdfsdflkjsdf
  19. [ revoked] (5) ssh://asdfsdlf.safsdf
  20. [ revoked] (6) ssh://bar.baz
  21. [ revoked] (7) ssh://foo.bar
  22. [ revoked] (8) ssh://
  23. pub 1024R/9EEAC276 created: 2008-07-10 expires: never usage: CA
  24. trust: ultimate validity: ultimate
  25. [ultimate] (1)* ssh://localhost.localdomain
  26. [ultimate] (2). ssh://servo.finestructure.net
  27. [ revoked] (3) ssh://jamie.rollins
  28. [ revoked] (4) asdfsdflkjsdf
  29. [ revoked] (5) ssh://asdfsdlf.safsdf
  30. [ revoked] (6) ssh://bar.baz
  31. [ revoked] (7) ssh://foo.bar
  32. [ revoked] (8) ssh://
  33. Please select the reason for the revocation:
  34. 0 = No reason specified
  35. 4 = User ID is no longer valid
  36. Q = Cancel
  37. (Probably you want to select 4 here)
  38. Enter an optional description; end it with an empty line:
  39. Reason for revocation: User ID is no longer valid
  40. Hostname removed by monkeysphere-server 2008-08-16T17:34:02
  41. pub 1024R/9EEAC276 created: 2008-07-10 expires: never usage: CA
  42. trust: ultimate validity: ultimate
  43. [ revoked] (1) ssh://localhost.localdomain
  44. [ultimate] (2). ssh://servo.finestructure.net
  45. [ revoked] (3) ssh://jamie.rollins
  46. [ revoked] (4) asdfsdflkjsdf
  47. [ revoked] (5) ssh://asdfsdlf.safsdf
  48. [ revoked] (6) ssh://bar.baz
  49. [ revoked] (7) ssh://foo.bar
  50. [ revoked] (8) ssh://
  51. gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
  52. gpg: depth: 0 valid: 1 signed: 2 trust: 0-, 0q, 0n, 0m, 0f, 1u
  53. gpg: depth: 1 valid: 2 signed: 0 trust: 0-, 0q, 0n, 0m, 2f, 0u
  54. gpg: next trustdb check due at 2012-01-07
  55. sec 1024R/9EEAC276 2008-07-10
  56. Key fingerprint = C094 43E0 6882 8BE2 E9AD 516C 45CF 974D 9EEA C276
  57. uid ssh://servo.finestructure.net
  58. uid [ revoked] ssh://localhost.localdomain
  59. uid [ revoked] ssh://jamie.rollins
  60. uid [ revoked] asdfsdflkjsdf
  61. uid [ revoked] ssh://asdfsdlf.safsdf
  62. uid [ revoked] ssh://bar.baz
  63. uid [ revoked] ssh://foo.bar
  64. uid [ revoked] ssh://
  65. NOTE: User ID revoked, but revokation not published.
  66. Run 'monkeysphere-server publish-key' to publish the revocation.
  67. servo:~ 0$
  68. Clearly this is unacceptable. Because of more inadequacies in gpg,
  69. you can't specify a uid to revoke from the command line. The uid
  70. revokation requires an edit-key script, which we have used before, but
  71. you have to specify by "number" which uid to revoke. We currently try
  72. to guess the number from the ordering of the output of list-key. This
  73. however is not always accurate. I don't have a good solution for a
  74. fix at the moment. Suggestions are most welcome. It may just require
  75. some trial and error with edit-key to come up with something workable.
  76. This underlines the problem that gpg sucks ass as a tool for
  77. manipulating gpg keyrings non-interactively. This is a big problem.
  78. We need something better that we can use. I would gladly rewrite
  79. everything if there was a better tool out there, but I don't know of
  80. one.
  81. -- Big Jimmy.