Failed to verify X-Matrix signatures between two Conduits during Sytest
Failed to verify X-Matrix signatures between two Conduits during Sytest
When running Sytest with two conduit servers, some federation endpoints get following verification errors:
Server 0:
Mar 21 14:51:14.800 WARN http_request{path=/_matrix/federation/v1/query/directory}: conduit::ruma_wrapper::axum: Failed to verify json request from localhost:8801: Verification error: Could not verify signature: signature error: Verification equation was not satisfied
{"destination": String("localhost:8800"), "method": String("GET"), "origin": String("localhost:8801"), "signatures": Object({"localhost:8801": Object({"ed25519:WmvuT26I": String("ahCVmosWq9f+d9OaKPfAYIS3vSo7f6UKLbQMCNc5x2zUrfTdDqVSgQpIZ2tAP9qkLQNlub7CCX3e/8UWpJt0Cg")})}), "uri": String("https://localhost:8800/_matrix/federation/v1/query/directory?room_alias=%23test-20220321_145027-1%3Alocalhost%3A8800")}
Mar 21 14:51:14.800 WARN http_request{path=/_matrix/federation/v1/query/directory}: conduit::error: 403 Forbidden: M_FORBIDDEN: Failed to verify X-Matrix signatures.
Server 1:
Mar 21 14:51:14.802 WARN http_request{path=/_matrix/client/v3/join/:room_id_or_alias}:send_federation_request:send_request{destination="localhost:8800"}: conduit::server_server: https://localhost:8800/_matrix/federation/v1/query/directory?room_alias=%23test-20220321_145027-1%3Alocalhost%3A8800 403 Forbidden: {"errcode":"M_FORBIDDEN","error":"M_FORBIDDEN: Failed to verify X-Matrix signatures."}
The same errors repeat several times for different endpoints as the individual tests touch them, and happen in both directions (server0->server1, server1->server0).
Complete server logs: homeserver0.log homeserver1.log
Edited by Ghost User