Commit Graph

545 Commits

Author SHA1 Message Date
Quentin Gliech 7c9bb73f67 Merge remote-tracking branch 'origin/main' into quenting/compat-device-id 2025-03-04 13:33:09 +01:00
Quentin Gliech cccb39ac1b Pass the MasWriter as owned to the various migration functions (#4120) 2025-03-04 12:37:23 +01:00
Quentin Gliech d0f1cf4971 Allow configuring the connection to the homeserver to be read-only. 2025-03-03 17:24:15 +01:00
Quentin Gliech f484896f16 Remove generic error type & always use an Arc on the HS connection
This should help us write other implementations of HomeserverConnection
2025-03-03 15:43:13 +01:00
Quentin Gliech 65b3741c1a Pass the MasWriter as owned to the various migration functions 2025-02-27 09:51:56 +01:00
Quentin Gliech a538b50233 Bump most Rust dependencies 2025-02-24 12:12:07 +01:00
Quentin Gliech 674c1a4ada Upgrade OpenTelemetry to 0.28 2025-02-24 10:44:08 +01:00
Quentin Gliech 3ab28d4957 Remove explicit imports of std::future::Future, as it is now in the prelude 2025-02-21 16:24:53 +01:00
Quentin Gliech ab622d7e3a Convert a few closures + async move to async closures 2025-02-21 16:22:21 +01:00
Quentin Gliech 3d2b67a0b2 Upgrade to Rust 1.85 and edition 2024 2025-02-21 16:15:02 +01:00
matrixbot 84766e3c30 Automatic merge back to main (#4070) 2025-02-20 09:04:08 +01:00
Quentin Gliech 9d4d09f7c1 Fix a crash on startup when a listener has an empty prefix 2025-02-20 08:31:11 +01:00
Quentin Gliech 9cdc3b9f37 Allow compat session devices to have spaces 2025-02-19 17:55:18 +01:00
Quentin Gliech a1694acdd2 Convert IPv6-mapped IPv4 addresses to IPv4 addresses 2025-02-19 15:33:37 +01:00
Quentin Gliech 935400d87b Experimental feature to timeout inactive sessions 2025-02-12 17:31:21 +01:00
Quentin Gliech 8e9919b381 Encapsulate migration state in a single structure 2025-02-07 15:02:30 +01:00
Quentin Gliech e46cd724f4 Make the MAS connection owned in the locked database struct 2025-02-07 12:53:51 +01:00
Quentin Gliech 33fc45605f Update most Rust dependencies & disable some unused features 2025-02-06 12:50:50 +01:00
Quentin Gliech f0e14ee6af Merge pull request #3926 from element-hq/rei/syn2mas_8_atrtdevs
syn2mas: migrate access tokens, refresh tokens and devices
2025-02-05 11:57:59 +01:00
Olivier 'reivilibre ca32c5ebff Add MasWriter support for compat refresh tokens + some migration progress 2025-02-05 11:38:50 +01:00
Quentin Gliech 911aecb165 Merge remote-tracking branch 'origin/main' into ref-merge/cb559012b7b4abd4232d3d2bb3b9f76779e114d5 2025-02-04 16:21:10 +01:00
Quentin Gliech 453fdcf9b6 Fetch the upstream OIDC metadata in the background on startup 2025-01-30 15:24:45 +01:00
reivilibre fec4efd9d8 syn2mas: Support migrating external IDs as upstream OAuth2 providers (#3917)
* Add `SynapseReader` support and test for external IDs

* Run database migrations and do a config sync before syn2mas

* FullUserId: implement Display

* Add `MasWriter` support and test for upstream OAuth provider links

* Remove special-purpose write buffers and use only the generic one

* Build the provider ID mapping
2025-01-30 10:34:20 +00:00
Quentin Gliech 3f494a61e7 Don't prevent starting up if the mail backend is unavailable 2025-01-29 15:45:50 +01:00
Quentin Gliech d57552ce66 Fix crash if the watchdog is not set 2025-01-29 14:56:25 +01:00
Quentin Gliech e3e6537fe7 Run reload handlers in parallel 2025-01-28 14:29:33 +01:00
Quentin Gliech 6aa2e366cc Advertise the main PID through sd_notify on startup 2025-01-28 14:29:33 +01:00
Quentin Gliech 88de377b42 Rename ShutdownManager to LifecycleManager 2025-01-28 14:29:33 +01:00
Quentin Gliech 0b7042b809 Send notifications about the state of the service to systemd 2025-01-28 14:16:56 +01:00
Quentin Gliech c86746fd1f Handle SIGHUPs as part of the shutdown manager 2025-01-28 13:29:12 +01:00
Quentin Gliech 879eb6a3ec Merge pull request #3893 from element-hq/quenting/axum-0.8
Upgrade axum to 0.8
2025-01-28 09:47:49 +01:00
reivilibre c3767905e4 syn2mas: Migrate threepids to MAS (#3878)
* Add a table to hold unsupported threepids

* Migrate threepids from Synapse to MAS
2025-01-27 18:01:46 +00:00
reivilibre e5b6e1e8c2 Add pre-migration checks to syn2mas (#3805)
This matches or exceeds `advisor.mts` from the old tool.

Co-authored-by: Quentin Gliech <quenting@element.io>
2025-01-27 18:01:46 +00:00
reivilibre fb8a60b7f1 Foundation of new syn2mas tool (#3636) 2025-01-27 18:01:46 +00:00
reivilibre 0c26dd859a Support compatibility sessions that do not have devices (#3801)
Co-authored-by: Quentin Gliech <quenting@element.io>
2025-01-27 14:50:31 +00:00
Quentin Gliech 11b5355590 Upgrade axum to 0.8 2025-01-27 15:11:10 +01:00
Quentin Gliech c9b89a994a Fix reporting of version in prebuilt binaries & docker image 2025-01-27 10:34:21 +01:00
Quentin Gliech 244ec18898 Merge remote-tracking branch 'origin/main' into quenting/optional-email 2025-01-23 18:28:33 +01:00
Quentin Gliech 154e42af6b Upgrade Rust to 1.84 and fix new clippy lints 2025-01-23 17:55:22 +01:00
dependabot[bot] 44fb22568d build(deps): bump listenfd from 1.0.1 to 1.0.2
Bumps [listenfd](https://github.com/mitsuhiko/listenfd) from 1.0.1 to 1.0.2.
- [Changelog](https://github.com/mitsuhiko/listenfd/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mitsuhiko/listenfd/compare/1.0.1...1.0.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-23 08:04:41 +01:00
dependabot[bot] f9b15c7b83 build(deps): bump vergen-gitcl from 1.0.2 to 1.0.5
Bumps [vergen-gitcl](https://github.com/rustyhorde/vergen) from 1.0.2 to 1.0.5.
- [Release notes](https://github.com/rustyhorde/vergen/releases)
- [Commits](https://github.com/rustyhorde/vergen/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-22 15:31:27 +01:00
Quentin Gliech 6092efe949 Merge branch 'main' into quenting/optional-email 2025-01-20 11:31:48 +01:00
Quentin Gliech 9247885518 Remove unused dependencies 2025-01-16 17:59:03 +01:00
Quentin Gliech 0513f198d8 Rip out the email verification codes
This considers all user_emails as confirmed, and removes the verification code.
It will be replaced by a new email authentication code flow
2025-01-14 15:46:45 +01:00
Quentin Gliech ee33e9c0fb Remove the primary email address concept 2025-01-13 17:00:30 +01:00
Quentin Gliech 5cbb576f94 Make the rate limiter available to the GraphQL API handlers 2025-01-13 16:58:42 +01:00
Quentin Gliech b5940b969f Additional fields in the GraphQL API for upstream providers 2025-01-06 11:59:43 +01:00
Quentin Gliech 2820794c8d Allow longer & shorter usernames, complying with the MXID length spec 2025-01-06 10:15:08 +01:00
dependabot[bot] 5567e5aa71 build(deps): bump console from 0.15.8 to 0.15.10
Bumps [console](https://github.com/console-rs/console) from 0.15.8 to 0.15.10.
- [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.8...0.15.10)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-06 09:08:48 +01:00
Mathieu Velten af1282b510 Allow response_mode to be null and if so do not add the query param (#3700) 2024-12-18 18:18:39 +01:00