1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-19 03:01:11 +01:00
phorge-phorge/src/applications/auth
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
..
action Rate limit multi-factor actions 2014-04-30 14:30:31 -07:00
application Separate SSH key management from the settings panel 2014-11-11 08:18:26 -08:00
constants Make password reset emails use one-time tokens 2014-05-22 10:41:00 -07:00
controller Allow device SSH keys to be trusted 2014-11-20 17:33:30 -08:00
data Apply some autofix linter rules 2014-09-10 06:55:05 +10:00
editor Modularize mail tags 2014-08-12 12:28:41 -07:00
engine Make the current session key a component of the CSRF token 2014-08-04 12:04:47 -07:00
exception Make two-factor auth actually work 2014-04-28 10:20:54 -07:00
factor Add "temporary tokens" to auth, for SMS codes, TOTP codes, reset codes, etc 2014-05-20 11:43:45 -07:00
garbagecollector Add "temporary tokens" to auth, for SMS codes, TOTP codes, reset codes, etc 2014-05-20 11:43:45 -07:00
management Apply some autofix linter rules 2014-09-10 06:55:05 +10:00
phid Rename PHIDType classes 2014-07-24 08:05:46 +10:00
provider Minor formatting changes 2014-10-08 08:39:49 +11:00
query Separate SSH key management from the settings panel 2014-11-11 08:18:26 -08:00
sshkey Allow device SSH keys to be trusted 2014-11-20 17:33:30 -08:00
storage Allow device SSH keys to be trusted 2014-11-20 17:33:30 -08:00
view Allow device SSH keys to be trusted 2014-11-20 17:33:30 -08:00