-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support -sk
versions of ed25519 keys.
#25
Comments
Using
|
Maybe the keytype needs to be added here: Line 108 in 9610d46
Here are the supported algorithm: https://pkg.go.dev/golang.org/x/crypto/ssh#pkg-constants Note that I don't think this can work in combination with sops, which I think does not have support for yubikeys yet. |
Well sops takes in the generated public/private age keys that |
Correct for the public key but if the private key is stored on a yubikey than you cannot decrypt sops files with it afterwards since sops is not using the ssh agent for it's crypto operations but rather expects a age private key (that can not be generated with ssh-to-age) |
Yeah. I think having the solution for this case be https://github.com/str4d/age-plugin-yubikey or simply GPG based secrets would be easier to support with yubikeys as a whole. Even if the ssh key is using the correct key-type to support |
Those plugins are not supported yet: getsops/sops#1103 |
I checked, all age's code handling plugins is in age/cmd. Plugin interface is still marked as internal. If you want to take a look I would start at age/cmd/age/parse.go. parseRecipient and parseIdentity are the dispatcher functions. The plugin takes/is passed a client ui (so it can do things like pin entry and whatever) and cmd creates a pluginTerminalUI to handle that. I'm not familiar enough with sops to know if that is actually a problem. But a cursory look suggest it is. Only pgp seems to handle password prompts. Azkv explicitly mentions not having support for it until they figure out how to handle it. |
Yeah i agree using Yubikey's pgp functionality is the way to go here. Instead of trying to translate a |
When attempting to use
ssh-to-age
with aned25519-sk
based key, it will result in the following error:The text was updated successfully, but these errors were encountered: