1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-03 12:12:43 +01:00
phorge-phorge/src/applications/auth/query
epriestley 6df278bea8 In "bin/ssh-auth", cache a structure instead of a flat file because paths may change at runtime
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.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13164, T12397

Differential Revision: https://secure.phabricator.com/D19568
2018-08-09 13:33:23 -07:00
..
PhabricatorAuthInviteQuery.php Allow logged-out users to accept invites on nonpublic installs 2015-02-13 11:00:41 -08:00
PhabricatorAuthInviteSearchEngine.php Reduce application search engine results list for Dashboards 2017-02-22 12:42:43 -08:00
PhabricatorAuthPasswordQuery.php Add a more modern object for storing password hashes 2018-01-22 15:35:28 -08:00
PhabricatorAuthPasswordTransactionQuery.php Add test coverage to the PasswordEngine upgrade workflow and fix a few bugs 2018-01-23 10:55:35 -08:00
PhabricatorAuthProviderConfigQuery.php phtize all the things 2015-05-22 21:16:39 +10:00
PhabricatorAuthProviderConfigTransactionQuery.php Use application PHIDs for application transactions 2013-07-29 12:04:15 -07:00
PhabricatorAuthSessionQuery.php Rename "PhabricatorHash::digest()" to "weakDigest()" 2017-04-06 15:43:33 -07:00
PhabricatorAuthSSHKeyQuery.php In "bin/ssh-auth", cache a structure instead of a flat file because paths may change at runtime 2018-08-09 13:33:23 -07:00
PhabricatorAuthSSHKeySearchEngine.php Add ViewController and SearchEngine for SSH Public Keys 2016-05-19 09:48:46 -07:00
PhabricatorAuthSSHKeyTransactionQuery.php Use transactions to apply web UI SSH key edits 2016-05-19 15:00:18 -07:00
PhabricatorAuthTemporaryTokenQuery.php Make temporary token storage/schema more flexible 2016-03-16 09:33:38 -07:00
PhabricatorExternalAccountQuery.php Add a session engine extension point 2016-04-05 15:19:47 -07:00