Commit graph

41 commits

Author SHA1 Message Date
Tulir Asokan
75f9cb369b bridgev2: add helper method for getting HTTP settings from matrix connector
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2026-01-14 17:06:32 +02:00
Tulir Asokan
38799be3ca bridgev2/networkinterface: let matrix connector reset remote network connections
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2026-01-13 23:23:31 +02:00
Tulir Asokan
7b33248d3d bridgev2: add flag to indicate when bridge is stopping
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2025-11-12 01:54:29 +02:00
Tulir Asokan
fbf8718e22 bridgev2: also fix portal parent receivers in split portal migration 2025-09-19 21:19:55 +03:00
Tulir Asokan
820d0ee66b bridgev2: only delete rooms in split portal migration after starting connectors 2025-09-19 21:01:42 +03:00
Tulir Asokan
f7bfa885c9 bridgev2: improve split portal migration 2025-09-19 20:45:17 +03:00
Tulir Asokan
9fbf1b8598 bridgev2: make split portal migration errors fatal 2025-09-19 20:26:55 +03:00
Tulir Asokan
5b55330b85 bridgev2: run PostStart in background
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
2025-07-23 14:37:57 +03:00
Tulir Asokan
c80808439d bridgev2: add logger to background context 2025-07-10 13:45:11 +03:00
Toni Spets
d228995d71
bridgev2: Configurable disconnect timeout (#383)
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
Let the caller decide if they want to have a timeout or not.  For
standalone bridges using the Bridge struct the behavior is kept the same
by waiting for five seconds when UserLogin DisconnectWithTimeout() is
called.
2025-06-05 07:25:48 +03:00
Tulir Asokan
a0191c8f58 bridgev2: expose background context
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
2025-05-09 15:16:14 +03:00
Tulir Asokan
376fa1f368 bridgev2: fix initializing background context
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2025-05-08 15:25:20 +03:00
Nick Mills-Barrett
27769dfc98
bridgev2: add shared event handling context
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
This context is then passed into the network connectors handlers and
message conversion functions which may require making network requests,
which before this would not be canceled on bridge stop.
2025-05-07 17:30:50 +01:00
Tulir Asokan
58e4d0f2cc bridgev2: stop disappearing message loop on shutdown
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2025-04-30 15:33:33 +03:00
Tulir Asokan
aae91f67b4 bridgev2: split stopping matrix connector
Also fix stopping the websocket in the default Matrix connector
2025-04-15 12:11:18 +03:00
Tulir Asokan
95a7e940d5 bridgev2: don't keep cache lock while waiting for stop 2025-04-15 11:06:02 +03:00
Adam Van Ymeren
0fcb552c27
bridgev2: make Bridge.Start() take a context (#368)
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
2025-04-09 07:46:03 -07:00
Tulir Asokan
e1938c5159 bridge: remove package
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2025-03-15 22:28:16 +02:00
Tulir Asokan
30ad8a99a8 bridgev2: make restarting bridges safer 2025-01-29 14:50:04 +02:00
Tulir Asokan
2d79ce4eed bridgev2: allow passing extra data in ConnectBackground
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2025-01-23 15:06:50 +02:00
Tulir Asokan
9fa8272991 bridgev2: add fallback for RunOnce
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2025-01-21 12:53:07 +02:00
Tulir Asokan
b17a8cd74c bridgev2: add RunOnce method to backfill a single user login and disconnect 2025-01-15 15:05:29 +02:00
Tulir Asokan
2851065869
bridgev2: send room capabilities as a state event (#344) 2025-01-10 16:55:18 +02:00
Tulir Asokan
e3d5267485 bridgev2/networkinterface: don't allow returning errors in Connect
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
2024-11-29 18:21:54 +02:00
Tulir Asokan
965008e846 bridgev2: add optional stop method for network connectors
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2024-10-14 19:47:22 +03:00
Tulir Asokan
d89dac594d bridgev2: automatically update old portals when enabling split portals 2024-09-14 12:45:16 +03:00
Tulir Asokan
a224ed019d bridgev2: stop using GetCachedUserLogins 2024-08-28 13:41:21 +03:00
Tulir Asokan
fb87a6851e bridgev2/provisioning: allow network connectors to return custom HTTP errors 2024-08-10 23:26:05 +03:00
Tulir Asokan
804fd19bb9 bridgev2/legacymigrate: move post-migration DM portal fixing from slack 2024-07-19 13:18:30 +03:00
Tulir Asokan
edc71a5ee3 bridgev2/backfill: actually run backfill queue 2024-07-18 16:51:25 +03:00
Tulir Asokan
328be908b5 bridgev2/backfill: add stub backfill queue 2024-07-18 16:51:25 +03:00
Tulir Asokan
9fdf94132a bridgev2/database: move standard metadata fields to columns, add typing for custom metadata 2024-07-13 12:09:52 +03:00
Tulir Asokan
5782506e9e bridgev2: move commands to subpackage 2024-06-29 11:53:06 +03:00
Tulir Asokan
e25578d435 bridgev2: improve handling of user logins in bad credentials 2024-06-27 11:32:50 +03:00
Tulir Asokan
e13b62807f bridgev2: add capability flag for disappearing messages 2024-06-24 15:33:28 +03:00
Tulir Asokan
2c6ca02eeb bridgev2: add support for disappearing messages 2024-06-18 18:13:29 +03:00
Tulir Asokan
833995832b bridgev2: add clean shutdown 2024-06-17 16:00:07 +03:00
Tulir Asokan
d58e8f8817 Add bridge state queue for user logins 2024-06-11 20:26:04 +03:00
Tulir Asokan
f97d365ea9 Add proper main for v2 matrix bridges 2024-06-11 15:04:02 +03:00
Tulir Asokan
39ce0103d4 Add DM receivers to portals 2024-06-10 22:14:02 +03:00
Tulir Asokan
9254a5d6c1 Add base for v2 bridge architecture 2024-05-27 13:53:18 +03:00