Include local_part as appservice transaction destination #110

Closed
opened 2021-07-18 12:03:11 +00:00 by toni.spets · 10 comments
toni.spets commented 2021-07-18 12:03:11 +00:00 (Migrated from gitlab.com)

Headline

Conduit does not send transactions for the appservice itself if local_part of the registration file does not match it.

Description

To be inline with Synapse and Dendrite Conduit should send transactions for appservices for their own local_part, at least when the local user is registered by the appservice.

Most if not all appservices expect this behavior and don't default to having a regex for the local_part when creating a registration file.

Also see https://github.com/hifi/heisenbridge/issues/134

# Headline Conduit does not send transactions for the appservice itself if local_part of the registration file does not match it. ### Description To be inline with Synapse and Dendrite Conduit should send transactions for appservices for their own local_part, at least when the local user is registered by the appservice. Most if not all appservices expect this behavior and don't default to having a regex for the local_part when creating a registration file. Also see https://github.com/hifi/heisenbridge/issues/134
timokoesters commented 2021-07-19 11:23:17 +00:00 (Migrated from gitlab.com)

Hmm I thought this was the case already

Hmm I thought this was the case already
timokoesters commented 2021-07-21 20:33:06 +00:00 (Migrated from gitlab.com)

https://gitlab.com/famedly/conduit/-/blob/master/src/database/rooms.rs#L1511

This code should send all events to the appservice if the bridge user is joined. Perhaps someone can insert a few dbg!s to see what is happening

https://gitlab.com/famedly/conduit/-/blob/master/src/database/rooms.rs#L1511 This code should send all events to the appservice if the bridge user is joined. Perhaps someone can insert a few dbg!s to see what is happening
timokoesters commented 2021-07-21 20:39:02 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
toni.spets commented 2021-07-26 06:37:54 +00:00 (Migrated from gitlab.com)

I tested this myself now and I can confirm with latest GitLab docker registry image that I can't talk with Heisenbridge unless I add it to users namespace explicitly.

I tested this myself now and I can confirm with latest GitLab docker registry image that I can't talk with Heisenbridge unless I add it to users namespace explicitly.
timokoesters commented 2021-09-06 13:10:16 +00:00 (Migrated from gitlab.com)

Can someone test this again with conduit 0.2?

Can someone test this again with conduit 0.2?
Cogitri commented 2021-09-08 09:15:02 +00:00 (Migrated from gitlab.com)

I had to add - regex: '@heisenbridge' to the registration file I sent to conduit for heisenbridge to receive invitation events, so I think this is still an issue.

I had to add `- regex: '@heisenbridge'` to the registration file I sent to conduit for heisenbridge to receive invitation events, so I think this is still an issue.
timokoesters commented 2021-09-08 09:27:49 +00:00 (Migrated from gitlab.com)

Ah I found the problem. we check if the bridge user is in the room, not if it is invited. We should compare the state_key of the new pdu with the user of the localpart

Ah I found the problem. we check if the bridge user is in the room, not if it is invited. We should compare the state_key of the new pdu with the user of the localpart
ticho34782694 commented 2022-03-20 14:25:53 +00:00 (Migrated from gitlab.com)

mentioned in merge request !331

mentioned in merge request !331
timokoesters commented 2022-04-03 12:32:24 +00:00 (Migrated from gitlab.com)

mentioned in commit 272e27ae01

mentioned in commit 272e27ae01088b36532eeb1e8ef02fdfd28e6835
timokoesters commented 2022-04-07 10:57:47 +00:00 (Migrated from gitlab.com)

mentioned in commit 9046223e7f

mentioned in commit 9046223e7f649314671ab6f18cf606d5442f36f1
Sign in to join this conversation.
No labels
Android
CS::needs customer feedback
CS::needs follow up
CS::needs on prem installation
CS::waiting
Chrome
Design:: Ready
Design:: in progress
Design::UX
E2EE
Edge
Firefox
GDPR
Iteration 13 IM
Linux
MacOS
Need::Discussion
Need::Steps to reproduce
Need::Upstream fix
Needs:: Planning
Needs::Dev-Team
Needs::More information
Needs::Priority
Needs::Product
Needs::Refinement
Needs::Severity
Priority::1-Critical
Priority::2-Max
Priority::3-Impending
Priority::4-High
Priority::5-Medium
Priority::6-Low
Priority::7-None
Progress::Backlog
Progress::Review
Progress::Started
Progress::Testing
Progress::Triage
Progress::Waiting
Reporter::Sentry
Safari
Target::Community
Target::Customer
Target::Internal
Target::PoC
Target::Security
Team:Customer-Success
Team:Design
Team:Infrastructure
Team:Instant-Messaging
Team:Product
Team:Workflows
Type::Bug
Type::Design
Type::Documentation
Type::Feature
Type::Improvement
Type::Support
Type::Tests
Windows
blocked
blocked-by-spec
cla-signed
conduit
contribution::advanced
contribution::easy
contribution::help needed
from::review
iOS
p::ti-tenant
performance
product::triage
proposal
refactor
release-blocker
s: dart_openapi_codegen
s::Famedly-Patient
s::Org-Directory
s::Passport-Generator
s::Requeuest
s:CRM
s:Famedly-App
s:Famedly-Web
s:Fhiroxide
s:Fhiroxide-cli
s:Fhiroxide-client
s:Fhirs
s:Hedwig
s:LISA
s:Matrix-Dart-SDK
s:Role-Manager
s:Synapse
s:User-Directory
s:WFS-Matrix
s:Workflow Engine
s:dtls
s:famedly-error
s:fcm-shared-isolate
s:matrix-api-lite
s:multiple-tab-detector
s:native-imaging
severity::1
severity::2
severity::3
severity::4
technical-debt
voip
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: Matthias/conduit#110
No description provided.