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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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->synapsehaven't yet tested it in combination with bridges, though!
Migration helper script and docs are provided :)
I ran into various issues:
abra app cpcouldn't copy the rendered homeserver.yaml configmap from synapse to mas, so I had to usecatand pipe the outputmasneeds a rsa private key which abra can't generate:SECRET_MAS_SIGNING_RSA_VERSIONmasimage is rootless, makes many things a lot harder again, plus you need to init the database manuallysyn2mas-migrator is stricter onhomeserver.yamlparsing than synapse, so I needed to wrap the boolean configs set via .envmasrunning andsynapsestopped. Scaling down replicas via docker worked like a charm:docker service scale <STACK_NAME>_app=0abra app stopcommand to stop single apps utilizing this would be nice for those cases?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
Notes to myself: