Valere
538717c23e
crypto: Replace cryptoMode with DeviceIsolationMode concept ( #4429 )
...
* crypto: Replace cryptoMode with DeviceIsolationMode concept
* use enum instead of string for the IsolationMode kind
* Code review - Cleaning, renaming
* review: unneeded @see in doc
* review: Rename IsolationMode with better names
* review: quick cleaning and doc
2024-09-25 13:33:02 +00:00
Richard van der Hoff
1a8ea3d685
Add CryptoApi.pinCurrentUserIdentity
and UserIdentity.needsUserApproval
( #4415 )
...
* Implement `UserVerificationStatus.needsUserApproval`
Expose the `identityNeedsUserApproval` flag from the rust crypto crate.
* Add CryptoApi.pinCurrentUserIdentity
Expose `pinCurrentMasterKey` from the rust crypto api.
* Test data: add second cross-signing key for Bob
* Add tests for verification status
2024-09-24 16:38:18 +00:00
Florian Duros
d0890d9450
Update sonarcloud action to use v3.3 matrix-org/sonarcloud-workflow-action
( #4430 )
2024-09-24 15:35:40 +00:00
RiotRobot
42ec17b977
Merge branch 'master' into develop
2024-09-24 12:37:47 +00:00
RiotRobot
82e9eefce6
v34.6.0
v34.6.0
2024-09-24 12:37:19 +00:00
renovate[bot]
f8208b1891
Update typedoc ( #4419 )
...
* Update typedoc
* Don't link a private method in tsdoc of a public method
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Florian Duros <florian.duros@ormaz.fr >
2024-09-23 13:47:49 +00:00
Richard van der Hoff
092a59af66
Throw clearer error if createSecretStorageKey
misbehaves ( #4412 )
...
https://github.com/element-hq/element-web/issues/27888 shows a slightly
mysterious error message, but the problem is `createSecretStorageKey`
returning the wrong thing.
2024-09-23 10:25:42 +00:00
renovate[bot]
dbd7d26968
Update dependency @types/node to v18.19.50 ( #4418 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-19 15:26:50 +00:00
renovate[bot]
4fda9e8419
Update all non-major dependencies ( #4417 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-19 13:38:54 +00:00
RiotRobot
a13e0389db
v34.6.0-rc.0
v34.6.0-rc.0
2024-09-18 13:31:13 +00:00
Hubert Chathi
dbb4828eda
Add crypto mode setting for invisible crypto, and apply it to decrypting events ( #4407 )
...
Adds a global "crypto mode" setting to the crypto API (only works with Rust crypto), and changes the decryption settings based on that.
2024-09-18 12:53:07 +01:00
Hugh Nimmo-Smith
414ac9d8cc
Don't share full key history for RTC per-participant encryption ( #4406 )
...
* Don't share full key history for RTC per-participant encryption
Also record stats for how many keys have been sent/received and age of those received
* Update src/matrixrtc/MatrixRTCSession.ts
Co-authored-by: Robin <robin@robin.town >
* Add comment about why we track total age of events
---------
Co-authored-by: Robin <robin@robin.town >
2024-09-18 08:57:26 +00:00
Johannes Marbach
30058a4bdc
Add ESLint rule to ensure .ts extensions on imports ( #4409 )
...
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org >
2024-09-18 07:40:01 +00:00
Florian Duros
fab9cab3df
Move crypto/key_passphrase.ts
to crypto-api/key-passphrase.ts
( #4401 )
...
* Move `crypto/key_passphrase.ts` to `crypto-api/key-passphrase.ts`
* Re-export `crypto-api/key-passphrase` into `crypto/key_passphrase.ts`
* Add doc
* Deprecate `MatrixClient.keyBackupKeyFromPassword`
* Move `keyFromAuthData` to `common-crypto/key-passphrase.ts`
* Fix faulty import
* Keep `keyFromPassphrase` in old crypto
* - Rename `deriveKey` into `deriveRecoveryKeyFromPassphrase`
- Call `deriveRecoveryKeyFromPassphrase` into `RustCrypto.createRecoveryKeyFromPassphrase` instead of using `keyFromPassphrase`
* Remove alternative in `keyBackupKeyFromPassword` deprecation.
* Add tests for `keyFromAuthData`
* Deprecate `keyFromAuthData`
* Review changes
2024-09-17 13:05:47 +00:00
Johannes Marbach
53b599f8fe
Export membership types ( #4405 )
...
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org >
2024-09-14 10:44:51 +00:00
Timo
17f6cc733e
Fix redact sending over in embedded (widget) mode ( #4398 )
2024-09-13 16:07:44 +00:00
Johannes Marbach
c8403f39aa
Fix build failure in node.js example ( #4394 )
...
* Fix node.js example
Relates to: element-hq/element-web#26922
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org >
* Update examples/node/app.js
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
* Update examples/node/package.json
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
* Move imports to the top of the file
---------
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
2024-09-13 15:35:45 +00:00
Florian Duros
8cf5df73ee
Move crypto/recoverykey.ts
to crypto-api/recovery-key.ts
( #4399 )
...
* Move `crypto/recoverykey.ts` to `crypto-api/recovery-key.ts`
* Re-export `crypto-api/recovery-key` into `crypto/recoverykey`
* Add a bit of doc
* Deprecate `MatrixClient.isValidRecoveryKey` and `MatrixClient.keyBackupKeyFromRecoveryKey`
* Import `index.ts` directly
* Update `recovery-key.ts` doc
* Add tests for `decodeRecoveryKey`
* Move `recovery-key.spec.ts` file
2024-09-13 13:26:30 +00:00
Florian Duros
febe27ddcc
Replace matrix.org/matrix-react-sdk
by element-hq/matrix-react-sdk
( #4404 )
2024-09-13 13:03:31 +00:00
Hubert Chathi
7987ce76ec
Bump dependency on rust-sdk-crypto-wasm to v8.0.0 ( #4396 )
2024-09-13 10:22:33 +01:00
Richard van der Hoff
60cedf2fdb
Improve documentation on {encrypt,decrypt}AES
( #4397 )
2024-09-11 14:13:12 +00:00
Robin
ed44514974
Expose the event ID of a call membership ( #4395 )
...
This is in line with the other information we're already exposing, such as the event's sender and timestamp. We want this in order to play around with adding reactions to the membership event.
2024-09-10 20:15:07 +00:00
RiotRobot
9f8c1ee953
Merge branch 'master' into develop
2024-09-10 12:31:32 +00:00
RiotRobot
593a57fc2b
v34.5.0
v34.5.0
2024-09-10 12:30:54 +00:00
Will Hunt
e8128d34a1
MSC4133 - Extended profiles ( #4391 )
...
* Add MSC4133 functionality.
* Add MSC4133 capability.
* Tidy
* Add tests for extended profiles.
* improve docs
* undefined
* Add a prefix function to reduce reptitiveness
* Add a docstring
2024-09-09 12:06:38 +00:00
Richard van der Hoff
ba7bd06295
Element-R: Mark unsupported MatrixClient methods as deprecated ( #4389 )
...
Slap a `@deprecated` tag on all the MatrixClient methods which no longer work
with rust crypto.
2024-09-05 13:37:08 +00:00
Richard van der Hoff
e4db6008b8
Minor improvements to logging in device verification ( #4390 )
...
A grab-bag of small logging improvements in the Rust crypto wrapper.
2024-09-05 10:22:54 +00:00
Johannes Marbach
52f35409ec
Stabilise MSC4156 ( #4381 )
...
* Stabilise MSC4156
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org >
* Add deprecation comments
* Add minimum Matrix version
---------
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org >
2024-09-04 12:01:33 +00:00
renovate[bot]
f50aab37c3
Update babel monorepo ( #4387 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-03 21:29:21 +00:00
renovate[bot]
df0f817f83
Update dependency typedoc-plugin-mdn-links to v3.2.10 ( #4386 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-03 21:20:01 +00:00
renovate[bot]
7efa6352f8
Update shogo82148/actions-upload-release-asset digest to aac270e ( #4385 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-03 20:32:50 +00:00
renovate[bot]
f74614705e
Update mheap/github-action-required-labels digest to d25134c ( #4384 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-03 20:32:29 +00:00
renovate[bot]
169e8f8613
Update dependency @types/node to v18.19.47 ( #4383 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-03 15:22:51 +00:00
renovate[bot]
f2f77bd1f7
Update all non-major dependencies ( #4382 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-03 13:51:09 +00:00
RiotRobot
5a1c70ad19
v34.5.0-rc.0
v34.5.0-rc.0
2024-09-03 12:31:16 +00:00
David Baker
27cb16ffe4
Merge pull request #4379 from matrix-org/renovate/matrix-org
...
Update dependency matrix-widget-api to v1.9.0
2024-08-30 17:05:06 +01:00
renovate[bot]
9be0b3e701
Update dependency matrix-widget-api to v1.9.0
2024-08-30 15:54:06 +00:00
Johannes Marbach
05ba27f36b
Change imports for Node.js compatibility ( #4377 )
...
* Change imports for Node.js compatibility
Fixes : #4287
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org >
* Run prettier
* Run prettier (again)
* Add comment
* Update babel.config.cjs
---------
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org >
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
2024-08-29 15:56:32 +00:00
David Baker
e6acfdf275
Rename merge release notes script to cjs ( #4361 )
...
and update the corresponding workflow file
2024-08-28 10:40:16 +00:00
RiotRobot
2a6612c73a
Merge branch 'master' into develop
2024-08-27 12:38:13 +00:00
RiotRobot
2f8b05b0da
v34.4.0
v34.4.0
2024-08-27 12:37:46 +00:00
Hugh Nimmo-Smith
fe984ede6e
Use prefixed loggers for MatrixRTC ( #4378 )
2024-08-23 19:04:22 +00:00
Richard van der Hoff
3f74b9a0cc
Deprecate unused CryptoCallbacks
( #4376 )
2024-08-23 14:00:27 +00:00
David Baker
802b996b10
Set web team as codeowner for the scripts dir ( #4354 )
...
The scripts in here are used in the release, and from the develop
branch too (because it's the main branch and github actions does this)
so it's critical for the release process.
2024-08-23 12:46:27 +00:00
renovate[bot]
8d44f9d665
Update dependency eslint-plugin-unicorn to v55 ( #4371 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-22 12:32:26 +00:00
renovate[bot]
a72a1b294a
Update dependency eslint-plugin-jsdoc to v50 ( #4370 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-22 11:22:35 +00:00
renovate[bot]
ab5f32f984
Update typedoc ( #4367 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-22 10:46:01 +00:00
renovate[bot]
6a21d812ab
Update typescript-eslint monorepo to v7.18.0 ( #4368 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-22 10:41:47 +00:00
Richard van der Hoff
ee94e93354
set entrypoints to use ./lib rather than ./src ( #4357 )
...
Currently, we replace the entrypoints in package.json during the release
cycle. I think. historically, this was done to make matrix-react-sdk and
element-web development easier, but neither of those projects actually use
these entrypoints (instead they import from `src`).
Accordingly, I think the switcheroo is unnecessary; furthermore it causes a
whole bunch of confusion by making the development environment different from
the release environment, and it complicates our CI and release process.
In short, the switcheroo has to die.
2024-08-21 18:31:05 +00:00
renovate[bot]
31c4786a96
Update dependency fetch-mock to v11 ( #4369 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-21 16:14:39 +00:00