Sops: Adding support for ssh keys for encryption.

Created on 9 Jul 2020  路  4Comments  路  Source: mozilla/sops

SSH keys could be also used for encryption. They are already in well-known locations i.e. /etc/ssh/ssh_host_rsa_key. Most developer/servers have already ssh keys.
Since most users also have ways of trusting those ssh keys (TOFU, DNS, hosters like github/gitlab or certificates) importing them should be easy. For my project I am thinking about converting ssh keys to gpg keys. However it would be probably also beneficial for sops itself to have this supported out-of-the box. I think usability of ssh-keygen over gpg is out of question.

Most helpful comment

I agree with the initial request of using SSH keys for encryption, and #688 will give us that because age supports ssh keys.

The PGP key storage format is an abomination and it would be a mistake to add more complexity. Ultimately, we need to steer people away from PGP entirely.

All 4 comments

Here is some boilercode to convert ssh keys to gpg: https://gist.github.com/Mic92/24c40996cd97cb8edd53fd688c60ab6f

I agree with the initial request of using SSH keys for encryption, and #688 will give us that because age supports ssh keys.

The PGP key storage format is an abomination and it would be a mistake to add more complexity. Ultimately, we need to steer people away from PGP entirely.

@jvehent unfortunately, #688 missing ssh keys supports

I will built a tool eventually to convert ed25519 as well to age keys, like I did for gpg.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Shikugawa picture Shikugawa  路  7Comments

brad-jones picture brad-jones  路  3Comments

jgmoss picture jgmoss  路  6Comments

max-wittig picture max-wittig  路  3Comments

foray1010 picture foray1010  路  7Comments