-
Notifications
You must be signed in to change notification settings - Fork 55
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
Implement rnp_signature_get_features and rnp_key_set_features. #2179
Conversation
FYI, I have written this code on top of the v0.17.0 release, then merged to the main branch. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2179 +/- ##
==========================================
+ Coverage 77.07% 77.33% +0.26%
==========================================
Files 194 176 -18
Lines 37257 34724 -2533
==========================================
- Hits 28715 26854 -1861
+ Misses 8542 7870 -672 ☔ View full report in Codecov by Sentry. |
@kaie
|
Thanks Nickolay for your feedback. If you prefer that we avoid the SET function, then I'm ok to do the following approach:
|
I assume it's cleaner to close this PR, and open a fresh PR with only the GET code. |
We plan to release v0.18 in a month or two, so maybe patch approach would be simpler.
This would cause problem for all the users who recently generated keys with GnuPG and attempt to import them, and it would be even worse then SHA1 issue few years, given that many want to have single secret key for Thunderbird and for GnuPG/other applications. Btw, just realized that it is already possible to retrieve features via the packet dump of exported signature. However, that would require some coding and parsing JSON like the following one:
|
If I cannot fix the key on import, I must refuse the import. It would be noted in TB release notes that it's no longer possible to import such keys into Thunderbird. Users who want to share their key with Thunderbird will need to use gpg commands to edit their key to make it compatible, prior to exporting from GnuPG and importing it into Thunderbird. |
good idea to use the packet dump, but it isn't very elegant, because I would have to look for unknown string keys in the output, in addition to aead/mdc/v5, to be complete. Checking for additional bits in an integer is simpler. |
New read-only pull request is #2188 |
In my opinion, the rejection to import keys exported from GnuPG 2.4 with --rfc480bis enabled, would be less serious than the past SHA1 you mentioned. In that scenario, users had already an imported keys, which suddently no longer worked. Which means, we broke their existing Thunderbird setup. In this new scenario, the suggested approach would only reject import, so it would become clear something is incompatible based on a nonworking import. I think I'd accept the fact that such a key has already been imported, and continue to use it - until we're able to automatically fix it in the future. |
Good point about the already imported keys vs new keys, didn't think this way. Maybe I'm too stick to idea 'don't touch something which worked for a while and didn't give any complaints'. |
See issue #2178