J. Ryan Stinnett
e1a496f231
Pass along key backup for bootstrap
...
If we ask for the key backup key early in creating secret storage to ensure we
trust the backup, then we stash it to ensure it's available to bootstrap as well
without prompting again.
Fixes https://github.com/vector-im/riot-web/issues/12958
2020-04-09 17:32:57 +01:00
Hubert Chathi
6596b7223a
Merge branch 'develop' into uhoreg/check_sssss_passphrase
2020-03-31 10:39:56 -04:00
Hubert Chathi
bbb9a67ced
use new method for checking key
2020-03-30 17:28:01 -04:00
Zoe
a02731f632
Merge branch 'develop' into foldleft/reset-refactor
2020-03-27 10:50:05 +00:00
Zoe
f891f3e9fa
lint
2020-03-25 16:08:26 +00:00
Zoe
4d63c11f26
Respond to backup key sharing requests
2020-03-25 15:16:07 +00:00
Zoe
9dd81216fb
rename secret storage force-reset variable to avoid confusion
2020-03-25 14:22:33 +00:00
J. Ryan Stinnett
c53b07a35a
Add logging when secrets are missing from cache
2020-03-24 15:49:51 +00:00
David Baker
b05e704524
Use staic dialog
2020-03-23 19:04:59 +00:00
David Baker
c8691c73ff
Allow key backup restore to get the key backup passphrase
...
And pass this in as the new callback to bootstrap to get the old
key backup passphrase.
2020-03-19 20:42:16 +00:00
Hubert Chathi
7b6a78bfb8
don't check public key if there is none
2020-03-16 17:31:06 -04:00
J. Ryan Stinnett
47b1552ccc
Fix secret sharing names to match spec
...
When sharing keys, we should use `m.cross_signing` prefix.
Part of https://github.com/vector-im/riot-web/issues/12661
2020-03-09 13:36:02 +00:00
Zoe
26177a19d5
access cross-signing callbacks via method
2020-03-05 10:49:06 +00:00
Zoe
4396d85d1f
Share secrets with another device on request
2020-03-04 14:58:42 +00:00
Zoe
d47d13256f
Merge pull request #4041 from matrix-org/foldleft/12221-reset-cross-signing
...
Button to reset cross-signing and SSSS keys
2020-02-10 17:14:05 +00:00
Zoe
a260d7a147
manual lint
2020-02-07 15:53:43 +00:00
Zoe
b08c5d8410
lint
2020-02-07 15:46:31 +00:00
Zoe
8fdae73e03
Button to reset cross-signing and SSSS keys
2020-02-07 14:55:01 +00:00
Bruno Windels
02d169060d
differentiate dismiss dialog based on name passed from js-sdk
...
also make dialog a bit nicer with more descriptive button
2020-02-06 16:51:02 +01:00
Bruno Windels
cf7ad725a6
copy and i18n
2020-02-06 15:18:25 +01:00
Bruno Windels
70a4d3415e
confirm to close the passphrase dialog if it was done by backgroundClick
...
as it is easy to do by accident
2020-02-06 13:11:24 +01:00
J. Ryan Stinnett
d5811cad28
Change UI auth title for cross-signing
2020-01-31 15:04:51 +00:00
David Baker
c111d70deb
Merge pull request #4009 from matrix-org/dbkr/log_exceptions_other_than_cancel
...
Log exceptions from accessSecretStorage
2020-01-31 11:00:16 +00:00
David Baker
26c9b64c3b
Log exceptions from accessSecretStorage
...
Rather than ignoring everything assuming the user cancelled
2020-01-31 10:35:05 +00:00
J. Ryan Stinnett
788cb24093
Add advanced option to keep secret storage in memory for session
...
This adds a default-off option to keep the secret storage passphrase cached in
memory for the current session to avoid death by prompts.
2020-01-30 14:18:12 +00:00
J. Ryan Stinnett
4a82e86859
Adjust secret storage to work before sync
...
This adjusts to changed JS SDK APIs that allow secret storage to optionally ask
the server for any account data needed at login.
Fixes https://github.com/vector-im/riot-web/issues/11901
2020-01-17 17:59:12 +00:00
Travis Ralston
fde32f13a5
[CONFLICT CHUNKS] Merge branch 'develop' into travis/sourcemaps-develop
2020-01-09 14:15:09 -07:00
J. Ryan Stinnett
d5a82a5fc2
Finish sentence in accessSecretStorage docs
2020-01-03 13:45:57 +00:00
Travis Ralston
042bd35d79
Fix MatrixClientPeg imports
2019-12-22 21:15:54 -07:00
Travis Ralston
806d728d59
Import from the js-sdk's src/ directory
...
Because ES6 and such.
2019-12-22 21:14:33 -07:00
Travis Ralston
d56f0f2a25
Convert many imports to handle ES6 exports
...
Reliant upon https://github.com/matrix-org/matrix-react-sdk/pull/3761
2019-12-22 21:04:42 -07:00
J. Ryan Stinnett
6338ee9683
Only allow key caching inside the access helper
2019-12-12 15:34:01 +00:00
J. Ryan Stinnett
66f7600969
Add accessSecretStorage
helper with common flow setup
...
This moves the details of dialogs that may be needed when accessing secret
storage to centralised helper. In addition, this clears the secret storage key
cache so that keys are only live for a single operation.
2019-12-11 15:07:46 +00:00
J. Ryan Stinnett
c5099b9b96
Re-add the secret storage key cache
2019-12-11 14:28:02 +00:00
J. Ryan Stinnett
4956e83228
Remove secret storage key cache for now
2019-12-10 16:53:15 +00:00
J. Ryan Stinnett
80c120b93b
Cross-signing storage now handled in JS SDK
2019-12-10 16:47:18 +00:00
J. Ryan Stinnett
24d6e7e456
Use private key check to provide feedback
2019-12-06 17:54:00 +00:00
J. Ryan Stinnett
d66dbdea61
Indicate which access flow was used
2019-12-05 16:23:00 +00:00
J. Ryan Stinnett
2bdc16b4bd
Key requests have an object wrapper
2019-12-05 16:11:12 +00:00
J. Ryan Stinnett
7601ce93d9
Add in-memory cache of secret storage keys
2019-12-05 15:34:07 +00:00
J. Ryan Stinnett
7446bcdedb
Extract callbacks to a new module
2019-12-05 15:34:07 +00:00