Homec4science

Correct private key permissions before extracting public key in bin/almanac…

Authored by epriestley <git@epriestley.com> on Feb 5 2015, 23:09.

Description

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

Details

Committed
epriestley <git@epriestley.com>Feb 5 2015, 23:09
Pushed
aubortJan 31 2017, 17:16
Parents
rPH74ea59235a1e: Make the "daemons and web have different config" warning more specific
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH57f1ab705e28: Correct private key permissions before extracting public key in bin/almanac… (authored by epriestley <git@epriestley.com>).Feb 5 2015, 23:09