Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow different URL for Admin API for security reasons #343

Closed
erebion opened this issue Feb 21, 2023 · 3 comments
Closed

Allow different URL for Admin API for security reasons #343

erebion opened this issue Feb 21, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@erebion
Copy link

erebion commented Feb 21, 2023

The Synapse docs state:

For security reasons, we recommend that the Admin API (/_synapse/admin/...) should be hidden from public view using a reverse proxy. This means you should typically query the Admin API from a terminal on the machine which runs Synapse.

( https://matrix-org.github.io/synapse/latest/usage/administration/admin_api/ )

Following that recommendation, the Admin API should only be available locally or used with SSH port forwarding.

While this works with Synapse Admin and without SSO, it becomes more difficult with SSO.

If I enter http://localhost:8008, which is a port forwarded via SSH, I cannot login via SSO.

I just don't get offered SSO login as an option.

Here, my current workaround is:

  1. Logging in using the domain
  2. Changing the value of the cookie base_url from the domain to http://localhost:8008
  3. Reloading the page

I think it would be useful if there was a way to be able to enter a seperate URL for the Admin API.

Or maybe there is a better way?

@dklimpel
Copy link
Contributor

IMO you need this patch:

@dklimpel
Copy link
Contributor

dklimpel commented Feb 6, 2024

This issue is certainly already fixed.

@awesome-manuel awesome-manuel added the enhancement New feature or request label Feb 7, 2024
@awesome-manuel
Copy link
Member

@erebion please re-open if the issue still exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants