Skip to content

age with ssh dont work #14

Open
Open
@brunskutscher

Description

@brunskutscher

following the docs i tried to use (public) ssh key (ed25519 and rsa) as recipients for encrytption with age (e.g.):

sops -e --age 'ssh-ed25519 AAAA ...' test.env

this failed always with:

failed to parse input as Bech32-encoded age public key: malformed recipient "ssh-ed25519 AAAA ...": mixed case

as stated this is the same for ssh-rsa.
i tried the same using .sops.yaml and SOPS_AGE_RECIPIENTS, same result.

after looking into the code base (age/keysource.go) my impression is that the error thrown is using a "wrong code path" and recipients with ssh- are simply not recogniced.

tried with (sops --version) sops 3.9.4 (latest)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions