Page MenuHomePhabricator

Configure subdomain to enable * Matrix user IDs
Open, MediumPublic


To use Matrix IDs from a given domain, that domain needs to be authorized. We would like to use for the Foundation's internal Matrix deployment. Can you please set up to return the following JSON object:

{ "m.server": "" }

As discussed on IRC, we would prefer to use DNS if possible. I haven't heard back from the vendor on this yet, but I will update this task when I do.

Thanks for your help,

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFri, Aug 28, 9:46 PM
Krinkle added subscribers: Dzahn, CDanis, Krinkle.
Restricted Application added a project: Traffic. · View Herald TranscriptFri, Aug 28, 9:51 PM

Based on the Matrix docs and a recent blog post I believe the equivalent of that JSON object in their DNS format would be:

DNS 300    IN  SRV 10 5 443

I heard back from the vendor regarding DNS and the rep said "I have not found the DNS way for delegation in our internal docs, but also no explicit "we don't support it". So lets try it. The required DNS entry is described in the Spec under step 4 here:".

Tgr added a subscriber: Tgr.EditedSun, Aug 30, 3:49 PM

Let's also get rid of the old domain configuration added in T223835: Configure to enable * Matrix user IDs while we are at it.

Tgr added a comment.Sun, Aug 30, 3:56 PM

(FWIW, a year ago I ran into some trouble with the DNS method, unfortunately I don't really remember the details - I think the modular admin panel checked for .well-known but not for the DNS entry?)

Change 623147 had a related patch set uploaded (by Gergő Tisza; owner: Gergő Tisza):
[operations/mediawiki-config@master] Revert "Add .well-known/matrix for"

Change 623348 had a related patch set uploaded (by CDanis; owner: CDanis):
[operations/dns@master] Add SRV record verification for Element Matrix Services

fgiunchedi triaged this task as Medium priority.Mon, Aug 31, 12:56 PM

Change 623348 merged by CDanis:
[operations/dns@master] Add SRV record verification for Element Matrix Services

Vendor says it looks to be all correct now. They shared this link:

CDanis closed this task as Resolved.Mon, Aug 31, 6:06 PM
CDanis claimed this task.

Hey folks. Unfortunately, we discovered that the SRV/DNS solution is blocking our ability to use the Integrations feature on Element. The Integrations feature is what allows us to do self-service bridging configuration and other things. Can we use the URL for the well known file? Here is what the person from Element says:

"it looks like the SRV record setup for is incompatible with the integration setup. If at all possible, the quickest way to resolve this would be to have a well known file located at possible, because the integration manager will not work until then. You can use the bridges fine, but if you want to start playing with integrations we're going to need a well known setup. The SRV/DNS solution isn't really compatible. Sorry for misleading. If it's very difficult for you folks to set the well known up, we might be able to hack around it our side, but it's something we'd like to avoid as it's another thing to maintain in the stack."


bcampbell reopened this task as Open.Mon, Sep 7, 9:12 PM