mautrix-bridge

mautrix-bridge

mautrix-bridge

Version: 0.0.14 Type: application

A Matrix puppeting bridge mautrix.

Maintainers

NameEmailUrl
WrenIXhttps://wrenix.eu

For use of the bridge:

  • signal, use the ./bridge-values/signal/values.yaml
  • slack, use the ./bridge-values/slack/values.yaml

Usage

Helm must be installed and setup to your kubernetes cluster to use the charts. Refer to Helm’s documentation to get started. Once Helm has been set up correctly, fetch the charts as follows:

helm pull oci://codeberg.org/wrenix/helm-charts/mautrix-bridge

You can install a chart release using the following command:

helm install mautrix-bridge-release oci://codeberg.org/wrenix/helm-charts/mautrix-bridge --values values.yaml

To uninstall a chart release use helm’s delete command:

helm uninstall mautrix-bridge-release

Values

KeyTypeDefaultDescription
affinityobject{}
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
config.appservice.addressstring"http://localhost:29328"The address that the homeserver can use to connect to this appservice.
config.appservice.as_tokenstring""
config.appservice.async_transactionsboolfalseShould incoming events be handled asynchronously? This may be necessary for large public instances with lots of messages going through. However, messages will not be guaranteed to be bridged in the same order they were sent in.
config.appservice.bot.avatarstring"mxc://maunium.net/wPJgTQbZOtpBFmDNkiNEMDUp"
config.appservice.bot.displaynamestring"Signal bridge bot"Display name and avatar for bot. Set to “remove” to remove display name/avatar, leave empty to leave display name/avatar as-is.
config.appservice.bot.usernamestring"signalbot"Username of the appservice bot.
config.appservice.ephemeral_eventsbooltrueWhether or not to receive ephemeral events via appservice transactions. Requires MSC2409 support (i.e. Synapse 1.22+).
config.appservice.hostnamestring"0.0.0.0"The hostname and port where this appservice should listen.
config.appservice.hs_tokenstring""
config.appservice.idstring"signal"The unique ID of this appservice.
config.appservice.portint29328
config.appservice.public_addressstringnil
config.appservice.username_templatestring"signal_{{.}}"Localpart template of MXIDs for Signal users. {{.}} is replaced with the internal ID of the Signal user.
config.backfill.enabledboolfalseWhether to do backfilling at all.
config.backfill.max_catchup_messagesint500Maximum number of missed messages to backfill after bridge restarts.
config.backfill.max_initial_messagesint50Maximum number of messages to backfill in empty rooms.
config.backfill.queue.batch_delayint20Delay between batches in seconds.
config.backfill.queue.batch_sizeint100Number of messages to backfill in one batch.
config.backfill.queue.enabledboolfalseShould the backfill queue be enabled?
config.backfill.queue.max_batchesint-1Maximum number of batches to backfill per portal. If set to -1, all available messages will be backfilled.
config.backfill.queue.max_batches_overrideobject{}Optional network-specific overrides for max batches. Interpretation of this field depends on the network connector.
config.backfill.threads.max_initial_messagesint50Maximum number of messages to backfill in a new thread.
config.backfill.unread_hours_thresholdint720If a backfilled chat is older than this number of hours, mark it as read even if it’s unread on the remote network.
config.bridge.bridge_matrix_leaveboolfalseShould leaving Matrix rooms be bridged as leaving groups on the remote network?
config.bridge.cleanup_on_logout.bad_credentials.privatestring"nothing"
config.bridge.cleanup_on_logout.bad_credentials.relayedstring"nothing"
config.bridge.cleanup_on_logout.bad_credentials.shared_has_usersstring"nothing"
config.bridge.cleanup_on_logout.bad_credentials.shared_no_usersstring"nothing"
config.bridge.cleanup_on_logout.enabledboolfalseShould cleanup on logout be enabled at all?
config.bridge.cleanup_on_logout.manual.privatestring"nothing"Action for private portals which will never be shared with other Matrix users.
config.bridge.cleanup_on_logout.manual.relayedstring"nothing"Action for portals with a relay user configured.
config.bridge.cleanup_on_logout.manual.shared_has_usersstring"nothing"Action for portals which have other logged-in Matrix users.
config.bridge.cleanup_on_logout.manual.shared_no_usersstring"nothing"Action for portals which may be shared, but don’t currently have any other Matrix users.
config.bridge.command_prefixstring"!bridge"The prefix for commands. Only required in non-management rooms.
config.bridge.mute_only_on_createbooltrueShould room mute status only be synced when creating the portal? Like tags, mutes can’t currently be synced back to the remote network.
config.bridge.permissionsobject{"*":"relay","@admin:example.com":"admin","example.com":"user"}Permissions for using the bridge. Permitted values: relay - Talk through the relaybot (if enabled), no access otherwise commands - Access to use commands in the bridge, but not login. user - Access to use the bridge with puppeting. admin - Full access, user level with some additional administration tools. Permitted keys: * - All Matrix users domain - All users on that homeserver mxid - Specific user
config.bridge.personal_filtering_spacesbooltrueShould the bridge create a space for each login containing the rooms that account is in?
config.bridge.private_chat_portal_metaboolfalseWhether the bridge should set names and avatars explicitly for DM portals. This is only necessary when using clients that don’t support MSC4171.
config.bridge.relay.admin_onlybooltrueShould only admins be allowed to set themselves as relay users?
config.bridge.relay.default_relayslist[]List of user login IDs which anyone can set as a relay, as long as the relay user is in the room.
config.bridge.relay.displayname_formatstring"{{ .DisambiguatedName }}"For networks that support per-message displaynames (i.e. Slack and Discord), the template for those names. This has all the Sender variables available under message_formats (but without the .Sender prefix). Note that you need to manually remove the displayname from message_formats above.
config.bridge.relay.enabledboolfalseWhether relay mode should be allowed. If allowed, !wa set-relay can be used to turn any authenticated user into a relaybot for that chat.
config.bridge.relay.message_formatsobject{"m.audio":"<b>{{ .Sender.DisambiguatedName }}</b> sent an audio file{{ if .Caption }}: {{ .Caption }}{{ end }}","m.emote":"* <b>{{ .Sender.DisambiguatedName }}</b> {{ .Message }}","m.file":"<b>{{ .Sender.DisambiguatedName }}</b> sent a file{{ if .Caption }}: {{ .Caption }}{{ end }}","m.image":"<b>{{ .Sender.DisambiguatedName }}</b> sent an image{{ if .Caption }}: {{ .Caption }}{{ end }}","m.location":"<b>{{ .Sender.DisambiguatedName }}</b> sent a location{{ if .Caption }}: {{ .Caption }}{{ end }}","m.notice":"<b>{{ .Sender.DisambiguatedName }}</b>: {{ .Message }}","m.text":"<b>{{ .Sender.DisambiguatedName }}</b>: {{ .Message }}","m.video":"<b>{{ .Sender.DisambiguatedName }}</b> sent a video{{ if .Caption }}: {{ .Caption }}{{ end }}"}The formats to use when sending messages via the relaybot. Available variables: .Sender.UserID - The Matrix user ID of the sender. .Sender.Displayname - The display name of the sender (if set). .Sender.RequiresDisambiguation - Whether the sender’s name may be confused with the name of another user in the room. .Sender.DisambiguatedName - The disambiguated name of the sender. This will be the displayname if set, plus the user ID in parentheses if the displayname is not unique. If the displayname is not set, this is just the user ID. .Message - The formatted_body field of the message. .Caption - The formatted_body field of the message, if it’s a caption. Otherwise an empty string. .FileName - The name of the file being sent.
config.bridge.tag_only_on_createbooltrueShould room tags only be synced when creating the portal? Tags mean things like favorite/pin and archive/low priority. Tags currently can’t be synced back to the remote network, so a continuous sync means tagging from Matrix will be undone.
config.database.max_conn_idle_timestringnilMaximum connection idle time and lifetime before they’re closed. Disabled if null. Parsed with https://pkg.go.dev/time#ParseDuration
config.database.max_conn_lifetimestringnil
config.database.max_idle_connsint2
config.database.max_open_connsint20Maximum number of connections. Mostly relevant for Postgres.
config.database.typestring"postgres"The database type. “sqlite3-fk-wal” and “postgres” are supported.
config.database.uristring"postgres://user:password@host/database?sslmode=disable"The database URI. SQLite: A raw file path is supported, but file:<path>?_txlock=immediate is recommended. https://github.com/mattn/go-sqlite3#connection-string Postgres: Connection string. For example, postgres://user:password@host/database?sslmode=disable To connect via Unix socket, use something like postgres:///dbname?host=/var/run/postgresql
config.direct_media.allow_proxybooltrueIf the remote network supports media downloads over HTTP, then the bridge will use MSC3860/MSC3916 media download redirects if the requester supports it. Optionally, you can force redirects and not allow proxying at all by setting this to false. This option does nothing if the remote network does not support media downloads over HTTP.
config.direct_media.enabledboolfalseShould custom mxc:// URIs be used instead of reuploading media?
config.direct_media.media_id_prefixstringnilOptionally specify a custom prefix for the media ID part of the MXC URI.
config.direct_media.server_keystring""Matrix server signing key to make the federation tester pass, same format as synapse’s .signing.key file. This key is also used to sign the mxc:// URIs to ensure only the bridge can generate them.
config.direct_media.server_namestring"discord-media.example.com"The server name to use for the custom mxc:// URIs. This server name will effectively be a real Matrix server, it just won’t implement anything other than media. You must either set up .well-known delegation from this domain to the bridge, or proxy the domain directly to the bridge.
config.direct_media.well_known_responsestringnilOptionally a custom .well-known response. This defaults to server_name:443
config.double_puppet.allow_discoveryboolfalseWhether to allow client API URL discovery for other servers. When using this option, users on other servers can use double puppeting even if their server URLs aren’t explicitly added to the servers map above.
config.double_puppet.secretsobject{"example.com":"as_token:foobar"}Shared secrets for automatic double puppeting. See https://docs.mau.fi/bridges/general/double-puppeting.html for instructions.
config.double_puppet.serversobject{"example.com":"https://example.com"}Servers to always allow double puppeting from. This is only for other servers and should NOT contain the server the bridge is on.
config.encryption.allowboolfalseAllow encryption, work in group chat rooms with e2ee enabled
config.encryption.allow_key_sharingboolfalseEnable key sharing? If enabled, key requests for rooms where users are in will be fulfilled. You must use a client that supports requesting keys from other users to use this feature.
config.encryption.appserviceboolfalseWhether to use MSC2409/MSC3202 instead of /sync long polling for receiving encryption-related data.
config.encryption.defaultboolfalseDefault to encryption, force-enable encryption in all portals the bridge creates This will cause the bridge bot to be in private chats for the encryption to work properly.
config.encryption.delete_keysobject{"delete_fully_used_on_decrypt":false,"delete_on_device_delete":false,"delete_outbound_on_ack":false,"delete_outdated_inbound":false,"delete_prev_on_new_session":false,"dont_store_outbound":false,"periodically_delete_expired":false,"ratchet_on_decrypt":false}Options for deleting megolm sessions from the bridge.
config.encryption.delete_keys.delete_fully_used_on_decryptboolfalseDelete fully used keys (index >= max_messages) after decrypting messages.
config.encryption.delete_keys.delete_on_device_deleteboolfalseDelete megolm sessions received from a device when the device is deleted.
config.encryption.delete_keys.delete_outbound_on_ackboolfalseBeeper-specific: delete outbound sessions when hungryserv confirms that the user has uploaded the key to key backup.
config.encryption.delete_keys.delete_outdated_inboundboolfalseDelete inbound megolm sessions that don’t have the received_at field used for automatic ratcheting and expired session deletion. This is meant as a migration to delete old keys prior to the bridge update.
config.encryption.delete_keys.delete_prev_on_new_sessionboolfalseDelete previous megolm sessions from same device when receiving a new one.
config.encryption.delete_keys.dont_store_outboundboolfalseDon’t store outbound sessions in the inbound table.
config.encryption.delete_keys.periodically_delete_expiredboolfalsePeriodically delete megolm sessions when 2x max_age has passed since receiving the session.
config.encryption.delete_keys.ratchet_on_decryptboolfalseRatchet megolm sessions forward after decrypting messages.
config.encryption.pickle_keystringnil
config.encryption.plaintext_mentionsstringnil
config.encryption.requireboolfalseRequire encryption, drop any unencrypted messages.
config.encryption.rotation.disable_device_change_key_rotationboolfalseDisable rotating keys when a user’s devices change? You should not enable this option unless you understand all the implications.
config.encryption.rotation.enable_customboolfalseEnable custom Megolm room key rotation settings. Note that these settings will only apply to rooms created after this option is set.
config.encryption.rotation.messagesint100The maximum number of messages that should be sent with a given a session before changing it. The Matrix spec recommends 100 as the default.
config.encryption.rotation.millisecondsint604800000The maximum number of milliseconds a session should be used before changing it. The Matrix spec recommends 604800000 (a week) as the default.
config.encryption.verification_levels.receivestring"unverified"Minimum level for which the bridge should send keys to when bridging messages from Signal to Matrix.
config.encryption.verification_levels.sendstring"unverified"Minimum level that the bridge should accept for incoming Matrix messages.
config.encryption.verification_levels.sharestring"cross-signed-tofu"Minimum level that the bridge should require for accepting key requests.
config.homeserver.addressstring"https://matrix.example.com"The address that this appservice can use to connect to the homeserver.
config.homeserver.async_mediaboolfalseDoes the homeserver support https://github.com/matrix-org/matrix-spec-proposals/pull/2246?
config.homeserver.domainstring"example.com"The domain of the homeserver (also known as server_name, used for MXIDs, etc).
config.homeserver.message_send_checkpoint_endpointstringnilEndpoint for reporting per-message status.
config.homeserver.ping_interval_secondsint0How often should the websocket be pinged? Pinging will be disabled if this is zero.
config.homeserver.public_addressstringnil
config.homeserver.softwarestring"standard"What software is the homeserver running? Standard Matrix homeservers like Synapse, Dendrite and Conduit should just use “standard” here.
config.homeserver.status_endpointstringnilThe URL to push real-time bridge status to. If set, the bridge will make POST requests to this URL whenever a user’s Signal connection state changes. The bridge will use the appservice as_token to authorize requests.
config.homeserver.websocketboolfalseShould the bridge use a websocket for connecting to the homeserver? The server side is currently not documented anywhere and is only implemented by mautrix-wsproxy, mautrix-asmux (deprecated), and hungryserv (proprietary).
config.homeserver.websocket_proxystring""
config.logging.min_levelstring"warn"
config.logging.writers[0].formatstring"json"
config.logging.writers[0].typestring"stdout"
config.management_room_text.additional_helpstring""Optional extra text sent when joining a management room.
config.management_room_text.welcomestring"Hello, I'm a Signal bridge bot."Sent when joining a room.
config.management_room_text.welcome_connectedstring"Use help for help."Sent when joining a management room and the user is already logged in.
config.management_room_text.welcome_unconnectedstring"Use helpfor help orlogin to log in."Sent when joining a management room and the user is not logged in.
config.matrix.delivery_receiptsboolfalseShould the bridge send a read receipt from the bridge bot when a message has been sent to Signal?
config.matrix.federate_roomsbooltrueWhether or not created rooms should have federation enabled. If false, created portal rooms will never be federated.
config.matrix.message_error_noticesbooltrueWhether the bridge should send error notices via m.notice events when a message fails to bridge.
config.matrix.message_status_eventsboolfalseWhether the bridge should send the message status as a custom com.beeper.message_send_status event.
config.matrix.sync_direct_chat_listboolfalseShould the bridge update the m.direct account data event when double puppeting is enabled. Note that updating the m.direct event is not atomic (except with mautrix-asmux) and is therefore prone to race conditions.
config.provisioning.debug_endpointsboolfalseEnable debug API at /debug with provisioning authentication.
config.provisioning.prefixstring"/_matrix/provision"Prefix for the provisioning API paths.
config.provisioning.shared_secretstring"generate"Shared secret for authentication. If set to “generate”, a random secret will be generated, or if set to “disable”, the provisioning API will be disabled.
config.public_media.enabledboolfalseShould public media be enabled at all? The public_address field under the appservice section MUST be set when enabling public media.
config.public_media.expiryint0Number of seconds that public media URLs are valid for. If set to 0, URLs will never expire.
config.public_media.hash_lengthint32Length of hash to use for public media URLs. Must be between 0 and 32.
config.public_media.signing_keystring"generate"A key for signing public media URLs. If set to “generate”, a random key will be generated.
config.signal.device_namestring"mautrix-signal"Default device name that shows up in the Signal app.
config.signal.displayname_templatestring"{{ printf \"%s (%s) %s\" (or .ProfileName .ContactName \"Unknown user\") (or .PhoneNumber \"Unknown number\" (or .AboutEmoji \"\")}}"Displayname template for Signal users. This is also used as the room name in DMs if private_chat_portal_meta is enabled. {{.ProfileName}} - The Signal profile name set by the user. {{.ContactName}} - The name for the user from your phone’s contact list. This is not safe on multi-user instances. {{.PhoneNumber}} - The phone number of the user. {{.UUID}} - The UUID of the Signal user. {{.AboutEmoji}} - The emoji set by the user in their profile.
config.signal.location_formatstring"https://www.openstreetmap.org/?mlat=%[1]s&mlon=%[2]s"
config.signal.note_to_self_avatarstring"mxc://maunium.net/REBIVrqjZwmaWpssCZpBlmlL"
config.signal.number_in_topicbooltrueShould the Signal user’s phone number be included in the room topic in private chat portal rooms?
config.signal.sync_contacts_on_startupbooltrueShould the bridge request the user’s contact list from the phone on startup?
config.signal.use_contact_avatarsboolfalseShould avatars from the user’s contact list be used? This is not safe on multi-user instances.
config.signal.use_outdated_profilesboolfalseShould the bridge sync ghost user info even if profile fetching fails? This is not safe on multi-user instances.
fullnameOverridestring""
global.image.pullPolicystringnilif set it will overwrite all pullPolicy
global.image.registrystringnilif set it will overwrite all registry entries
image.pullPolicystring"IfNotPresent"
image.registrystring"dock.mau.dev"
image.repositorystring""
image.tagstring""
imagePullSecretslist[]
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalse
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]
livenessProbe.httpGet.pathstring"/_matrix/mau/live"
livenessProbe.httpGet.portstring"http"
nameOverridestring""
nodeSelectorobject{}
persistence.accessModestring"ReadWriteOnce"accessMode
persistence.annotationsobject{}
persistence.enabledbooltrueEnable persistence using Persistent Volume Claims ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
persistence.existingClaimstringnilA manually managed Persistent Volume and Claim Requires persistence.enabled: true If defined, PVC must be created manually before volume will be bound
persistence.hostPathstringnilDo not create an PVC, direct use hostPath in Pod
persistence.sizestring"10Gi"size
persistence.storageClassstringnilPersistent Volume Storage Class If defined, storageClassName: If set to “-”, storageClassName: “”, which disables dynamic provisioning If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner. (gp2 on AWS, standard on GKE, AWS & OpenStack)
podAnnotationsobject{}
podLabelsobject{}
podSecurityContextobject{}
readinessProbe.httpGet.pathstring"/_matrix/mau/ready"
readinessProbe.httpGet.portstring"http"
registration.“de.sorunome.msc2409.push_ephemeral”booltrue
registration.namespaces.users[0].exclusivebooltrue
registration.namespaces.users[0].regexstring"^@signalbot:example.org$"
registration.namespaces.users[1].exclusivebooltrue
registration.namespaces.users[1].regexstring"^@signal_.*:example.org$"
registration.push_ephemeralbooltrue
registration.rate_limitedboolfalse
replicaCountint1
resourcesobject{}
securityContextobject{}
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.automountboolfalse
serviceAccount.createboolfalse
serviceAccount.namestring""
tolerationslist[]
volumeMountslist[]
volumeslist[]

Autogenerated from chart metadata using helm-docs