Commit Graph

2196 Commits

Author SHA1 Message Date
Quentin Gliech ad66524f33 Fix the Swagger UI not working when MAS is mounted on a prefix (#4515) 2025-05-07 14:57:27 +02:00
Quentin Gliech b9a40ef13d Sample traces based on the parent (#4514) 2025-05-07 14:53:52 +02:00
Quentin Gliech ec945aa58b Suppress warning with Jaeger propagator when the header is unset (#4513) 2025-05-07 14:53:40 +02:00
Quentin Gliech 514cd8e389 Allow the X-Requested-With header in CORS on the OAuth endpoints 2025-05-07 14:50:03 +02:00
Quentin Gliech c326d76e2a Make the security schemes relative in the static OpenAPI spec 2025-05-07 14:20:21 +02:00
Quentin Gliech dc2ff768e3 Use absolute URLs in the OAuth 2.0 security scheme in the API spec 2025-05-07 14:05:44 +02:00
Quentin Gliech 4396ba1bfc Forward the login_hint upstream. (#4512) 2025-05-07 12:23:49 +02:00
Doug 2d4f24eed4 Update copyright header
sqlx migrate/prepare are both still happy.
2025-05-07 10:26:30 +01:00
Doug 0d1caae379 Update the login schema docs. 2025-05-07 10:21:40 +01:00
Quentin Gliech e682c57c55 build(deps): bump psl from 2.1.105 to 2.1.106 (#4501) 2025-05-07 11:15:04 +02:00
Quentin Gliech ac5f4b96b5 Log the trace ID in the log line only if the span is sampled 2025-05-07 10:56:19 +02:00
Quentin Gliech 14b0de7d85 Sample traces based on the parent span if available 2025-05-07 10:53:33 +02:00
Quentin Gliech 6449123814 Suppress warning with Jaeger propagator when the header is unset 2025-05-07 10:32:47 +02:00
Doug 26d84c5a36 Fix database snapshot. 2025-05-07 09:17:28 +01:00
Doug e4a4261d56 Add missing parameter. 2025-05-06 17:54:57 +01:00
Doug 096ce6037d Add a configuration for forwarding the login hint to the upstream provider. 2025-05-06 17:50:33 +01:00
Doug 691c055cb4 Fix clippy error. 2025-05-06 15:34:37 +01:00
Doug c5e0f1642f Fix lint error. 2025-05-06 15:26:02 +01:00
Doug b58344faf1 Forward the login_hint upstream. 2025-05-06 15:18:11 +01:00
dependabot[bot] 7b56d4476d build(deps): bump psl from 2.1.105 to 2.1.106
Bumps [psl](https://github.com/addr-rs/psl) from 2.1.105 to 2.1.106.
- [Release notes](https://github.com/addr-rs/psl/releases)
- [Commits](https://github.com/addr-rs/psl/compare/v2.1.105...v2.1.106)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-05 13:49:39 +00:00
Quentin Gliech ee9b3e21b3 Merge branch 'main' into ref-merge/b2a4ceffd3d98f1dbb86754a0e5766a912641906 2025-05-05 15:38:31 +02:00
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 73cfc2c6fd syn2mas: allow setting the db name via the database field
This is supported (but deprecated) by psycopg2, which Synapse uses
2025-05-05 09:58:46 +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