1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 17:52:43 +01:00
phorge-phorge/src/applications/auth/query
epriestley c21a71f024 Cache generation of the SSH authentication keyfile for sshd
Summary:
Ref T11469. This isn't directly related, but has been on my radar for a while: building SSH keyfiles (particular for installs with a lot of keys, like ours) can be fairly slow.

At least one cluster instance is making multiple clone requests per second. While that should probably be rate limited separately, caching this should mitigate the impact of these requests.

This is pretty straightforward to cache since it's exactly the same every time, and only changes when users modify SSH keys (which is rare).

Test Plan:
  - Ran `bin/auth-ssh`, saw authfile generate.
  - Ran it again, saw it read from cache.
  - Changed an SSH key.
  - Ran it again, saw it regenerate.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11469

Differential Revision: https://secure.phabricator.com/D16744
2016-10-21 07:29:40 -07:00
..
PhabricatorAuthInviteQuery.php Allow logged-out users to accept invites on nonpublic installs 2015-02-13 11:00:41 -08:00
PhabricatorAuthInviteSearchEngine.php [Redesign] PhabricatorApplicationSearchResultView 2015-06-19 11:46:20 +01: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 PhabricatorApplication subclasses 2014-07-23 10:03:09 +10:00
PhabricatorAuthSSHKeyQuery.php Cache generation of the SSH authentication keyfile for sshd 2016-10-21 07:29:40 -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