Skip to content

Add native support for ssh keys for age#779

Open
musjj wants to merge 4 commits intoMic92:masterfrom
musjj:age-ssh
Open

Add native support for ssh keys for age#779
musjj wants to merge 4 commits intoMic92:masterfrom
musjj:age-ssh

Conversation

@musjj
Copy link
Copy Markdown
Contributor

@musjj musjj commented Apr 21, 2025

Adds support for the age's native SSH feature from getsops/sops#1692.

Also deprecates sops.age.sshKeyPaths as it should no longer be necessary.

Closes #744

@folliehiyuki
Copy link
Copy Markdown

sops.age.sshKeyPaths has an advantage of allowing users to specify multiple private SSH key files. This behavior cannot be replicated to sops' native SSH feature.

Comment thread modules/sops/default.nix Outdated
@srhb
Copy link
Copy Markdown
Contributor

srhb commented Aug 10, 2025

Anything I can do to help this along?

@Parsifa1
Copy link
Copy Markdown

any update?

@Parsifa1
Copy link
Copy Markdown

Parsifa1 commented Sep 18, 2025

as getsops/sops#1692, sops has it's simple key-find procedure: first ~/.ssh/id_ed25519 next ~/.ssh/id_rsa,
maybe for simple usecase, provide a simple option to open it, and a further option to set the custom SEC path.

like :

sops = {
    sshKeyNative = {
        enable = true; #default false
        path = "/foo/bar/id_sra"; # previous `sshKeyPaths`
    };
}

if no sshKeyNative.path set, just using sops's native key-finding procedure , which makes easier for simple use.

that's just my two cents, thanks for you PR :)

@nikhilmaddirala
Copy link
Copy Markdown

Hi, is there anything any of us can do to help move this along? Thank you!

@uncenter
Copy link
Copy Markdown

@musjj would it be possible to include configuration options here for the new SOPS_AGE_SSH_PRIVATE_KEY_CMD feature (getsops/sops#2070, released in v3.12.0/3.12.1)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

remove ssh-to-pgp rsa instructions

7 participants