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
Unknown Object (File)
Feb 16 2024, 6:46 PM
Unknown Object (File)
Feb 3 2024, 7:13 PM
Unknown Object (File)
Dec 30 2023, 6:09 PM
Unknown Object (File)
Dec 26 2023, 8:01 PM
Unknown Object (File)
Dec 23 2023, 11:11 AM
Unknown Object (File)
Dec 22 2023, 12:10 AM
Unknown Object (File)
Dec 19 2023, 5:57 PM
Unknown Object (File)
Nov 30 2023, 1:37 AM
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
Branch
auth1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 20582
Build 27958: Run Core Tests
Build 27957: arc lint + arc unit