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
F15580819: D17687.id42541.diff
Wed, May 7, 7:56 AM
F15567026: D17687.id42538.diff
Fri, May 2, 3:45 AM
F15519056: D17687.id.diff
Sat, Apr 19, 7:35 PM
F15516744: D17687.id42541.diff
Fri, Apr 18, 9:01 PM
F15516091: D17687.diff
Fri, Apr 18, 4:02 PM
F15502424: D17687.id42538.diff
Mon, Apr 14, 12:36 AM
F15461550: D17687.diff
Apr 1 2025, 9:11 AM
F15413905: D17687.id.diff
Mar 19 2025, 9:56 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