Draft: Add initial native Matrix Application Service bridge
Add initial native Matrix Application Service bridge
Part of https://gitlab.com/gitlab-org/gitter/webapp/-/issues/1684
Dev notes
To start out, I'm just copying stuff that I know was working in https://github.com/MadLittleMods/matrix-appservice-bridge-tutorial1
-
https://github.com/matrix-org/matrix-appservice-bridge
- https://matrix-org.github.io/matrix-appservice-bridge/2.3.0/classes/bridge.bridge.html
- https://github.com/matrix-org/matrix-appservice-node
Reference projects:
- https://github.com/matrix-org/matrix-appservice-slack
- https://github.com/matrix-org/matrix-appservice-irc
- https://github.com/matrix-org/matrix-bifrost/blob/develop/src/store/Store.ts
- https://github.com/Half-Shot/matrix-appservice-discord/blob/7fc714d36943e2591a828a8a6481db37119c3bdc/src/util.ts#L69
Todo
-
Setup https://matrix.gitter.im subdomain -> https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/11616 -
Update matrix-appservice-bridge
after https://github.com/matrix-org/matrix-appservice-bridge/pull/270 merges -
Add secrets to secrets repo -> https://gitlab.com/gl-gitter/secrets/-/issues/2 -> https://gitlab.com/gl-gitter/secrets/-/merge_requests/38 matrix__bridge__id
matrix__bridge__hsToken
matrix__bridge__asToken
-
Add gitter-registration.yaml
to Gitter homeservers with same secrets -
How does Synapse handle the reconnecting to AS? - If the AS isn't available when Synapse starts up, does it still try to connect later?
- Asked in https://gitlab.com/gitlab-org/gitter/webapp/-/merge_requests/2041#note_444562377
-
Setup automatic AS registration of local dev Docker Synapse instance -
Add ban on Matrix-side when virtualUser
gets banned -> https://gitlab.com/gitlab-org/gitter/webapp/-/issues/2629
Edited by Eric Eastwood