When entering the studio, I get this error, following the docker image pull:
$ hab studio enter
hab-studio: Creating Studio at /hab/studios/src (default)
hab-studio: Importing amiez secret origin key
» Importing origin key from standard input
✗✗✗
✗✗✗ Crypto error: Unsupported key version: ✗✗✗
✗✗✗
I used my name as origin first, tried with ‘myorigin’ too, and using the -k flag with both keys, but I always get that error.
The hab setup step went without error, I didn’t set up Github creds.
I created a key named amiez (seen in OP’s command output) then tried with one named myorigin (set as default with hab setup) then tried to use both of them with -k flag, always with the same outcome.
Keys in my .hab:
That error occurs when Habitat tries to verify the content of the key that's passed in [0].
Public signing keys must start with a line containing SIG-PUB-1, and secret signing keys must start with a line containing SIG-SEC-1.
Can I see the permissions on the keys you listed above? Also, are you using bash or zsh in OSX?
It looks like the code that’s exporting the key into the studio can’t find your root keys.
Can you respond with the output of ls -la in /hab/cache/keys and $HOME/.hab/cache/keys?
Additionally, can you paste the “origin” value from /hab/etc/cli.toml? Note, this file may contain your Github auth key, so careful with copy/pasting in a public forum.
The team is using an Ubuntu container in Docker with this configuration [0], which we should add to the README at some point. I’ll make a note to do so, or I’ll happily review a PR if you beat me to it