Page MenuHomePhabricator

Standardize SSH key storage
ClosedPublic

Authored by epriestley on Nov 7 2014, 1:12 PM.
Tags
None
Referenced Files
F19081262: D10805.id.diff
Dec 2 2025, 5:22 AM
F19075655: D10805.diff
Dec 1 2025, 10:41 AM
F18884735: D10805.diff
Nov 7 2025, 1:42 AM
F18851925: D10805.id.diff
Oct 31 2025, 5:21 AM
F18849596: D10805.diff
Oct 30 2025, 10:53 AM
F18834897: D10805.id.diff
Oct 26 2025, 11:40 AM
F18766624: D10805.id25930.diff
Oct 7 2025, 5:36 PM
F18752266: D10805.diff
Oct 4 2025, 2:41 PM
Subscribers
Tokens
"Doubloon" token, awarded by btrahan.

Details

Summary

Ref T5833. This fixes a few weird things with this table:

  • A bunch of columns were nullable for no reason.
  • We stored an MD5 hash of the key (unusual) but never used it and callers were responsible for manually populating it.
  • We didn't perform known-key-text lookups by using an index.
Test Plan
  • Ran migrations.
  • Faked duplicate keys, saw them clean up correctly.
  • Added new keys.
  • Generated new keys.
  • Used bin/auth-ssh and bin/auth-ssh-key.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Standardize SSH key storage.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Nov 7 2014, 5:01 PM
This revision was automatically updated to reflect the committed changes.