-
Notifications
You must be signed in to change notification settings - Fork 36
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
Comments of keys not shown #348
Comments
Which private key file format are you using? |
|
KeeAgent currently uses only the public key comment. For this file format, the comment is encrypted, so it is only available after the private key has been decrypted. As a workaround, you might be able to add a We could also consider adding a |
My keys aren't encrypted, they are generated with this command without entering a passphrase
It worked till that version (which I currently use) though, couldn't it be done in the stable also like it was there? |
Most people seem to use encrypted keys and decrypting the key even when it is not being used caused performance problems for newer keys formats with CPU intensive key derivation functions. Fixing that problem has lead to this problem. We could add a hack that to the effect of "if the key is not encrypted, use the comment", but that would only work for people with unencrypted keys. Attaching a separate public key file that includes the comment is a more universal workaround. |
I just updated from KeeAgent 0.12.1 to 0.13.1 and can confirm @Hackerpcs findings I have both private and public keys in KeePass and configured for KeeAgent usage. Starting with 0.13.1 I no longer see the comment
If I go back to KeeAgent 0.12.1 it works again. |
Personally I use this build |
Didn't manage to do a |
That would be two commits before the commit I suspect, so that sounds legit |
@dlech Looking at the diff between 0.12.1 and 0.13.1 I think I understand what you meant with the encrypted comment. Unfortunately the public key attachment I also have in place is not helping because the code only ever checks for a public key attachment if the private key doesn't have a public key included. So my readable public key attachment is ignored, because a public key is already present in the private key, but I can't access the comment because it is encrypted. |
I have the same problem: since the update to v0.13.1.0 my keys' comments are not displayed anymore, beside for one old and used rsa1024 key. All keys (including the old one) are encrypted. |
same here. in my case public key comments for ssh-ed25519 aren't showing up anymore |
What about a setting to use the entry title as the comment? Is that feasible @dlech? Wouldn't require a public key nor decrypting the private key |
That sounds like a good idea for a fallback. |
I created a PR: |
I wonder if this (perhaps optionally) shouldn't be the default as it is more accessible / editable. |
The comment of my key (ed25519) is still not shown in v0.13.2. The comment field is just empty. It does work correctly with v.0.12.1. |
This issue was closed since the workaround of including a We should probably start a new issue for the suggestion in #348 (comment) (with relevant discussion in #355) as an alternate solution if using .pub files is not sufficient. |
As @egfx-notifications mentioned above, using v0.13.2, adding a The pub file contains |
Hi. I'm still facing the same issue on the most recent KeeAgent build (0.13.2.0) with my ed25519 keypair. My pub key looks as follows, I believe there may be an issue with parsing spaces in the comment or something.
I'm not familiar with the codebase and couldn't easily push a PR. If someone was willing to create a PR that would allow the plugin to fall back to using the title AND OR comment for the password entry, that would be wonderful, as I use the same comment for my entry as the one stored in my pub key. I think it would be more accessible to users if you could specify to use the password entry's name OR comment, for the key info comment. This is how the key with the comment is appearing in KeeAgent and my ssh-agent. The most recent PR regarding this issue does not fix it. I'll probably revert to 0.12.1 for now as previously suggested. |
Since this issue has been closed, can you please start a new issue and attach an example key that reproduces the issue? |
Sure thing, please view issue #369. Thanks |
As described here
#341 (comment)
until this build
https://github.com/dlech/KeeAgent/actions/runs/2290793867
I can see the comments of the keys
on the latest v0.13.1 I can't
The text was updated successfully, but these errors were encountered: