Skip to content
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

if key changed by the counter party, then the "Key has been changed" should be displayed to the user #4870

Open
vitgum opened this issue Jul 8, 2020 · 4 comments

Comments

@vitgum
Copy link

vitgum commented Jul 8, 2020

Please search to check for an existing issue (including closed issues, for which the fix may not have yet been released) before opening a new issue: https://github.com/k9mail/k-9/issues?q=is%3Aissue

Expected behavior

If counter party has changed his/her gpg key, this should somehow be shown to the user.

  1. if Autocrypt mode is ON then
    the email message display should contain something like "Key has been changed" and K9 should put the new key into Open keychain automatically

  2. if Autocrypt mode is OFF then
    the email message display should contain something like "Key has been changed" and K9 should propose to add the update the key for this counterparty in Open Keychain manually

Actual behavior

Tell us what happens instead
In both cases (Autocrypt ON and OFF) K9 does not display any warnings regarding the change of the key and the new key is being added into the Open Keychain

Steps to reproduce

  1. Connect delta chat to the same IMAP account without transitting autocrypt auto setup, so that 2 isntances of deltachat have two different private/public key pairs for same email
  2. send email from Fixes #1 instance of delta chat to the test account in K9
  3. send email from List footer #2 instance of delta chat to the test account in K9
  4. Check Open Keychain -- now it has two different keys for the same email and the last one is active for K9 (marked with K9 icon)

Environment

K-9 Mail version:
5.717

Android version:
9

Account type (IMAP, POP3, WebDAV/Exchange):
IMAP

Please take some time to retrieve logs and attach them here:
photo_2020-07-08 23 06 28

@vitgum vitgum changed the title if key changed by the counter part the invalid openpgp signature should be displayed to the user if key changed by the counter party, then the "Key has been changed" should be displayed to the user Jul 8, 2020
@cketti
Copy link
Member

cketti commented Jul 8, 2020

You can't turn off Autocrypt in K-9 Mail 5.6+ (short of disabling encryption for the account).

A communication partner changing their key is not an error in Autocrypt. It is something that is expected to happen in practice.
Right now we don't support manually verifying keys to set an extended trust level. There's not really a point in warning that a key that has been trusted automatically the first time has now changed.

@vitgum
Copy link
Author

vitgum commented Jul 8, 2020 via email

@Valodim
Copy link
Contributor

Valodim commented Jul 11, 2020

This is a complicated topic. As cketti mentioned, before changing trusted keys can be considered, we need to have a useful model of verification first.

The problem this comes down to is that the concept of "verifying keys" we implemented in OpenKeychain doesn't really make much sense - a key can only be verified in the context of a given communication peer (i.e. email address). And OpenKeychain on its own doesn't have that context.

I believe the right way to do this would be to allow verification of email/key bindings in K-9 Mail, and indicate an error state for emails where this doesn't match with an option to update the binding. Daniel Gultsch described this as blind trust before verification.

Alas, this is a big task, and there is currently noone to put in the work.

@vitgum
Copy link
Author

vitgum commented Jul 12, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants