Page MenuHomePhabricator

Standardize SSH key storage
ClosedPublic

Authored by epriestley on Nov 7 2014, 1:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 23, 5:36 PM
Unknown Object (File)
Fri, Apr 19, 5:08 PM
Unknown Object (File)
Mon, Apr 15, 4:44 PM
Unknown Object (File)
Thu, Apr 11, 5:55 PM
Unknown Object (File)
Tue, Apr 9, 4:03 PM
Unknown Object (File)
Tue, Apr 9, 1:41 AM
Unknown Object (File)
Sun, Apr 7, 8:39 PM
Unknown Object (File)
Wed, Apr 3, 5:11 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.