add matrix authentication service incl migration #57 #58

Merged
simon merged 9 commits from add-matrix-authentication-service into main 2026-05-11 11:25:53 +00:00
Owner

Hey, I finished the matrix authentication service integration.

I tested it on our dev instance, including the migration from providing users via authentik oidc to the setup of authentik -> mas -> synapse
haven't yet tested it in combination with bridges, though!

Migration helper script and docs are provided :)

I ran into various issues:

  • abra app cp couldn't copy the rendered homeserver.yaml configmap from synapse to mas, so I had to use cat and pipe the output
  • secret generation: mas needs a rsa private key which abra can't generate: SECRET_MAS_SIGNING_RSA_VERSION
  • mas image is rootless, makes many things a lot harder again, plus you need to init the database manually
  • syn2mas-migrator is stricter on homeserver.yaml parsing than synapse, so I needed to wrap the boolean configs set via .env
  • Migration needs mas running and synapse stopped. Scaling down replicas via docker worked like a charm:
    • Downtime — stop Synapse: run on the host with Docker/Swarm access (not inside a container), e.g.: docker service scale <STACK_NAME>_app=0
    • maybe an abra app stop command to stop single apps utilizing this would be nice for those cases?
    • that way the actual migration step could be automated more, too

the diff for the homeserver.yaml looks very big here, in my IDE it showed only the affected lines where I wrapped the booleans

QR code login is a whole different topic. more on that in the issue.

I did work with Cursor IDE on this, but doublechecked basically everything

Hey, I finished the matrix authentication service integration. I tested it on our dev instance, including the migration from providing users via authentik oidc to the setup of `authentik` -> `mas` -> `synapse` haven't yet tested it in combination with bridges, though! Migration helper script and docs are provided :) I ran into various issues: - `abra app cp` couldn't copy the rendered homeserver.yaml configmap from synapse to mas, so I had to use `cat` and pipe the output - secret generation: `mas` needs a rsa private key which abra can't generate: `SECRET_MAS_SIGNING_RSA_VERSION` - `mas` image is rootless, makes many things a lot harder again, plus you need to init the database manually - `syn2mas`-migrator is stricter on `homeserver.yaml` parsing than synapse, so I needed to wrap the boolean configs set via .env - Migration needs `mas` running and `synapse` stopped. Scaling down replicas via docker worked like a charm: - **Downtime — stop Synapse:** run on the **host** with Docker/Swarm access (not inside a container), e.g.: `docker service scale <STACK_NAME>_app=0` - maybe an `abra app stop` command to stop single apps utilizing this would be nice for those cases? - that way the actual migration step could be automated more, too the diff for the homeserver.yaml looks very big here, in my IDE it showed only the affected lines where I wrapped the booleans QR code login is a whole different topic. more on that in the issue. I did work with Cursor IDE on this, but doublechecked basically everything
simon added 8 commits 2026-04-09 09:56:44 +00:00
Author
Owner

Notes to myself:

  • add release notes
  • ...
Notes to myself: - add release notes - ...
simon added 1 commit 2026-05-11 11:25:33 +00:00
chore: publish 7.1.0+v1.149.1 release
All checks were successful
continuous-integration/drone/tag Build is passing
3f488167bc
simon merged commit b4c3db38c3 into main 2026-05-11 11:25:53 +00:00
Sign in to join this conversation.
No description provided.