fix(age): read SSH keys and plugin identities, as the age CLI did

The switch to the age library read only native age keys, so an
AGE_IDENTITY holding an SSH private key or a plugin identity (a YubiKey)
stopped working. Both parse again; a plugin that asks for input fails with
a message saying so, and a passphrase-protected identity file is refused
by name.
This commit is contained in:
sam committed 2026-10-25 18:13:27 +11:00
1 parent 2d475e281f
commit 3ee4977996
5 files changed
+105 -4

No files matched your search

+3 -1
View File
@@ -14,11 +14,13 @@ require (
github.com/google/go-github/v78 v78.0.0
github.com/hashicorp/go-plugin v1.8.0
github.com/hashicorp/vault/api v1.23.0
golang.org/x/crypto v0.55.0
google.golang.org/grpc v1.84.0
google.golang.org/protobuf v1.36.12
)
require (
filippo.io/edwards25519 v1.2.0 // indirect
filippo.io/hpke v0.4.0 // indirect
github.com/42wim/httpsig v1.2.4 // indirect
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
@@ -46,9 +48,9 @@ require (
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/oklog/run v1.1.0 // indirect
github.com/ryanuber/go-glob v1.0.0 // indirect
golang.org/x/crypto v0.55.0 // indirect
golang.org/x/net v0.57.0 // indirect
golang.org/x/sys v0.47.0 // indirect
golang.org/x/term v0.45.0 // indirect
golang.org/x/text v0.41.0 // indirect
golang.org/x/time v0.12.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260706201446-f0a921348800 // indirect