deis / workflow-cli

The CLI for Deis Workflow
http://deis.com
MIT License
31 stars 43 forks source link

deis config should handle base64 encoded SSH_KEY #274

Closed felixbuenemann closed 7 years ago

felixbuenemann commented 7 years ago

Currently there's a special case for handling deis config:set SSH_KEY=/path/to/key.

The problem with this is, that it is broken when using for example:

DEIS_PROFILE=staging deis config:pull -a myapp
DEIS_PROFILE=production deis config:push -a myapp
Error: Could not parse SSH private key:
 LS0tLS1CRUdJT…

It would be great if deis config:set SSH_KEY could autodetect wether a path or an already base64 encoded key is given.