Skip to content

Unable to encrypt to hardware-backed age recipients (p256tag / age1tag1...) because filippo.io/age/tag is not imported #3387

Closed

Description

@nimser

Summary

When attempting to encrypt secrets to a hardware-backed age recipient (like those generated by age-plugin-tpm v1.0.0+ or age-plugin-se), gopass fails with an unsupported plugin error.
The cryptography community and age standardized hardware tokens (TPM, YubiKey, Secure Enclave) to use a unified p256tag recipient format that starts with age1tag1... instead of device-specific prefixes (like age1tpm1...).
Native support for this was added to the core age library in v1.3.0 via the filippo.io/age/tag package. While gopass has updated its go.mod to use filippo.io/age v1.3.1, the filippo.io/age/tag package is never imported in the gopass age crypto backend. Because the native parser isn't registered, gopass incorrectly assumes age1tag1... is a 3rd-party plugin, looks for an executable named age-plugin-tag, and crashes.

Steps To Reproduce

  1. Install the latest version of age-plugin-tpm (v1.0.1) or age-plugin-se.
  2. Generate a new identity: age-plugin-tpm --generate -o tpm-identity.txt
  3. Convert it to a recipient: age-plugin-tpm -y tpm-identity.txt > tpm-recipient.txt (This will output a string starting with age1tag1...)
  4. Add the recipient to a gopass age store: gopass recipients add --store my-store $(cat tpm-recipient.txt)
  5. Attempt to insert a secret: gopass insert my-store/test
  6. The encryption fails because age tries to invoke a non-existent plugin named tag.
    (Note: Symlinking age-plugin-tag to age-plugin-tpm results in unsupported plugin name: "tag" because the plugin explicitly expects to be called tpm).

Expected behavior

gopass should natively recognize age1tag1... and age1tagpq1... recipients and delegate to the appropriate plugin under the hood, exactly like the standard age CLI tool does in v1.3.0+.
This can likely be fixed by importing filippo.io/age/tag in the internal/backend/crypto/age package initialization.

Environment

  • OS: Debian
  • OS version: 13 (trixie)
  • gopass Version: 1.16.1

Additional context

Activity

  1. added 3 commits that reference this issue on May 1, 2026
    78842b0
    3c7f637
    eeae6cf
  2. added a commit that references this issue on May 11, 2026
    578a14a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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

    ⌂ 换网址