Commit Graph

1941 Commits

Author SHA1 Message Date
Olivier 'reivilibre 19d87e896d Remove TODO on MIGRATOR 2025-03-12 14:38:32 +00:00
Olivier 'reivilibre 0ee9a68e22 syn2mas: improve performance of reading access tokens / refresh tokens 2025-03-12 14:38:32 +00:00
Olivier 'reivilibre f5b17d9243 syn2mas: disable logging of slow statements 2025-03-12 14:38:32 +00:00
Quentin Gliech 2ae1523a61 Order the OAuth providers in the UI by their order in the config file (#4199) 2025-03-12 12:12:39 +01:00
reivilibre d1a3ef99e2 syn2mas: better performance, output tweaks, tracing tweaks, access token fixes (#4175) 2025-03-12 10:56:56 +00:00
reivilibre dbb67532b5 Update crates/cli/src/commands/syn2mas.rs
Co-authored-by: Quentin Gliech <quenting@element.io>
2025-03-12 10:47:47 +00:00
Quentin Gliech 36a9131145 Update test snapshots 2025-03-12 11:47:07 +01:00
Quentin Gliech 847aa027dc Fix missing 'ui_order' field in tests 2025-03-12 11:32:06 +01:00
Quentin Gliech 69bfdb2d5d Order the OAuth providers in the UI by their order in the config file 2025-03-12 11:12:55 +01:00
Quentin Gliech 7823f210a6 Align user deactivation behaviour with Synapse (#4197) 2025-03-12 08:55:50 +01:00
Quentin Gliech 4f30463e17 build(deps): bump console from 0.15.10 to 0.15.11 (#4194) 2025-03-11 18:00:52 +01:00
Quentin Gliech ea955b88b7 syn2mas: import the deactivation and locked status independently 2025-03-11 17:35:13 +01:00
Quentin Gliech f66afb8c30 Proper error when the account is deactivated or locked on upstream SSO login 2025-03-11 17:35:13 +01:00
Quentin Gliech 62a4aba08b Better error pages when a user is deactivated or locked 2025-03-11 17:35:13 +01:00
Quentin Gliech 93b991ec95 Mark the user as deactivated in the user deactivation job 2025-03-11 17:35:13 +01:00
Quentin Gliech b72b83665e Repository method to deactivate a user. 2025-03-11 17:35:13 +01:00
Quentin Gliech 6519d6c9ea Add a deactivated_at flag on users 2025-03-11 17:35:13 +01:00
Quentin Gliech 4e2f38ea41 Remove user emails when deactivating a user 2025-03-11 17:35:12 +01:00
Quentin Gliech 10276b05fc Allow removing email addresses in bulk 2025-03-11 17:35:12 +01:00
Quentin Gliech 7834221c22 Stop writing to the old email confirmation-related tables
This will allow to drop those old tables and fields in the next release
2025-03-11 17:35:12 +01:00
dependabot[bot] 02118213e4 build(deps): bump time from 0.3.37 to 0.3.39
Bumps [time](https://github.com/time-rs/time) from 0.3.37 to 0.3.39.
- [Release notes](https://github.com/time-rs/time/releases)
- [Changelog](https://github.com/time-rs/time/blob/main/CHANGELOG.md)
- [Commits](https://github.com/time-rs/time/compare/v0.3.37...v0.3.39)

---
updated-dependencies:
- dependency-name: time
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-11 13:17:38 +00:00
dependabot[bot] 8bb7dc86c8 build(deps): bump console from 0.15.10 to 0.15.11
Bumps [console](https://github.com/console-rs/console) from 0.15.10 to 0.15.11.
- [Release notes](https://github.com/console-rs/console/releases)
- [Changelog](https://github.com/console-rs/console/blob/main/CHANGELOG.md)
- [Commits](https://github.com/console-rs/console/compare/0.15.10...0.15.11)

---
updated-dependencies:
- dependency-name: console
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-11 13:17:18 +00:00
dependabot[bot] ee2fb50a54 build(deps): bump tokio-rustls from 0.26.1 to 0.26.2
Bumps [tokio-rustls](https://github.com/rustls/tokio-rustls) from 0.26.1 to 0.26.2.
- [Release notes](https://github.com/rustls/tokio-rustls/releases)
- [Commits](https://github.com/rustls/tokio-rustls/compare/v/0.26.1...v/0.26.2)

---
updated-dependencies:
- dependency-name: tokio-rustls
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-11 07:19:30 +00:00
Quentin Gliech 966841869e Update comment
Co-authored-by: reivilibre <oliverw@element.io>
2025-03-11 08:02:36 +01:00
Olivier 'reivilibre cc0da1b901 Add TODO on dry-run flag in syn2mas tool 2025-03-10 13:53:36 +00:00
Quentin Gliech 5a79703943 Better report errors when a writing task fails 2025-03-10 13:53:36 +00:00
Quentin Gliech 03fd1b20b5 Read and write users in different tasks 2025-03-10 13:53:36 +00:00
Quentin Gliech 9d12d0f4d6 Use rustc' FxHasher instead of the std one 2025-03-10 13:36:12 +00:00
Quentin Gliech 06a2ca33fb Better tracing during the migration 2025-03-10 13:36:12 +00:00
Quentin Gliech fe5ca2de87 Make sure tracing spans are propagated in tokio::task::spawn 2025-03-10 13:36:11 +00:00
Olivier 'reivilibre 40e67e4657 Log timings of migrations and index/constraint rebuilds 2025-03-10 13:25:59 +00:00
Olivier 'reivilibre a431ccbb72 Add spans for the constraint/index drop operations 2025-03-10 13:23:59 +00:00
Olivier 'reivilibre 72523125f1 Add a bit of padding in the syn2mas output 2025-03-10 13:23:59 +00:00
Olivier 'reivilibre 741bc26d92 Don't include access tokens where the referenced device has vanished 2025-03-10 13:23:59 +00:00
Olivier 'reivilibre 1b63615091 Don't read refresh tokens that don't have associated access tokens
These appear to be accidental and should not be migrated.
2025-03-10 13:23:59 +00:00
Olivier 'reivilibre f1e4dc8fe5 For performance, switch to a row count estimate for users and devices 2025-03-10 13:23:59 +00:00
Olivier 'reivilibre 487c53cab3 Replace panic on unfinished buffers with an error
This doesn't get clobbered by the progress bar
2025-03-10 13:23:55 +00:00
Olivier 'reivilibre 669ec70bd2 Downgrade presence of guests and unsupported 3pids to warnings
Since migration is supported, but the data won't be used
2025-03-10 13:20:46 +00:00
Olivier 'reivilibre b95f983fb8 Remove obsolete OIDC provider warning
We now produce an error for unmapped OIDC providers!
2025-03-10 13:20:46 +00:00
Quentin Gliech 36867bd072 Properly accumlate form errors on the upstream register page 2025-03-10 10:14:05 +01:00
Quentin Gliech 2939a2a5b8 Adjust the jobs retry delays and number of attempts (#4169) 2025-03-10 09:34:05 +01:00
Quentin Gliech 20b863f534 Require confirming account password before changing account emails (#4158) 2025-03-10 09:16:05 +01:00
Quentin Gliech 5f92719da8 build(deps): bump uuid from 1.14.0 to 1.15.1 (#4166) 2025-03-10 09:13:10 +01:00
dependabot[bot] 1c2d21b48c build(deps): bump convert_case from 0.7.1 to 0.8.0
Bumps [convert_case](https://github.com/rutrum/convert-case) from 0.7.1 to 0.8.0.
- [Commits](https://github.com/rutrum/convert-case/commits)

---
updated-dependencies:
- dependency-name: convert_case
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-07 14:05:37 +00:00
dependabot[bot] 35cf30a622 build(deps): bump uuid from 1.14.0 to 1.15.1
Bumps [uuid](https://github.com/uuid-rs/uuid) from 1.14.0 to 1.15.1.
- [Release notes](https://github.com/uuid-rs/uuid/releases)
- [Commits](https://github.com/uuid-rs/uuid/compare/v1.14.0...v1.15.1)

---
updated-dependencies:
- dependency-name: uuid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-07 14:05:02 +00:00
Quentin Gliech 79cef5ebe0 Adjust the jobs retry delays and number of attempts 2025-03-07 15:01:08 +01:00
Quentin Gliech 09d185da6d Require the user password to add or remove an email address 2025-03-06 17:37:54 +01:00
Quentin Gliech 7c9bb73f67 Merge remote-tracking branch 'origin/main' into quenting/compat-device-id 2025-03-04 13:33:09 +01:00
Quentin Gliech 93bd6ed2de Handle AS users with invalid localparts edge case 2025-03-04 12:38:51 +01:00
Quentin Gliech 7d060f5785 Properly ignore devices, threepids and access tokens from AS users (#4122) 2025-03-04 12:38:14 +01:00