The first version of the federation allows members of a workspace to participate in a specific channel hosted by another installation. The source server authenticates the account and the device; the destination server hosts the conversation and its files. The connection requires explicit trust between the facilities and channel approval in the destination. There's no transitive trust.
The functionality starts off. Do not enable an installation just to consult the documentation. There is no mandatory central discovery server, shared account between banks or password sent to the partner.
Access model#
Each connection links a partner installation, a source workspace, a destination workspace and a destination channel. The destination administrator chooses the channel he shares. The external session does not allow you to consult other conversations, the full directory of workspace or administration. An external account does not automatically receive the administrative role of its source account.
The external participant receives a federated identifier associated with the original installation, maintaining the UUID of the account and the public identities of the devices. Collisions with local identities or other partners are refused; email is not used to merge accounts automatically. The local representation uses a reserved technical address, without enabling password login in this external account.
In this version, concessions are directed. For a channel hosted in legacy mode saas, the on-premises need to achieve the SaaS and its users need to reach the backend and LiveKit of the SaaS. . There is no need for SaaS initiate connections to the source's private network in this stream. The reverse direction requires that the installation that will host the conversation is reachable by the servers and customers involved. There's no relay, VPN or automatic tunnel.
Preparing facilities#
- Update backend and customers on both sides.
- Configure valid HTTPS, synchronized clocks and LiveKit addresses accessible to attendees.
- Open Administration → Federation between facilities as installation administrator.
- Configure name and origin HTTPS without path, and enable the federation with login password confirmation.
- Copy the public JSON displayed on the portal or returned by
GET /api/federation/info. - On each side, use Authorize partner to register the public JSON of the other installation and the fingerprint SHA-256 checked by an independent channel.
The Ed25519 signature key of the installation is generated in the explicit configuration and stored encrypted in the bank. Uses the operative encryption service also used for webhooks credentials, with separate AAD domain. In legacy mode saas, this requires WEBHOOK_ENCRYPTION_KEY; in selfhost, the persistent operating key already described in the deployment is used. These keys are not user E2EE keys and do not decipher conversations.
The origin and public key of a partner cannot be replaced silently. The source/installation key migration is not automated. Disabling the partner blocks new operations and invalidates local external sessions; it does not erase data or keys already received by participants.
Authorize channel#
- At destination, create a public or private channel After enabling the federation. The administrator you approve needs to be part of it.
- Share the destination workspace ID with the source administrator.
- At source, open the workspace federation and request access to the partner and informed workspace ID.
- On the destination portal, locate the request, inform the local channel ID to share and confirm the authorization. The page lists IDs of the compatible channels on which you participate.
- At source, use Consult approval to update the state.
- Origin members find the channel in More options → Channels from other facilities and confirm the warning before entering.
The authorisation shall apply to the members that the origin organisation maintains in that workspace. They are added to the authorized channel in the first access, respecting the capacity of the workspace destination. They don't gain access to other public channels. Removing a person through the destination portal records a lock to prevent a new session from re-entering it automatically; the administrator can release it in External participants blocked, with password confirmation. The release does not ignore the approved link or reactivate a disabled account.
Encryption and old conversations#
New conversations created while the federation is enabled receive a cryptographic context that includes the identity of the responsible installation and the channel's UUID. Key packages use this context in the signature, HKDF and AAD. Thus, a package from another installation cannot be reused as if it belonged to the federated conversation.
The private identity of the device remains in the origin and memory of the client. The client reuses the authorized identity, but separates the channel secrets and the pins per server responsible. The session broker swaps only public metadata of the devices and signature evidence. The distribution of the chat keys continues to be encrypted between devices.
Previous channels, without this context, are not opened by federated identities. There is no silent migration, refragment or automatic import of the old history. Direct conversations do not accept group concessions in this first version. Old customers need to be updated to use new conversations with qualified context.
The federated channels still use the previous protocol: TOFU in first contact, static secrets per channel, absence of forward secretion and dependence on directory integrity and participant authorizations. The MLS activation of local private conversations does not include federated channels. The federation does not transform its protocol into Signal/MLS or replace independent cryptographic review.
Sessions and revocation#
The device signs a single-use challenge, linked to the connection, installation and workspace of destination. The source server only issues the assertion to an authorised device of an active member. The destination checks the signature of the partner installation, the hearing, the deadline, the anti-replay identifier and the approval chain of the devices.
The destination issues an approved 60 seconds session, restricted to the channel and workspace. The app renews this session by source, without asking for the password again. Parallel sessions of devices/bottoms are not mutually invalidated. WebSockets, notifications, readings and directories respect the same channel scope.
Close the connection at destination or disable the federation/partner at destination revokes access immediately. Repeal at source tries to notify the destination; if it is unavailable, an external session already issued may remain valid for up to 60 seconds. Removal of the limb or revocation of the device at its origin prevents renewal. Content and previously received keys cannot be deleted remotely.
External history recovery#
Encrypted backup is managed in the source installation. By restoring it, the app also tries to access active federated connections: it temporarily uses archived identity to open its remote packages and deliver keys to the new authorized device. The recovery password and private identity are not sent to the partner.
This depends on the existence of archived identity packages and the availability and authorization of the facilities involved. If one of them is unavailable, the application reports that local recovery has been completed and which external channels need another attempt. Do not replace backup before completing this recovery. The federation does not preserve an independent copy of data deleted by the server responsible.
Corporate custody#
The custody required by the server hosting the channel continues to be presented to the external participant and applied to the new messages and attachments. The user records the science of politics on the device before sending.
Corporate retention of origin is not yet replicated for external channels. To prevent a deviation from this requirement, an active custody workspace shall not grant access to external areas. Custody creation/activation is also blocked as long as there are active or pending exit connections. After revoking them, wait at least 60 seconds before activating local custody, covering the maximum validity of remote sessions already issued.
This does not prevent a workspace with custody from receiving external participants on a channel hosted by it: in this case, the custody of fate covers the conversation. Auditors and administrators use local accounts of the organization, not the federated session of collaboration.
Network and operation#
- The PRCs use HTTPS, Ed25519, explicit audience, maximum validity of 60 seconds and unique-use identifiers. The answers are also signed and linked to the request.
- The transport does not follow redirects, validates the DNS addresses before connecting and fixing the validated IP, maintaining the validation TLS of the hostname. It has time limits, headers and body.
- Private IPs are blocked by default.
ALLOW_PRIVATE_FEDERATION_TARGETS=trueallows controlled networks only in selfhost mode; it is ignored in legacysaasmode. Customers continue to require HTTPS, except loopback/development emulator. - For the web client to access another backend, set up
ALLOWED_ORIGINSat the destination with the origin of reliable frontend. Do not use a generic origin for all partners. Native applications do not depend on CORS. - Membership, proposals, decisions, initial membership and withdrawals generate administrative events. The trail is still in the bank, without WORM.
- Operational Backups need to include the bank and operational encryption key of the installation. Losing the signature key or changing the source requires a reliable migration not yet automated.
Reference HTTP#
Administrative routes require appropriate local sessions and privileges. password operations require the login password for re-authentication. IDs are UUIDs. API of RPC accepts only the actions of the protocol.
| Method | Route after /api | Usage |
|---|---|---|
| GET / PUT | /admin/federation | Consultar/configurar instalação; PUT enabled, origin, name, password. |
| GET | /federation/info | Public identity; unavailable when disabled. |
| PUT | /admin/federation/peers/{id} | id, origin, name, publicKey, fingerprint, enabled, password. |
| POST | /workspaces/{w}/federation/blocks/{person}/release | Release external participant lock with password. |
| GET / POST | /workspaces/{w}/federation | Consult connections/proportion access; POST peerId and remoteWorkspaceId. |
| POST | /workspaces/{w}/federation/{id}/decide | accept and channelId when the decision authorizes entry. |
| POST | /workspaces/{w}/federation/{id}/refresh | Consult approval at destination. |
| POST | /workspaces/{w}/federation/{id}/revoke | Retreat local connection and try to warn fate. |
| GET | /federation/workspaces | Approved external channels available to the source account. |
| POST | /federation/workspaces/{id}/challenge | deviceId; returns single-use challenge. |
| POST | /federation/workspaces/{id}/session | deviceId, challenge and signature of the device. |
| POST | /federation/rpc | Envelope signed between pre-authorised facilities. |
The installation signature key should not be registered as a user device, custody key or message integration key.