Page MenuHomePhabricator

Dirty the SSH key cache when usernames change
ClosedPublic

Authored by epriestley on Apr 14 2017, 12:09 PM.
Tags
None
Referenced Files
F14389145: D17687.id42538.diff
Sat, Dec 21, 5:23 PM
Unknown Object (File)
Wed, Dec 18, 12:58 AM
Unknown Object (File)
Mon, Dec 9, 2:16 PM
Unknown Object (File)
Mon, Dec 9, 2:16 PM
Unknown Object (File)
Mon, Dec 9, 2:15 PM
Unknown Object (File)
Mon, Dec 9, 1:51 PM
Unknown Object (File)
Wed, Nov 27, 5:12 PM
Unknown Object (File)
Nov 20 2024, 1:58 PM
Subscribers
None

Details

Summary

Fixes T12554. The SSH key cache contains usernames, but is not currently dirtied on username changes.

An alternative solution would be to use user PHIDs instead of usernames in the file, which would make this unnecessary, but that would make debugging a bit harder. For now, I think this small added complexity is worth the easier debugging, but we could look at this again if cache management gets harder in the future.

Test Plan
  • Added a key as ducksey, ran bin/ssh-auth, saw key immediately.
  • Renamed ducksey to ducker, ran bin/ssh-auth, saw username change immediately.
  • Added another key as ducker, ran bin/ssh-auth, saw key immediately.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable