Conduit call to Passphrase to fetch SSH key doesn't work anymore.
Current code:
public static function getPublicKey ($id) { //Calls conduit with a passphrase.query request $request = new ConduitPassphraseQueryRequest( [$id], true, false ); $reply = $request ->query() ->getReply(); //Gets the first property of the response.data object, //then the material.publicKey property $data = (Array)$reply->response->data; $firstDataItem = array_shift($data); $key = $firstDataItem->material->publicKey; return trim($key); }
Actual result:
$ ssh ysul $ sudo su - zr $ php bin/getpublickeys from="172.27.26.49,dwellers.nasqueron.drake,dwellers.nasqueron.org",no-port-forwarding,no-x11-forwarding,no-agent-forwarding Zemke-Rhyne from="equatower.nasqueron.org",no-port-forwarding,no-x11-forwarding,no-agent-forwarding Zemke-Rhyne from="docker-001.nasqueron.org",no-port-forwarding,no-x11-forwarding,no-agent-forwarding Zemke-Rhyne
Expected: the same file, with the relevant SSH keys.
Passphrase config: Keys can't be fetch only get if Conduit access is allowed. This is the case for the key in K2 (Dwellers) since Nov 20 2014, 00:39. It isn't locked.