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

Automation-friendly API Tokens for Synapse Administration #5323

Open
matrixbot opened this issue Dec 17, 2023 · 1 comment
Open

Automation-friendly API Tokens for Synapse Administration #5323

matrixbot opened this issue Dec 17, 2023 · 1 comment

Comments

@matrixbot
Copy link
Collaborator

matrixbot commented Dec 17, 2023

This issue has been migrated from #5323.


When you have some variety of automation of maintenance of your Synapse server, an explicit API token can have several benefits over an "admin" user and access token:

  • It does not create a device/etc which is not actually a Matrix client, and scripts/tools don't need to be able to log in to a Matrix server to get a valid key (or have it provided)
  • The creation of a user is not required (e.g. bootstrapping), the addition of a unique secret token in the configuration file can be used to perform these tasks
  • It is not tied to the lifespan of user logins (which may be purged)
  • It can have its own lifespan rules that may not make sense for user access tokens (e.g. use-until date for short-lived tokens, or extremely long-lived tokens)
@matrixbot matrixbot changed the title Dummy issue Automation-friendly API Tokens for Synapse Administration Dec 21, 2023
@matrixbot matrixbot reopened this Dec 21, 2023
@amandahla
Copy link
Contributor

Having a way of disabling authentication for some admin API calls would be helpful too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants