component-shared-login #2

Merged
skunky merged 3 commits from component-shared-login into main 2026-11-08 19:22:21 +00:00
Owner
No description provided.
Component-mode bridges previously required every Matrix user to have
their own login (or a per-portal !set-relay setup): portal event
handling failed with 'not logged in (no usable logins found)' for
anyone who had not logged in through the bot.

Now network.component in the bridge config provisions a single shared
component login (XEP-0114) at startup:

- jid/secret are required; server, home_server and bot_localpart are
  optional and mirror the interactive component login.
- The login is owned by the bridge bot user (its own DB user with its
  own permissions) and is exposed through the new bridgev2
  SharedLoginNetwork interface, so bridgev2 dispatches events from
  every Matrix user - messages, reactions, membership, typing, read
  receipts - to the component connection. Per-user identity in MUCs is
  preserved by the existing puppets.
- An existing component login with the same JID (e.g. created
  interactively) is adopted and its credentials are synced from the
  config when they change.
- XMPPClient.Connect is now idempotent, because the provisioned login
  is connected right after creation and again by the normal startup
  path.
- Typing and read receipts are now sent from the acting user's puppet
  (MatrixTyping/MatrixReadReceipt carry UserMXID in the patched
  mautrix-go fork) instead of always the login owner's.

Requires the mautrix-go fork commit 'Add SharedLoginNetwork support
for single-login networks' (already pushed to mautrix-go main).
The project is written with AI assistance and carries no copyright
claims: replace the AGPL headers with a single SPDX WTFPL line, add
the WTFPL LICENSE file and a License section in the README.
Add AGENTS.md and Forgejo CI workflow
Some checks failed
CI / test (pull_request) Has been cancelled
7c97d2b4aa
AGENTS.md gives AI coding agents (and humans) a guided tour: the
mautrix-go fork requirement, build/test commands, connector file map,
event flow, the shared component login mechanism, conventions and
gotchas.

CI builds, vets and tests both repos on Forgejo Actions; the workflow
checks out mautrix-go as a sibling directory because of the replace
directive.
skunky merged commit e82d4c8c8d into main 2026-11-08 19:22:21 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
xmpp-bridge/mautrix-xmpp!2
No description provided.