Skip to content

Mautrix signal#35

Merged
mgoerens merged 15 commits into
masterfrom
mautrix-signal
Jul 8, 2022
Merged

Mautrix signal#35
mgoerens merged 15 commits into
masterfrom
mautrix-signal

Conversation

@mgoerens

Copy link
Copy Markdown
Collaborator

This MR adds a new feature: the ability to deploy the mautrix-signal bridge alongside Synapse.

"mautrix-signal" is a Matrix bridge for Signal. It is optional to run this bridge. Its options lives next to the Heisenbridge (IRC bridge) under Synapse.Spec.Bridges

mgoerens added 11 commits June 23, 2022 16:08
Also remove useless "By()" calls
Say my name...
s/Heisenberg/Heisenbridge/
You're goddamn right !
Currently this section only tracks the bridge's IP address. This value
is needed in the mautrix-signal config file.
It is composed of:
* mautrix-signal: Deployement, Service, 1 PVC to host the bridge's data,
1 PVC to host the SQLite database file, and a ConfigMap to provide the
input config.yaml
* signald: Deployment and PVC

As for the configuration of Synapse (homeserver.yaml), and Heisenbridge
(heisenbridge.yaml), the user can provide its own config.yaml for
mautrix-signal. In that case, a copy of the user-provided ConfigMap is
created. In the copied object, some configuration options are
overwritten. The user-provided ConfigMap is not modified.

Alternatively, if the user doesn't provide a ConfigMap, a default
config.yaml is used for configuring the mautrix-signal bridge.

The controller also takes care of updating the configuration of Synapse
so that it is aware of the newly deployed bridge (added as an appservice
in homeserver.yaml)
Ensure the log_config and signing_key_path are configured according to
the Homeserver ServerName value provided by the user.
The bridge requires the anyuid scc as it must run with UID & GID 1337.
@mgoerens
mgoerens requested a review from acmenezes June 23, 2022 16:25

@acmenezes acmenezes left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put an lgmt by accident here. But looking still on the code will put more comments.

@opdevbot opdevbot added the lgtm Indicates that a PR is ready to be merged. label Jun 23, 2022

@acmenezes acmenezes left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally speaking, pretty solid code. Nothing really big to add as a comment except for the permissions that are too wide both in RBAC and Linux users in containers. If you don't want to touch it up. Go for it and merge. Looking pretty good.

Comment thread apis/synapse/v1alpha1/synapse_types.go
Comment thread controllers/synapse/synapse_controller_test.go
Comment thread controllers/synapse/synapse_controller_test.go
Comment thread controllers/synapse/synapse_deployment.go Outdated
Comment thread controllers/synapse/synapse_mautrixsignal_deployment.go Outdated
Comment thread controllers/synapse/synapse_mautrixsignal_deployment.go
Comment thread controllers/synapse/synapse_mautrixsignal_deployment.go
Comment thread controllers/synapse/synapse_mautrixsignal_service.go Outdated
Comment thread controllers/synapse/synapse_controller_test.go
Comment thread controllers/synapse/synapse_mautrixsignal_serviceaccount.go
@mgoerens mgoerens removed the lgtm Indicates that a PR is ready to be merged. label Jun 24, 2022

@acmenezes acmenezes left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@opdevbot opdevbot added the lgtm Indicates that a PR is ready to be merged. label Jul 7, 2022
@opdevbot

opdevbot commented Jul 7, 2022

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: acmenezes, mgoerens
To complete the pull request process, please assign after the PR has been reviewed.
You can assign the PR to them by writing /assign in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mgoerens
mgoerens merged commit 92be2dc into master Jul 8, 2022
@mgoerens
mgoerens deleted the mautrix-signal branch July 8, 2022 06:54
@mgoerens
mgoerens restored the mautrix-signal branch November 8, 2022 18:23
@mgoerens
mgoerens deleted the mautrix-signal branch November 8, 2022 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants