1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-31 00:48:21 +01:00

Handle SSH generated keys in Conduit passphrase.query

Summary: Fixes T6601

Test Plan: echo '{"ids":["71"],"needPublicKeys":true,"needSecrets":false}' | arc call-conduit passphrase.query

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley

Maniphest Tasks: T6601

Differential Revision: https://secure.phabricator.com/D10885
This commit is contained in:
Dereckson 2014-11-21 11:09:02 -08:00 committed by epriestley
parent 5e0f218fe4
commit c07425c534

View file

@ -79,6 +79,7 @@ final class PassphraseQueryConduitAPIMethod
$material['publicKey'] = $public_key;
}
break;
case PassphraseCredentialTypeSSHGeneratedKey::CREDENTIAL_TYPE:
case PassphraseCredentialTypeSSHPrivateKeyText::CREDENTIAL_TYPE:
if ($secret) {
$material['privateKey'] = $secret;