Commit Graph

2150 Commits

Author SHA1 Message Date
Quentin Gliech
7ec87b1855 storage: add a user-provided human name to OAuth 2.0 sessions 2025-04-25 16:55:29 +02:00
Quentin Gliech
a10e517d4e Generate a device name based on the client name and user agent 2025-04-25 16:55:29 +02:00
Quentin Gliech
c230deaec0 templates: introduce a parse_user_agent filter and use it in the device consent page 2025-04-25 12:55:30 +02:00
Quentin Gliech
234de8b737 Save the locale detected when starting an authorization grant 2025-04-25 12:55:22 +02:00
Quentin Gliech
75cfff295e compat: allow setting an initial_device_display_name on login 2025-04-25 12:55:19 +02:00
Quentin Gliech
badaf35fcf frontend: expose the compat session humanName 2025-04-25 12:55:11 +02:00
Quentin Gliech
bcd83ef649 storage: allow setting the human_name when creating compat sessions 2025-04-25 12:55:10 +02:00
Quentin Gliech
c55d0e7c0b matrix: allow setting a custom device display name 2025-04-25 12:55:06 +02:00
Quentin Gliech
0c6124b670 Fix the ordering of the middlewares (#4452) 2025-04-24 15:12:51 +02:00
Quentin Gliech
fd258ccf23 Fix the ordering of the middlewares
This was causing the number of event processors to constantly grow
with each request, making the server use up more memory and CPU over
time.
2025-04-24 14:59:07 +02:00
Quentin Gliech
fc8b92e879 perf: avoid unnecessary clones of the log context (#4451) 2025-04-24 14:26:49 +02:00
Quentin Gliech
564e70d8dc perf: avoid unnecessary clones of the log context 2025-04-24 14:19:26 +02:00
Quentin Gliech
f457bd8d35 Don't parse the user agent unless we need to 2025-04-24 13:13:26 +02:00
Quentin Gliech
dbb68257fc Compile the user-agent regexes once 2025-04-24 12:36:41 +02:00
Quentin Gliech
39fd5ad90c Merge branch 'main' into quenting/better-logging 2025-04-23 18:37:30 +02:00
Olivier 'reivilibre
f94a808e7a Fix cargo doc choking on invalid [DEPRECATED] 'link'
Could have escaped with a backslash but I thought just using round
brackets would be more readable than that.
2025-04-23 16:54:10 +01:00
Quentin Gliech
687df8276c build(deps): bump der from 0.7.9 to 0.7.10 (#4428) 2025-04-23 17:50:20 +02:00
Quentin Gliech
2c6b4a1c61 build(deps): bump psl from 2.1.100 to 2.1.102 (#4439) 2025-04-23 17:49:42 +02:00
Quentin Gliech
ae819a398f Format code 2025-04-23 17:36:48 +02:00
Quentin Gliech
df7109364f Merge remote-tracking branch 'origin/main' into quenting/better-logging 2025-04-23 17:28:40 +02:00
Quentin Gliech
9991ebde2c Suggestions from code review:
- what unit is cpu_time in
 - reduce the number of digits when logging timings
2025-04-23 17:24:18 +02:00
Quentin Gliech
6ec318374d Make the new migration tool generally available (#4444) 2025-04-23 17:01:19 +02:00
dependabot[bot]
53f1d33171 build(deps): bump der from 0.7.9 to 0.7.10
Bumps [der](https://github.com/RustCrypto/formats) from 0.7.9 to 0.7.10.
- [Commits](https://github.com/RustCrypto/formats/compare/der/v0.7.9...der/v0.7.10)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-23 14:16:39 +00:00
matrixbot
f94372fdeb Automatic merge back to main (#4441) 2025-04-23 16:15:06 +02:00
dependabot[bot]
3b84f19095 build(deps): bump psl from 2.1.100 to 2.1.102
Bumps [psl](https://github.com/addr-rs/psl) from 2.1.100 to 2.1.102.
- [Release notes](https://github.com/addr-rs/psl/releases)
- [Commits](https://github.com/addr-rs/psl/compare/v2.1.100...v2.1.102)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-23 13:55:11 +00:00
Quentin Gliech
348eb56344 syn2mas: introduce a dry-run mode 2025-04-23 14:42:30 +02:00
Quentin Gliech
ae29ef1f9d syn2mas: log progress more often 2025-04-23 14:21:15 +02:00
Quentin Gliech
30a0e5054a Allow syn2mas arguments to be specified after the subcommand 2025-04-23 14:18:59 +02:00
Quentin Gliech
44727912c0 Add a few missing license headers 2025-04-23 13:46:44 +02:00
Quentin Gliech
be09f62bfa syn2mas: drop the experimental flag 2025-04-23 13:39:16 +02:00
Quentin Gliech
d62fe98f5a syn2mas: provide guidance on how to re-do a fresh migration 2025-04-23 13:34:34 +02:00
Quentin Gliech
fa1ecc5216 syn2mas: warn about existing oauth-delegated user_external_ids 2025-04-23 13:30:02 +02:00
Quentin Gliech
f84f6142b9 Fix starting up when no telemetry config is set 2025-04-23 11:18:28 +02:00
Quentin Gliech
31c8a08dd1 syn2mas: spawn the writer connections in parallel
Also make sure we have a single span for them
2025-04-22 17:57:30 +02:00
Quentin Gliech
853b987a4a syn2mas: only log once when rebuilding constraints 2025-04-22 17:46:12 +02:00
Quentin Gliech
9aafc576a1 syn2mas: log the number of entities migrated at each step 2025-04-22 17:38:58 +02:00
Quentin Gliech
ad2c183c71 syn2mas: reduce the channel buffer size 2025-04-22 17:35:15 +02:00
Quentin Gliech
1056949149 syn2mas: remove the MasWriter::write_ methods and replaced them in tests 2025-04-22 16:35:37 +02:00
Quentin Gliech
47009a8800 syn2mas: make the MasWriteBuffer use the WriteBatch trait 2025-04-22 15:49:17 +02:00
Quentin Gliech
d2f1ab08fb syn2mas: implement WriteBatch for MasNewCompatRefreshToken 2025-04-22 14:42:52 +02:00
Quentin Gliech
aa2e2825fe syn2mas: implement WriteBatch for MasNewCompatAccessToken 2025-04-22 14:39:59 +02:00
Quentin Gliech
86000613ac syn2mas: implement WriteBatch for MasNewCompatSession 2025-04-22 14:37:32 +02:00
Quentin Gliech
07536cbd3b syn2mas: implement WriteBatch for MasNewUpstreamOauthLink 2025-04-22 14:33:16 +02:00
Quentin Gliech
028a993dc6 syn2mas: implement WriteBatch for MasNewUnsupportedThreepid 2025-04-22 14:30:51 +02:00
Quentin Gliech
2450e2e480 syn2mas: implement WriteBatch for MasNewEmailThreepid 2025-04-22 14:25:13 +02:00
Quentin Gliech
4c081152a9 syn2mas: implement WriteBatch for MasNewUserPassword 2025-04-22 14:17:37 +02:00
Quentin Gliech
8488476368 syn2mas: implement WriteBatch for MasNewUser 2025-04-22 14:14:44 +02:00
Quentin Gliech
b3538219e6 syn2mas: introduce a WriteBatch trait to refactor how we write to MAS 2025-04-22 14:14:20 +02:00
Quentin Gliech
b21748c2bd syn2mas: add a buffered channel for writing refreshable tokens 2025-04-22 13:49:22 +02:00
Quentin Gliech
c292da7ac9 syn2mas: add a buffered channel for writing external IDs 2025-04-22 13:44:52 +02:00