feat(synapse): close federation with an empty domain whitelist (#0060)
Decision sorb. Measured basis rather than preference: four months of operation with zero destinations, zero remote users and zero rooms with outside participation, while the federation API answered publicly - the delegation routes it over 443, so 8448 being shut never mattered. An empty list federates with nobody and one entry opens it for exactly that domain, so the capability stays one line away rather than gone. The comment records what must not be done instead, because it is not obvious and it would look correct: blocking /_matrix/federation at the edge. lk-jwt-service verifies OpenID tokens through /_matrix/federation/v1/openid/userinfo and reaches it over the public name - no hostAliases, ClusterFirst DNS - so a path-level block kills group calls. Synapse serves that endpoint without an X-Matrix signature, so the whitelist does not touch it. Caught while validating: the first version of this edit split the auto_join block, moving auto_join_rooms_for_guests under federation. Functionally identical after the fragments merge, wrong to read, and fixed before pushing - the diff is now 20 added lines and nothing moved.
This commit is contained in:
@@ -69,6 +69,26 @@ data:
|
|||||||
auto_join_rooms:
|
auto_join_rooms:
|
||||||
- "#onboarding:axion1337.chat"
|
- "#onboarding:axion1337.chat"
|
||||||
auto_join_rooms_for_guests: false
|
auto_join_rooms_for_guests: false
|
||||||
|
# Foederation geschlossen (Entscheidung sorb 2026-08-19, management #0060,
|
||||||
|
# ADR-0021). Leere Liste = mit KEINEM Server foederieren; ein Eintrag hier
|
||||||
|
# oeffnet gezielt fuer diese eine Domain.
|
||||||
|
#
|
||||||
|
# Grundlage war eine Messung, keine Meinung: in vier Monaten Betrieb null
|
||||||
|
# Eintraege in `destinations`, null fremde Nutzer, null Raeume mit fremder
|
||||||
|
# Beteiligung - bei gleichzeitig oeffentlich erreichbarer Foederations-API
|
||||||
|
# (die Delegation fuehrt sie ueber 443, 8448 ist ohnehin zu).
|
||||||
|
#
|
||||||
|
# ⚠️ NICHT betroffen und darf es auch nicht sein:
|
||||||
|
# /_matrix/federation/v1/openid/userinfo. Ueber diesen Endpunkt prueft der
|
||||||
|
# MatrixRTC-Authorisation-Service (lk-jwt-service) die OpenID-Tokens, und er
|
||||||
|
# ruft ihn ueber den OEFFENTLICHEN Namen auf - das Deployment hat keine
|
||||||
|
# hostAliases und ClusterFirst-DNS. Synapse bedient ihn ohne
|
||||||
|
# X-Matrix-Signatur (REQUIRE_AUTH=False), die Whitelist greift dort also
|
||||||
|
# nicht. Wer hier auf Pfad-Ebene sperrt statt ueber diese Liste, legt die
|
||||||
|
# Gruppen-Calls lahm - genau der mrtc-Ausfall, nur mit anderer Ursache.
|
||||||
|
federation:
|
||||||
|
config: |
|
||||||
|
federation_domain_whitelist: []
|
||||||
room_publish:
|
room_publish:
|
||||||
config: |
|
config: |
|
||||||
room_list_publication_rules:
|
room_list_publication_rules:
|
||||||
|
|||||||
Reference in New Issue
Block a user