Page MenuHomePhabricator

Correct private key permissions before extracting public key in bin/almanac register
ClosedPublic

Authored by epriestley on Feb 5 2015, 10:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 18, 12:47 AM
Unknown Object (File)
Fri, Jan 17, 7:11 PM
Unknown Object (File)
Sun, Dec 22, 9:46 PM
Unknown Object (File)
Sun, Dec 22, 3:05 PM
Unknown Object (File)
Nov 27 2024, 4:09 PM
Unknown Object (File)
Nov 27 2024, 11:55 AM
Unknown Object (File)
Nov 26 2024, 9:47 PM
Unknown Object (File)
Nov 23 2024, 12:30 AM
Subscribers

Details

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 $

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Correct private key permissions before extracting public key in bin/almanac register.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Feb 5 2015, 10:07 PM
This revision was automatically updated to reflect the committed changes.