Commit Graph

2174 Commits

Author SHA1 Message Date
Quentin Gliech 488e028f14 Check rendering of templates with all supported locales. 2025-05-05 14:38:24 +02:00
Quentin Gliech 27fa92a0d8 Make sure to check all the templates 2025-05-05 13:51:11 +02:00
Quentin Gliech 3eb8908cba 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 8bfe2d2092 Allow setting custom names on sessions (#4459) 2025-04-30 15:32:25 +02:00
dependabot[bot] 53addbfd67 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 9cfecaf5db Insert client_name when upserting statically registered clients (#4417) 2025-04-30 11:50:49 +02:00
Quentin Gliech 9a5255f89b 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 dec4c03d42 Remove duplicate OTEL meter for the Tokio runtime 2025-04-29 08:38:57 +02:00
Quentin Gliech d7791db643 Allow Synapse user deactivation to take up to 5 minutes 2025-04-28 19:40:17 +02:00
Quentin Gliech 28676f3d56 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 ecade0aa9d Don't check for availability of usernames that aren't ASCII 2025-04-28 17:29:54 +02:00
Quentin Gliech e2dde8268a Add a gauge which tracks the number of pending activity records 2025-04-28 10:45:10 +02:00
Quentin Gliech a4a6cce9ed Reduce the size of the activity tracker batches 2025-04-28 10:37:23 +02:00
Quentin Gliech ea0a563930 Avoid using anyhow in the activity tracker worker 2025-04-28 10:00:12 +02:00
Quentin Gliech ed8eec669b Use a tokio interval instead of a sleep in the activity tracker 2025-04-28 09:59:58 +02:00
Quentin Gliech 062d554a6f Avoid deadlocks when updating the last activity of sessions 2025-04-28 09:56:30 +02:00
Quentin Gliech 1696102592 graphql: add mutation to update device name 2025-04-25 16:55:30 +02:00
Quentin Gliech 9a660b211a storage: methods to set the sessions human name 2025-04-25 16:55:30 +02:00
Quentin Gliech 498c0ac3a7 admin: expose the sessions 'human_name' 2025-04-25 16:55:30 +02:00
Quentin Gliech fe1d15ab0e graphql: expose the humanName field on OAuth 2.0 sessions 2025-04-25 16:55:30 +02:00
Quentin Gliech 3b6581ab3d storage: add a user-provided human name to OAuth 2.0 sessions 2025-04-25 16:55:29 +02:00
Quentin Gliech 7c0eeec347 Generate a device name based on the client name and user agent 2025-04-25 16:55:29 +02:00
Quentin Gliech fc94c751bc 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 b708c403e3 Save the locale detected when starting an authorization grant 2025-04-25 12:55:22 +02:00
Quentin Gliech d550fce698 compat: allow setting an initial_device_display_name on login 2025-04-25 12:55:19 +02:00
Quentin Gliech 4341bff235 frontend: expose the compat session humanName 2025-04-25 12:55:11 +02:00
Quentin Gliech 60a0285d36 storage: allow setting the human_name when creating compat sessions 2025-04-25 12:55:10 +02:00
Quentin Gliech 8735bdb7f0 matrix: allow setting a custom device display name 2025-04-25 12:55:06 +02:00
Quentin Gliech 305914ee69 Fix the ordering of the middlewares (#4452) 2025-04-24 15:12:51 +02:00
Quentin Gliech cb7472995d 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 3ef91d5248 perf: avoid unnecessary clones of the log context (#4451) 2025-04-24 14:26:49 +02:00
Quentin Gliech 2a99af6349 perf: avoid unnecessary clones of the log context 2025-04-24 14:19:26 +02:00
Quentin Gliech 0cfea60fa0 Don't parse the user agent unless we need to 2025-04-24 13:13:26 +02:00
Quentin Gliech 691c283a1e Compile the user-agent regexes once 2025-04-24 12:36:41 +02:00
Quentin Gliech b9ae5228e5 Merge branch 'main' into quenting/better-logging 2025-04-23 18:37:30 +02:00
Olivier 'reivilibre 281da18155 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 fcd78f570d build(deps): bump der from 0.7.9 to 0.7.10 (#4428) 2025-04-23 17:50:20 +02:00
Quentin Gliech 8734a1900c build(deps): bump psl from 2.1.100 to 2.1.102 (#4439) 2025-04-23 17:49:42 +02:00
Quentin Gliech 295436af12 Format code 2025-04-23 17:36:48 +02:00
Quentin Gliech 5fc74f7e3a Merge remote-tracking branch 'origin/main' into quenting/better-logging 2025-04-23 17:28:40 +02:00
Quentin Gliech 0c74ecdde7 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 599fc85ca5 Make the new migration tool generally available (#4444) 2025-04-23 17:01:19 +02:00
dependabot[bot] 15e4d18efa 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 68c351a44a Automatic merge back to main (#4441) 2025-04-23 16:15:06 +02:00
dependabot[bot] a90f91af8a 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 2539220d89 syn2mas: introduce a dry-run mode 2025-04-23 14:42:30 +02:00
Quentin Gliech 6d2e6816ec syn2mas: log progress more often 2025-04-23 14:21:15 +02:00
Quentin Gliech 55f263d017 Allow syn2mas arguments to be specified after the subcommand 2025-04-23 14:18:59 +02:00
Quentin Gliech 2b1703eb2b Add a few missing license headers 2025-04-23 13:46:44 +02:00
Quentin Gliech ab1c3173d4 syn2mas: drop the experimental flag 2025-04-23 13:39:16 +02:00