Commit Graph

1940 Commits

Author SHA1 Message Date
Quentin Gliech
155c19e949 Better feedback on failure cases during login (#4198) 2025-03-12 15:58:10 +01:00
Quentin Gliech
51e1c11df9 Order the OAuth providers in the UI by their order in the config file (#4199) 2025-03-12 12:12:39 +01:00
reivilibre
8553efdab4 syn2mas: better performance, output tweaks, tracing tweaks, access token fixes (#4175) 2025-03-12 10:56:56 +00:00
reivilibre
0a3c5cf38e 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
c4f7cad172 Update test snapshots 2025-03-12 11:47:07 +01:00
Quentin Gliech
a8332937ba Fix missing 'ui_order' field in tests 2025-03-12 11:32:06 +01:00
Quentin Gliech
cc98fd7a53 Order the OAuth providers in the UI by their order in the config file 2025-03-12 11:12:55 +01:00
Quentin Gliech
035e1df682 Better feedback on failure cases during login
This includes:
 - displaying the list of upstream providers on failed password logins
 - showing a proper 'account deactivated' or 'account locked' page
 - show the generic error page on 500-like errors
2025-03-12 10:19:41 +01:00
Quentin Gliech
ea0864a46e Align user deactivation behaviour with Synapse (#4197) 2025-03-12 08:55:50 +01:00
Quentin Gliech
97bfe64388 build(deps): bump console from 0.15.10 to 0.15.11 (#4194) 2025-03-11 18:00:52 +01:00
Quentin Gliech
bf496e8d81 syn2mas: import the deactivation and locked status independently 2025-03-11 17:35:13 +01:00
Quentin Gliech
a9834771a8 Proper error when the account is deactivated or locked on upstream SSO login 2025-03-11 17:35:13 +01:00
Quentin Gliech
a2b5a208b1 Better error pages when a user is deactivated or locked 2025-03-11 17:35:13 +01:00
Quentin Gliech
36e2a91c38 Mark the user as deactivated in the user deactivation job 2025-03-11 17:35:13 +01:00
Quentin Gliech
14f938bf93 Repository method to deactivate a user. 2025-03-11 17:35:13 +01:00
Quentin Gliech
9c35f18d79 Add a deactivated_at flag on users 2025-03-11 17:35:13 +01:00
Quentin Gliech
db417dd12e Remove user emails when deactivating a user 2025-03-11 17:35:12 +01:00
Quentin Gliech
fce20ee80d Allow removing email addresses in bulk 2025-03-11 17:35:12 +01:00
Quentin Gliech
d80e1e4090 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]
2c562252d3 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]
55c9dc2b61 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]
2272415138 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
448a5a6969 Update comment
Co-authored-by: reivilibre <oliverw@element.io>
2025-03-11 08:02:36 +01:00
Olivier 'reivilibre
7fd159346f Add TODO on dry-run flag in syn2mas tool 2025-03-10 13:53:36 +00:00
Quentin Gliech
d2f3b56cd0 Better report errors when a writing task fails 2025-03-10 13:53:36 +00:00
Quentin Gliech
8ee4e68d6d Read and write users in different tasks 2025-03-10 13:53:36 +00:00
Quentin Gliech
c45500be72 Use rustc' FxHasher instead of the std one 2025-03-10 13:36:12 +00:00
Quentin Gliech
0b9036601a Better tracing during the migration 2025-03-10 13:36:12 +00:00
Quentin Gliech
32071e1833 Make sure tracing spans are propagated in tokio::task::spawn 2025-03-10 13:36:11 +00:00
Olivier 'reivilibre
07dd9cd9ec Log timings of migrations and index/constraint rebuilds 2025-03-10 13:25:59 +00:00
Olivier 'reivilibre
8c1a8dd8a1 Add spans for the constraint/index drop operations 2025-03-10 13:23:59 +00:00
Olivier 'reivilibre
b6b1901741 Add a bit of padding in the syn2mas output 2025-03-10 13:23:59 +00:00
Olivier 'reivilibre
6fdfb263b5 Don't include access tokens where the referenced device has vanished 2025-03-10 13:23:59 +00:00
Olivier 'reivilibre
eff33289a5 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
4f4fe822d9 For performance, switch to a row count estimate for users and devices 2025-03-10 13:23:59 +00:00
Olivier 'reivilibre
b0c958007f 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
bfcd0f8209 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
155b4f31d2 Remove obsolete OIDC provider warning
We now produce an error for unmapped OIDC providers!
2025-03-10 13:20:46 +00:00
Quentin Gliech
d80b760481 Properly accumlate form errors on the upstream register page 2025-03-10 10:14:05 +01:00
Quentin Gliech
c53116c62d Adjust the jobs retry delays and number of attempts (#4169) 2025-03-10 09:34:05 +01:00
Quentin Gliech
9e32d42ad8 Require confirming account password before changing account emails (#4158) 2025-03-10 09:16:05 +01:00
Quentin Gliech
a67fe13c11 build(deps): bump uuid from 1.14.0 to 1.15.1 (#4166) 2025-03-10 09:13:10 +01:00
dependabot[bot]
00e0152f0e 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]
895678f968 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
c95c087e5e Adjust the jobs retry delays and number of attempts 2025-03-07 15:01:08 +01:00
Quentin Gliech
629a194c35 Require the user password to add or remove an email address 2025-03-06 17:37:54 +01:00
Quentin Gliech
44b6777f1b Merge remote-tracking branch 'origin/main' into quenting/compat-device-id 2025-03-04 13:33:09 +01:00
Quentin Gliech
6e65db5aca Handle AS users with invalid localparts edge case 2025-03-04 12:38:51 +01:00
Quentin Gliech
9dc1b39fa1 Properly ignore devices, threepids and access tokens from AS users (#4122) 2025-03-04 12:38:14 +01:00
Quentin Gliech
004119dbce Pass the MasWriter as owned to the various migration functions (#4120) 2025-03-04 12:37:23 +01:00