Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support key fetching from keybase.io #200

Open
joemiller opened this issue Feb 23, 2017 · 4 comments
Open

Support key fetching from keybase.io #200

joemiller opened this issue Feb 23, 2017 · 4 comments

Comments

@joemiller
Copy link

It would be great to be able to do this:

$ sops -r --add-pgp keybase:joemiller example.yaml

The GPG key for keybase.io user 'joemiller' would be fetched via HTTPS from https://keybase.io/joemiller/pgp_keys.asc

@joemiller
Copy link
Author

Also

export SOPS_PGP_FP="keybase:joemiller,keybase:foo,keybase:bar"

@jvehent
Copy link
Contributor

jvehent commented Feb 23, 2017

What should this do under the hood? Download the public key into the pubring of the user, like gpg --recv-keys would, then use the fingerprint to create the document? Or should it bypass the pubring entirely (which is significantly more complex).

@joemiller
Copy link
Author

@jvehent That is a good question and I don't know the right answer. If implementation is easier I think downloading into the user's pubring would be OK. It should also probably check and update the key if it has changed.

@jvehent
Copy link
Contributor

jvehent commented Feb 24, 2017

I think downloading into the pubring is the most logical thing to do, but it might require calling out to the gpg binary which I really don't like (it's not portable).
We might also want to support other providers. Github exposes public keys as well:

$ curl -s -H "Accept: application/vnd.github.cryptographer-preview" https://api.github.com/users/jvehent/gpg_keys |jq -r '.[].public_key'
xsBNBFF/69EBCADe79sqUKJHXTMW3tahbXPdQAnpFWXChjI9tOGbgxmse1eEGjPZQPFOPgu3O3iij6UOVh+LOkqccjJ8gZVLYMJzUQC+2RJ3jvXhti8xZ1hs2iEr65RjzUklHVZguf2Zv2X9Er8rnlW5xzplsVXNWnVvMDXyzx0ufC00dDbCwahLQnv6Vqq8BdUCSrvo/r7oAims8SyWE+ZObC+rw7u01Sut0ctnYrvklaM10+zkwGNOTszrduUykJUYMoFPU3I+QhaTw1K/nhs5lSgegxDUlgXI39I8wlRp/fynghRWPtYnMSMsbZrPtpSCflNGEStVBdVHZvj0T1fCist59zh2IqeHABEBAAE=

@autrilla autrilla changed the title support key fetching from keybase.io? Support key fetching from keybase.io Apr 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants