Commit Graph

2174 Commits

Author SHA1 Message Date
Quentin Gliech
e7d619f5cf Check rendering of templates with all supported locales. 2025-05-05 14:38:24 +02:00
Quentin Gliech
35094f730f Make sure to check all the templates 2025-05-05 13:51:11 +02:00
Quentin Gliech
347d7080b2 Make the check functions on templates crate private
This will report if we forget to use one of the check function.
2025-05-05 13:49:09 +02:00
Quentin Gliech
7b9b44c644 Allow setting custom names on sessions (#4459) 2025-04-30 15:32:25 +02:00
dependabot[bot]
0b9ecdd42b build(deps): bump psl from 2.1.102 to 2.1.105
Bumps [psl](https://github.com/addr-rs/psl) from 2.1.102 to 2.1.105.
- [Release notes](https://github.com/addr-rs/psl/releases)
- [Commits](https://github.com/addr-rs/psl/compare/v2.1.102...v2.1.105)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-30 11:54:54 +00:00
Quentin Gliech
aba9ca38e6 Insert client_name when upserting statically registered clients (#4417) 2025-04-30 11:50:49 +02:00
Quentin Gliech
ad21263b70 Rework the error fallback to better report the error to Sentry
This means we keep the std::error::Error boxed longer, and transform it
into an error context later
2025-04-29 11:15:34 +02:00
Quentin Gliech
cb56a6e880 Remove duplicate OTEL meter for the Tokio runtime 2025-04-29 08:38:57 +02:00
Quentin Gliech
8be6b2785f Allow Synapse user deactivation to take up to 5 minutes 2025-04-28 19:40:17 +02:00
Quentin Gliech
b637e55f4a Remove the global read_timeout on the HTTP client
The `connect_timeout` plus `timeout` are enough to handle general
network issues
2025-04-28 19:39:46 +02:00
Quentin Gliech
ff65153f7b Don't check for availability of usernames that aren't ASCII 2025-04-28 17:29:54 +02:00
Quentin Gliech
60c92ebdf4 Add a gauge which tracks the number of pending activity records 2025-04-28 10:45:10 +02:00
Quentin Gliech
a6f6cfadb0 Reduce the size of the activity tracker batches 2025-04-28 10:37:23 +02:00
Quentin Gliech
009c4baa6c Avoid using anyhow in the activity tracker worker 2025-04-28 10:00:12 +02:00
Quentin Gliech
fa5bd313be Use a tokio interval instead of a sleep in the activity tracker 2025-04-28 09:59:58 +02:00
Quentin Gliech
0396de202a Avoid deadlocks when updating the last activity of sessions 2025-04-28 09:56:30 +02:00
Quentin Gliech
cf9d4599f9 graphql: add mutation to update device name 2025-04-25 16:55:30 +02:00
Quentin Gliech
3b9d580b17 storage: methods to set the sessions human name 2025-04-25 16:55:30 +02:00
Quentin Gliech
5d4c371e53 admin: expose the sessions 'human_name' 2025-04-25 16:55:30 +02:00
Quentin Gliech
79868c3ca3 graphql: expose the humanName field on OAuth 2.0 sessions 2025-04-25 16:55:30 +02:00
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