Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Deprecate and then remove web_client_location #9078

Closed
aaronraimist opened this issue Jan 12, 2021 · 7 comments · Fixed by #11930
Closed

Deprecate and then remove web_client_location #9078

aaronraimist opened this issue Jan 12, 2021 · 7 comments · Fixed by #11930
Assignees
Labels
Security T-Task Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks. z-p3 (Deprecated Label)

Comments

@aaronraimist
Copy link
Contributor

Having Synapse host a web client is a security risk, as mentioned here: https://github.com/matrix-org/synapse#security-note and I doubt many people are still using it. I think you should deprecate the web_client_location option in homeserver.yaml.

It would also close at least one issue: #1250

@aaronraimist
Copy link
Contributor Author

For sure the option to point it at a path on disk and have it be served from /_matrix/client should be removed. It is possible that people are relying on the redirect to another URL option but I wouldn't think very many people would be using it.

I'm not sure if this would be considered an unspecced API #8334. As far as I know nothing in the spec mentions hosting a client at /_matrix/client.

@clokep clokep added maintenance z-p3 (Deprecated Label) labels Jan 12, 2021
@clokep
Copy link
Member

clokep commented Jan 12, 2021

Thanks for filing this! I kept meaning to file an issue about removing this... leaving the redirect seems safe, but would be simpler to remove it altogether. 🤷

@hex-m
Copy link

hex-m commented Oct 7, 2021

Is the redirect supposed to work? It can be useful to have a way to point users to the preferred web-client-instance that their homeserver-admin specified.

I would have assumed that https://matrix-client.matrix.org/_matrix/client/ redirects to https://app.element.io but it gives a 404.

@babolivier
Copy link
Contributor

No solution mentioned in this discussion has been implemented yet I'm afraid.

@DMRobertson DMRobertson added the T-Task Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks. label Oct 14, 2021
@ptman
Copy link
Contributor

ptman commented Jan 18, 2022

#11763

@clokep
Copy link
Member

clokep commented Jan 19, 2022

We had a discussion about this today in #synapse-dev with the conclusion:

  • we deprecate non-redirect web_client_location, and the webclient listener, with intention to remove support for it in a release or two.
  • in the meantime, we can also make / redirect directly to the web_client_location if it's absolute, rather than bouncing via /_matrix/client

@clokep
Copy link
Member

clokep commented Feb 7, 2022

I believe this is now fixed by #11895 -- the webclient listener no longer exists and web_client_location must be a HTTP(S) URL which gets turned into a redirect.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Security T-Task Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks. z-p3 (Deprecated Label)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants