Skip to content

UX: "identity file contains non-identity data" when attempting to decrypt w/ age1yubikey identity #581

@charles-dyfis-net

Description

@charles-dyfis-net

What were you trying to do

Decrypt a file encrypted with a key associated with an attached yubikey.

Filing under UX as it's not clear what the underlying problem is, but it is clear that the error message is not unambiguously describing that problem.

What happened

$ nix-shell -p rage age-plugin-yubikey

[nix-shell:~]$ rage --version
rage 0.11.1

[nix-shell:~]$ age-plugin-yubikey --version
age-plugin-yubikey 0.5.0

[nix-shell:~]$ age-plugin-yubikey --list | grep -Ev '^$|^#'
age1yubikey1qt9ph9amd635dkhdqms5eune7hkpz4gmmyx35vuz9hxxks4zugz67pakedt

[nix-shell:~]$ rage -e -r "$(age-plugin-yubikey --list | grep -Ev '^$|^#')" -o ~/tmp/testme.age <<<'hello world'

[nix-shell:~]$ rage -d -i <(age-plugin-yubikey --list | grep -Ev '^$|^#') ~/tmp/testme.age
Error: identity file contains non-identity data on line 1

[ Did rage not do what you expected? Could an error be more useful? ]
[ Tell us: https://str4d.xyz/rage/report                            ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions