@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Purge `ssh-auth` key cache after trust/untrust

Summary: See PHI358. The `bin/almanac [un]trust-key` workflows don't properly purge the SSH key cache, but should.

Test Plan:
- Added key `ssh-rsa xyz` to a device.
- Used `bin/ssh-auth | grep xyz` to test for the presence of the key.
- Before patch: Saw it not present, trusted it, saw it still not present.
- After patch: Saw it not present, trusted it, saw it now present. Untrusted it, saw it no longer present.

Differential Revision: https://secure.phabricator.com/D19053

+4
+2
src/applications/almanac/management/AlmanacManagementTrustKeyWorkflow.php
··· 81 81 $key->setIsTrusted(1); 82 82 $key->save(); 83 83 84 + PhabricatorAuthSSHKeyQuery::deleteSSHKeyCache(); 85 + 84 86 $console->writeOut( 85 87 "**<bg:green> %s </bg>** %s\n", 86 88 pht('TRUSTED'),
+2
src/applications/almanac/management/AlmanacManagementUntrustKeyWorkflow.php
··· 43 43 $key->setIsTrusted(0); 44 44 $key->save(); 45 45 46 + PhabricatorAuthSSHKeyQuery::deleteSSHKeyCache(); 47 + 46 48 $console->writeOut( 47 49 "**<bg:green> %s </bg>** %s\n", 48 50 pht('TRUST REVOKED'),