Describe the bug
lk-jwt-service seems to follow configured domains in .well-known/matrix/server but fails to adjust the query string. The error I receive is: Failed to look up user info: Get "matrix://example.org/_matrix/federation/v1/openid/userinfo?access_token=<REDACTED>": tls: failed to verify certificate: x509: certificate is valid for proxy1.int.example.org, not example.org
To Reproduce
Steps to reproduce the behavior:
- Setup Nginx and Synapse as described in the context section
- Configure delegation as described in the context section
- Try to start call.
Expected behavior
The call is correctly established.
Desktop (please complete the following information):
- Ubuntu 24.04 LTS
- Element Desktop 1.12.0
Smartphone (please complete the following information):
- Device: Pixel 8a
- OS: GrapheneOS
- Element X 25.03.1
Additional context
I've got my homeserver running on chat.example.org, the servername is set to example.org. I've correctly set up example.org/.well-known/matrix/server to return chat.example.org:443 and federation with foreign homeservers works flawlessly.
The homeserver on chat.example.org is proxied by Nginx (internal name: proxy1.int.example.org), which is a different server than the one serving example.org (and thus example.org/.well-known/matrix/server). The proxy server's default server block uses a self-signed certificate for domain "proxy1.int.example.org", and it has no server block for example.org (thus all requests for example.org are catched by the default server proxy1.int.example.org)
Describe the bug
lk-jwt-service seems to follow configured domains in .well-known/matrix/server but fails to adjust the query string. The error I receive is:
Failed to look up user info: Get "matrix://example.org/_matrix/federation/v1/openid/userinfo?access_token=<REDACTED>": tls: failed to verify certificate: x509: certificate is valid for proxy1.int.example.org, not example.orgTo Reproduce
Steps to reproduce the behavior:
Expected behavior
The call is correctly established.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
I've got my homeserver running on chat.example.org, the servername is set to example.org. I've correctly set up example.org/.well-known/matrix/server to return chat.example.org:443 and federation with foreign homeservers works flawlessly.
The homeserver on chat.example.org is proxied by Nginx (internal name: proxy1.int.example.org), which is a different server than the one serving example.org (and thus example.org/.well-known/matrix/server). The proxy server's default server block uses a self-signed certificate for domain "proxy1.int.example.org", and it has no server block for
example.org(thus all requests for example.org are catched by the default serverproxy1.int.example.org)