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
Warn if throw-keyids is set #1759
Conversation
IMO this should be documented somewhere, because people that do not include key ids are typically doing it on purpose to try and stay anonymous and we don't want to undermine their effort if they think it is important for them, do we? |
Good point, yes. |
Well I disagree, this works well with Gopass since GPG will simply try ever secret key in the key ring during a decryption attempt if this option was used upon encryption. So Gopass itself is not hindered in anyway by the throw-id setting. |
The point is that some operations won't work as expected. With age it's similar and there is not option to disable that. So maybe we should only warn instead? |
Fixes gopasspw#1756 RELEASE_NOTES=[BUGFIX] Warn about --throw-keyids Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
a347380
to
c47a2d1
Compare
Updated the PR to only warn about throw-keyids, not override it. |
@@ -33,6 +33,7 @@ type GPG struct { | |||
pubKeys gpg.KeyList | |||
privKeys gpg.KeyList | |||
listCache *lru.TwoQueueCache | |||
throwKids bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Poor kids 😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No kids were harmed in making this PR ;)
Fixes gopasspw#1756 RELEASE_NOTES=[BUGFIX] Warn about --throw-keyids Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Fixes #1756
Signed-off-by: Dominik Schulz dominik.schulz@gauner.org