Commit Graph
7776 Commits
Author SHA1 Message Date
Quentin Gliech 46b558dfd1 Ignore RUSTSEC-2026-0269 in cargo-deny as MAS isn't affected by it (#5955) 2026-09-02 16:58:26 +02:00
Quentin Gliech f1e46bd675 Ignore RUSTSEC-2026-0269 in cargo-deny as MAS isn't affected by it 2026-09-02 16:26:31 +02:00
Quentin Gliech 8bef2570c0 Pin the Rust toolchain for CI build jobs and let dependabot update it (#5938) 2026-09-02 14:44:02 +02:00
Olivier 'reivilibre e94477d1b3 docs: Merge error description for the same status code (#5911) 2026-08-27 14:57:32 +01:00
Olivier 'reivilibre ad5b50b509 Fix rendering of policy violations with an empty code field (#5921) 2026-08-27 14:44:52 +01:00
Olivier 'reivilibre e5885b5b9d Fix back_to_client template error when no state param given (#5922) 2026-08-27 14:43:40 +01:00
matrixbot 34879373fe Automatic merge back to main (#5937) 2026-08-26 12:17:38 +02:00
Quentin Gliech cb2a6f2df1 Let dependabot bump the Rust toolchain
The `rust-toolchain` ecosystem updates the `channel` in `rust-toolchain.toml`, which is now the only place the Rust version is written down. Weekly with the usual 14-day cooldown, so the `.1` point release has usually landed by the time the PR opens.
2026-08-26 12:01:36 +02:00
Quentin Gliech 507d498294 Install the Rust toolchain in the Dockerfile from rust-toolchain.toml
The builder stage starts from `buildpack-deps` (what the `rust:` image is built on anyway), installs a pinned `rustup-init` with `--default-toolchain none`, copies only `rust-toolchain.toml` and lets rustup install the toolchain it names. The Rust version is now written in exactly one place, shared with CI, so a toolchain bump needs no Dockerfile edit.

The toolchain layer is cached on the content of `rust-toolchain.toml` and the base image, and it is the same bytes we pulled as `rust:` image layers before, so build times are unchanged.

The registry cache mount also moves to `/usr/local/cargo/registry`: the `rust:` image already set `CARGO_HOME=/usr/local/cargo`, so the previous `/root/.cargo/registry` mount never held anything.
2026-08-26 12:01:35 +02:00
Quentin Gliech 66e73f9910 Pin the Rust toolchain with a rust-toolchain.toml
Until now only the clippy CI job and the Dockerfile named a Rust version (kept in sync by hand), while every other CI job, the release binaries and the docs build ran on whatever `stable` happened to be that day. Rust 1.98.0 landing on 2026-08-20 broke `build-binaries` overnight because of that (#5935).

`rust-toolchain.toml` pins 1.96.0 with the `minimal` profile plus clippy, and every `rustup toolchain install stable ...` in CI becomes a bare `rustup toolchain install`, which reads the file. Starting at 1.96.0 (the version clippy is already clean against) keeps this change free of lint churn; catching up to 1.98.0 is a follow-up.

rustfmt stays on nightly because `.rustfmt.toml` uses nightly-only options, so that job now invokes `cargo +nightly fmt` explicitly instead of setting a rustup directory override, which would silently take precedence over the toolchain file.

The file does not list the linux cross-compilation targets on purpose: that would make every developer and CI job download `rust-std` they never use. The two consumers that cross-compile add the targets themselves.
2026-08-26 12:01:34 +02:00
github-actions[bot] f000510f2f 1.24.0-rc.1 v1.24.0-rc.1 2026-08-26 09:03:53 +00:00
Quentin Gliech c48ee16e5a Translations updates for v1.24 (#5936) 2026-08-26 10:57:40 +02:00
github-actions[bot] 39220b7ae7 Translations updates 2026-08-26 08:30:00 +00:00
Quentin Gliech 802b770b97 Update taiki-e/install-action so it knows about newer cargo-zigbuild with fix for --fix-cortex-a53-843419 (#5935) 2026-08-26 09:52:22 +02:00
Eric Eastwood 0fed77c818 Update taiki-e/install-action so it knows about newer cargo-zigbuild 2026-08-25 16:59:29 -05:00
matrixbot cc0d7e1e8c Automatic merge back to main (#5934) 2026-08-25 21:51:45 +02:00
github-actions[bot] d0e299918f 1.24.0-rc.0 v1.24.0-rc.0 2026-08-25 19:35:11 +00:00
matrixbot e5b2416d1c Translations updates for main (#5933) 2026-08-25 21:28:27 +02:00
Eric Eastwood 04f92810ee Remove outdated translations
See https://github.com/element-hq/matrix-authentication-service/pull/5933#discussion_r3856142806

Removed as that is what https://github.com/element-hq/matrix-authentication-service/pull/5602
did for other languages.
2026-08-25 14:11:43 -05:00
github-actions[bot] 507893cdc4 Translations updates 2026-08-25 16:49:23 +00:00
Hugh Nimmo-Smith ef020a3ebc Merge branch 'main' into hughns/no-state-param 2026-08-19 10:39:08 +01:00
Hugh Nimmo-Smith 705147eafe Merge branch 'main' into hughns/violations-without-code 2026-08-19 10:38:55 +01:00
Quentin Gliech 0746408f46 Update h2 to address security vulnerability (RUSTSEC-2026-0258) (#5929) 2026-08-19 10:49:31 +02:00
Hugh Nimmo-Smith 6b2389f06f Merge branch 'main' into hughns/no-state-param 2026-08-19 09:04:51 +01:00
Hugh Nimmo-Smith 12e6851035 Merge branch 'main' into hughns/violations-without-code 2026-08-19 09:04:35 +01:00
Eric Eastwood a65b1e482c cargo update -p h2
(as the security advisory suggested)

Fix https://github.com/element-hq/matrix-authentication-service/issues/5928
2026-08-18 14:46:51 -05:00
Eric Eastwood 514c1d1d0a Automatic merge back to main (#5927) 2026-08-18 14:31:46 -05:00
github-actions[bot] 3a21f52264 1.23.0 v1.23.0 2026-08-18 16:32:08 +00:00
matrixbot 7473ef34ed Automatic merge back to main (#5925) 2026-08-17 22:00:58 +02:00
github-actions[bot] 46bb1044a5 1.23.0-rc.1 v1.23.0-rc.1 2026-08-17 19:45:06 +00:00
matrixbot d014f40090 Translations updates for v1.23 (#5924) 2026-08-17 21:40:25 +02:00
github-actions[bot] 9539e8a38e Translations updates 2026-08-17 19:24:12 +00:00
Quentin Gliech bebbb33a11 Ignore unmaintained dependencies warnings from cargo-deny on transitive dependencies (#5920) 2026-08-17 18:28:17 +02:00
Hugh Nimmo-Smith 0dc893a070 Fix back_to_client template error when no state param given 2026-08-14 17:36:17 +01:00
Hugh Nimmo-Smith af50a1db02 Format 2026-08-14 17:21:17 +01:00
Hugh Nimmo-Smith f94d364ddb Include empty tests 2026-08-14 17:20:03 +01:00
Hugh Nimmo-Smith cf96d79af4 Fix rendering of policy violations without code field 2026-08-14 17:14:05 +01:00
Quentin Gliech 119f3244d6 Remove all the remaining inline <script> tag (#5912) 2026-08-14 16:26:39 +02:00
Quentin Gliech 59de993b0d Ignore unmaintained dependencies warnings from cargo-deny on transitive dependencies 2026-08-14 16:19:08 +02:00
github-actions[bot] ac35bc7d9b 1.23.0-rc.0 v1.23.0-rc.0 2026-08-11 17:17:51 +00:00
Quentin Gliech ed45464b9f Load frontend translations with JS dynamic imports rather than fetching as JSON (#5915) 2026-08-10 15:01:36 +02:00
Quentin Gliech 8892cc7eb8 Remove the GraphQL playground (#5914) 2026-08-10 14:57:59 +02:00
Quentin Gliech cacc757cef Emit a modulepreload for dynamically imported chunks in include_asset
Now that the translations are lazily imported JS chunks rather than plain JSON
assets, `include_asset('locales/<lang>.json')` resolves to a manifest entry
flagged `isDynamicEntry`. Those must not be evaluated eagerly with a `<script>`
tag, so emit the same `modulepreload` hint we already use for imported chunks,
integrity included, and drop the now-unreachable top-level JSON preload.
2026-08-07 17:59:27 +02:00
Quentin Gliech 5d7a66557a Load frontend translations with dynamic imports instead of fetch
`import.meta.glob` now generates lazy loaders for the locale JSON modules
rather than hashed asset URLs, so `Backend.read` awaits an `import()` instead
of doing a `fetch`. This puts translation loading under the `script-src` CSP
directive instead of `connect-src`, and lets the browser preload them as
modules, which the `<link rel="preload" as="fetch">` hint never really did
because of the credentials-mode mismatch.

Dynamic imports are cached for the lifetime of the page, so locale
hot-reloading now triggers a full page reload in dev instead of asking i18next
to re-read its resources.
2026-08-07 17:59:26 +02:00
Quentin Gliech c3b5fa3b0c Remove the GraphQL playground
The interactive playground page and its route/config option are gone; the GraphQL API itself (POST /graphql) is unaffected. External GraphQL usage is deprecated anyway in favour of the REST admin API.
2026-08-07 12:26:42 +02:00
Quentin Gliech 28ffb064bf Move the Swagger UI OAuth2 redirect script to a frontend entrypoint 2026-08-07 12:24:36 +02:00
Quentin Gliech ded9de23db Move the form_post auto-submit script to a frontend entrypoint 2026-08-07 10:25:04 +02:00
Quentin Gliech 682b8d26d3 build(deps): bump the sentry group across 1 directory with 3 updates (#5894) 2026-08-07 10:23:54 +02:00
Quentin Gliech 28338969e1 build(deps-dev): bump storybook from 10.4.6 to 10.5.3 in the storybook group across 1 directory (#5897) 2026-08-07 10:23:10 +02:00
Quentin Gliech 2df5d84439 build(deps): bump EmbarkStudios/cargo-deny-action from 2.0.20 to 2.1.1 (#5891) 2026-08-07 10:19:05 +02:00