Page MenuHomePhabricator

In "bin/ssh-auth", cache a structure instead of a flat file because paths may change at runtime
ClosedPublic

Authored by epriestley on Aug 8 2018, 5:21 PM.
Tags
None
Referenced Files
F18776736: D19568.id46780.diff
Fri, Oct 10, 11:12 PM
F18741008: D19568.diff
Thu, Oct 2, 7:27 AM
F18733937: D19568.id46785.diff
Tue, Sep 30, 10:44 PM
F18678772: D19568.id46785.diff
Thu, Sep 25, 11:19 PM
F18629342: D19568.id.diff
Sep 16 2025, 8:34 AM
F18618467: D19568.id.diff
Sep 15 2025, 12:12 AM
F18598933: D19568.id46780.diff
Sep 13 2025, 6:13 AM
F18593080: D19568.id46780.diff
Sep 12 2025, 1:51 PM
Subscribers
None

Details

Summary

Fixes T12397. Ref T13164. See PHI801.

Several installs have hit various use cases where the path on disk where Phabricator lives changes at runtime. Currently, bin/ssh-auth caches a flat file which includes the path to bin/ssh-exec, so this may fall out of date if phabricator/ moves.

These use cases have varying strengths of legitimacy, but "we're migrating to a new set of hosts and the pool is half old machines and half new machines" seems reasonably compelling and not a problem entirely of one's own making.

Test Plan
  • Compared output on master to output after change, found them byte-for-byte identical.
  • Moved phabricator/ to phabricator2/, ran bin/ssh-auth, got updated output.
  • Added a new SSH key, saw it appear in the output.
  • Grepped for AUTHFILE_CACHEKEY (no hits).
  • Dropped the cache, verified that the file regenerates cleanly.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable