-
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
support import and skipping problematic keys #1145
Comments
@kaie Today I got to this idea as well, thanks to the data provided by Patrick. At the moment the most logical way seems to be to add flag like IGNORE_BAD_KEYS, and pass data about invalid keys back in results JSON. |
yes that would work |
I'd like to suggest an additional flag. A key might fail to import, because it contains a signature that RNP is rejecting. So another option for import could be: If invalid signature is found on key, try to import the stripped/minimized key. |
@kaie As of now there is an additional RNP_LOAD_SAVE_PERMISSIVE flag for |
Thanks. But if we import multiple keys at once, there's no output that says which key is failing. That makes it very difficult to diagnose, because you have no idea to which key an message refers to. I suggest to log the failing key ID to the console. I have a patch. |
Because this issue is closed, I've filed new #1162 |
I'm trying to see the effect of RNP_LOAD_SAVE_PERMISSIVE. Do you have an example key, which gets imported with RNP_LOAD_SAVE_PERMISSIVE, but which gets rejected without that flag? I couldn't find any. |
@kaie Together with RNP_LOAD_SAVE_PERMISSIVE, I fixed other loading issues, that's probably the reason. However there are manually modified keys with different errors in sig/key data, please see the |
Thanks @ni4 that is helpful and allowed me to test. |
Users who migrate to RNP might want to import their complete public keyring.
Apparently RNP is more strict about keys, or, might not support some kinds of keys, so it refuses to import them.
The problem is:
When importing a large key block that contains many keys, RNP aborts the import at the first problem.
I'd like to request one of the following mechanisms:
or
The text was updated successfully, but these errors were encountered: