Grapevine is a Matrix homeserver, forked from Conduit 0.7.0
Find a file
Lambda ca6bc74074 Fix X-Matrix signature validation for incoming requests
For HTTP/1 requests, an inbound Request's URI contains only the path and
query parameters, since there's no way to synthesize the authority part.
This is exactly what we need for the X-Matrix "uri" field.

HTTP/2 requests however can contain the :authority pseudo-header, which
is used to populate the Request's URI. Using a URL that includes an
authority breaks the signature check.

Largely inspired by conduit MR !631
(https://gitlab.com/famedly/conduit/-/merge_requests/631).

Co-authored-by: strawberry <strawberry@puppygock.gay>
2024-09-19 16:25:23 +00:00
bin use all-features devshell for clippy/all in CI 2024-05-30 21:19:08 -07:00
book Fix X-Matrix signature validation for incoming requests 2024-09-19 16:25:23 +00:00
nix remove uses of aliases 2024-08-17 12:31:48 -07:00
src Fix X-Matrix signature validation for incoming requests 2024-09-19 16:25:23 +00:00
.envrc optionally use nom to build devshell dependencies 2024-05-30 21:19:09 -07:00
.gitignore set up mdbook 2024-06-16 20:23:18 -07:00
.gitlab-ci.yml disable IFD in CI 2024-08-13 12:12:57 -07:00
.lycheeignore set up mdbook 2024-06-16 20:23:18 -07:00
.markdownlintignore set up mdbook 2024-06-16 20:23:18 -07:00
book.toml set up mdbook 2024-06-16 20:23:18 -07:00
Cargo.lock cargo update ruma httparse 2024-09-01 09:42:45 +00:00
Cargo.toml Update MSRV to 1.81.0 2024-09-08 09:54:08 -07:00
clippy.toml enable doc_markdown lint 2024-05-14 16:34:10 -07:00
default.nix feat: support non-flake users 2024-02-01 19:19:56 -08:00
engage.toml set up mdbook 2024-06-16 20:23:18 -07:00
flake.lock Update MSRV to 1.81.0 2024-09-08 09:54:08 -07:00
flake.nix Update MSRV to 1.81.0 2024-09-08 09:54:08 -07:00
LICENSE.md convert license to markdown 2024-04-30 21:54:56 -07:00
README.md set up mdbook 2024-06-16 20:23:18 -07:00
rust-toolchain.toml Update MSRV to 1.81.0 2024-09-08 09:54:08 -07:00
rustfmt.toml enable error_on_line_overflow and fix errors 2024-05-16 19:11:40 -07:00

Grapevine

A Matrix homeserver.

Read the book

Click here to read the latest version.