1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-15 11:22:40 +01:00
phorge-phorge/src/applications/people/storage
epriestley 5e0f218fe4 Allow device SSH keys to be trusted
Summary:
Ref T6240. Some discussion in that task. In instance/cluster environments, daemons need to make Conduit calls that bypass policy checks.

We can't just let anyone add SSH keys with this capability to the web directly, because then an adminstrator could just add a key they own and start signing requests with it, bypassing policy checks.

Add a `bin/almanac trust-key --id <x>` workflow for trusting keys. Only trusted keys can sign requests.

Test Plan:
  - Generated a user key.
  - Generated a device key.
  - Trusted a device key.
  - Untrusted a device key.
  - Hit the various errors on trust/untrust.
  - Tried to edit a trusted key.

{F236010}

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T6240

Differential Revision: https://secure.phabricator.com/D10878
2014-11-20 17:33:30 -08:00
..
__tests__ Use "\z" instead of "$" to anchor validating regular expressions 2014-03-13 12:42:41 -07:00
PhabricatorExternalAccount.php Fix almost all remaining schemata issues 2014-10-01 08:18:36 -07:00
PhabricatorRegistrationProfile.php New Registration Workflow 2013-06-16 10:13:49 -07:00
PhabricatorUser.php Allow device SSH keys to be trusted 2014-11-20 17:33:30 -08:00
PhabricatorUserConfiguredCustomFieldStorage.php Various linter fixes. 2014-02-26 12:44:58 -08:00
PhabricatorUserCustomFieldNumericIndex.php Various linter fixes. 2014-02-26 12:44:58 -08:00
PhabricatorUserCustomFieldStringIndex.php Various linter fixes. 2014-02-26 12:44:58 -08:00
PhabricatorUserDAO.php Delete license headers from files 2012-11-05 11:16:51 -08:00
PhabricatorUserEmail.php Make user emails case-insensitive 2014-11-07 09:48:31 -08:00
PhabricatorUserLog.php Generate expected schemata for User/People tables 2014-10-01 07:36:47 -07:00
PhabricatorUserProfile.php Generate expected schemata for User/People tables 2014-10-01 07:36:47 -07:00
PhabricatorUserSchemaSpec.php Fix various MySQL version issues with new charset stuff 2014-10-29 15:49:29 -07:00
PhabricatorUserTransaction.php Rename PHIDType classes 2014-07-24 08:05:46 +10:00