1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-13 10:22:42 +01:00
phorge-phorge/src/applications/almanac
epriestley 57f1ab705e Correct private key permissions before extracting public key in bin/almanac register
Summary: `ssh-keygen` declines to run on a too-public key. Write the correctly-restricted key a little earlier in the workflow.

Test Plan:
```
epriestley@orbital ~/dev/phabricator $ chmod 644 ~/dev/core/conf/keys/daemon.key
epriestley@orbital ~/dev/phabricator $ ./bin/almanac register --private-key ~/dev/core/conf/keys/daemon.key --identify-as local.phacility.net --device daemon.phacility.net --force --allow-key-reuse
Installing public key...
Installing private key...
Installing device ID...
 HOST REGISTERED  This host has been registered as "local.phacility.net" and a trusted keypair has been installed.
epriestley@orbital ~/dev/phabricator $
```

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D11700
2015-02-05 14:09:15 -08:00
..
application Remove getIconName from all applications 2015-01-30 12:11:21 -08:00
capability Give AlmanacServices a service type 2014-12-17 11:10:27 -08:00
conduit Give AlmanacServices a service type 2014-12-17 11:10:27 -08:00
controller PHUIErrorView 2015-02-01 20:14:56 -08:00
customfield Allow Almanac service types to define default properties 2014-12-17 11:10:50 -08:00
editor Fix validation of network names in Almanac 2015-01-20 14:14:30 -08:00
management Correct private key permissions before extracting public key in bin/almanac register 2015-02-05 14:09:15 -08:00
phid Add AlmanacBinding, to bind a service to an interface 2014-10-27 13:39:36 -07:00
property Allow Almanac service types to define default properties 2014-12-17 11:10:50 -08:00
query Policy - filter app engines where the user can't see the application from panel editing 2015-02-04 15:47:48 -08:00
servicetype Add a "ClusterDatabase" Almanac service type 2015-01-13 11:59:23 -08:00
storage Fix visiblity of LiskDAO::getConfiguration() 2015-01-14 06:54:13 +11:00
typeahead Almanac: forced interface PHIDs, prefix/suffix device query, DestructibleInterface 2014-12-22 12:50:44 -08:00
util When registering a device, write a device ID 2015-01-22 16:06:04 -08:00
view Allow Almanac services to be locked 2014-12-18 14:31:36 -08:00