-
Notifications
You must be signed in to change notification settings - Fork 817
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
E2EE. Do not generate keypair without user request. #5067
E2EE. Do not generate keypair without user request. #5067
Conversation
de07d0f
to
38e722a
Compare
@jancborchardt see the description for the screenshot, video, and explanation of how this now works. Does it look good? |
Nice! Some feedback:
|
ea3d469
to
06c350c
Compare
@jancborchardt I have fixed the 3-rd and 4-th remarks. Regarding the first too.
I can't control this as this is not a UI-caused delay. The desktop clients talk to the server and then to a Windows credentials store to generate, validate and store new keypair. Before, we had this happening in the background because it was always being triggered automatically, without the user clicking that "Enable encryption button". Now, as the user initiates the E2E keys generation, the delay is visible.
It is already modal. You can't close the Settings dialog or, otherwise, interact with it without closing the mnemonic dialog. |
Thank you for the explanation! :) So could we show the dialog already, but show a spinner / loading message inside the input saying "Generating mnemonic"? |
42b4134
to
8e4d58f
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5067 +/- ##
==========================================
- Coverage 57.22% 57.09% -0.14%
==========================================
Files 138 138
Lines 17441 17444 +3
==========================================
- Hits 9980 9959 -21
- Misses 7461 7485 +24
|
8e4d58f
to
fbe05e2
Compare
So, we've discussed that with Tobias and this thing is turning into a new feature and is a bit out of the scope of this PR. There is also a plan to enhance the UX of E2E, and then this can be done alongside. |
7ad4c72
to
f8463c2
Compare
@@ -355,6 +358,8 @@ protected Q_SLOTS: | |||
|
|||
bool _trustCertificates = false; | |||
|
|||
bool _e2eEncryptionKeysGenerationAllowed = false; |
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.
can you make it a property registered to Qt metaobject system ?
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.
please fix this and clean history of commits if needed
that said, I approve it works fine !
congratulations
a2c4b77
to
39fe9b8
Compare
Signed-off-by: allexzander <blackslayer4@gmail.com>
39fe9b8
to
9ab89da
Compare
AppImage file: nextcloud-PR-5067-9ab89daedd867465e6c86fd420994f54a03fbee4-x86_64.AppImage |
SonarCloud Quality Gate failed. |
/backport to stable-3.6 |
…ys-without-request E2EE. Do not generate keypair without user request.
…ys-without-request E2EE. Do not generate keypair without user request. Signed-off-by: alex-z <blackslayer4@gmail.com>
Signed-off-by: allexzander blackslayer4@gmail.com
Mnemonic is now displayed in mono font and text can't be typed in the dialog (readonly).
Keys are not generated automatically (see the video), but only after the user clicks "Enable encryption".
e2ee_enable_display_mnemonic_reconnect.mp4