Commit graph

267 commits

Author SHA1 Message Date
Tulir Asokan
315d2ab17d all: fix staticcheck issues
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-12-08 00:07:25 +02:00
Tulir Asokan
3e07631f9e bridgev2/mxmain: add better error for pre-megabridge dbs
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-12-06 22:58:11 +02:00
Tulir Asokan
7d54edbfda bridgev2/mxmain: add support for reading env vars from config
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-12-02 19:04:04 +02:00
Tulir Asokan
1fac8ceb66 bridgev2/matrix: fix GetStateEvent not passing state key through
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-11-19 23:21:56 +02:00
Tulir Asokan
57657d54ee
bridgev2: add custom event for requesting state change (#428)
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-19 13:15:38 +02:00
Tulir Asokan
a61e4d05f8 bridgev2/matrix: use MSC4169 to send redactions when available
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-11-13 17:39:27 +02:00
Tulir Asokan
0b73e9e7be client,appservice: deprecate SendMassagedStateEvent in favor of SendStateEvent params 2025-11-13 17:38:45 +02:00
Tulir Asokan
6c7828afe3 bridgev2/portal: skip invite step if room is public 2025-11-12 21:46:23 +02:00
Tulir Asokan
981addddc9 bridgev2/config: add option to disable kicking matrix users
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 19:38:08 +02:00
Tulir Asokan
aa53cbc528 bridgev2/publicmedia: add support for encrypted files
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-10 00:11:40 +02:00
Tulir Asokan
2eea2e7412 bridgev2/publicmedia: add support for file name in content disposition 2025-11-09 23:02:23 +02:00
Tulir Asokan
60cbe66e2f bridgev2/publicmedia: add support for custom path prefixes 2025-11-09 22:44:02 +02:00
Tulir Asokan
14e16a3a81 bridgev2/matrix: drop events from users without permission earlier
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-09 11:40:10 +02:00
Tulir Asokan
fdd7632e53 bridgev2/matrix: avoid sending message status notices for m.notice events 2025-11-09 11:33:39 +02:00
Tulir Asokan
cfa47299df bridgev2/provisioning: add select type for login user input
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-06 09:26:28 +01:00
Tulir Asokan
2ece053b2b
bridgev2: roll back failed room metadata changes (#425)
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-10-31 00:07:24 +02:00
Tulir Asokan
1be49d53e4 bridgev2/config: add option to limit maximum number of logins 2025-10-23 15:49:11 +03:00
Tulir Asokan
a661641bcb bridgev2/matrix: don't sleep after registering bot on versions error
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-10-19 23:36:07 +03:00
Tulir Asokan
9fc5d98774 bridgev2/mxmain: fix --version flag output 2025-10-02 21:57:25 +03:00
Tulir Asokan
d146b6caf8 bridgev2/mxmain: move version calculation to go-util
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-09-27 17:09:44 +03:00
Tulir Asokan
743cbb5f2c bridgev2/mxmain: add option to mix calendar and semantic versioning 2025-09-27 16:26:15 +03:00
Tulir Asokan
a9ff1443f7 bridgev2: add interface for deleting chats from Matrix
Closes #408
2025-09-22 16:05:53 +03:00
Tulir Asokan
23b18aa0ca bridgev2/provisioning: fix login_id query param name 2025-09-22 14:46:47 +03:00
Tulir Asokan
658b2e1d1d bridgev2/matrix: share device keys as part of e2ee init 2025-09-21 20:34:04 +03:00
Tulir Asokan
6c37f2b21f bridgev2/matrix: add config option to self-sign bot device 2025-09-21 20:34:04 +03:00
Tulir Asokan
f7bfa885c9 bridgev2: improve split portal migration 2025-09-19 20:45:17 +03:00
Tulir Asokan
35ac4fcb8d bridgev2/matrix: don't encrypt reactions in batch sends 2025-09-17 21:45:43 +03:00
Tulir Asokan
709f48f2b3 bridgev2/provisioning: remove unused structs
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-09-02 18:24:24 +03:00
Tulir Asokan
f8c3a95de7
bridgev2: add support for creating groups (#405)
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-09-01 18:01:20 +03:00
Tulir Asokan
8f464b5b76 bridgev2: move shared SNC code to provisionutil 2025-08-29 16:45:54 +03:00
Ping Chen
c18d2e2565
bridgev2/matrixinterface: add GetEvent interface for linkedin reply (#406)
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
Co-authored-by: Tulir Asokan <tulir@maunium.net>
2025-08-29 17:20:11 +09:00
Tulir Asokan
19f3b2179c pre-commit: ban log.Str(x.String()) 2025-08-29 11:07:16 +03:00
Tulir Asokan
3048d2edab bridgev2/provisioning: add minimum length for shared secret
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-08-28 02:20:41 +03:00
Tulir Asokan
359afbea2b bridgev2/matrix: remove provisioning API prefix option
Reverse proxy configuration should be used instead when adding prefixes
to the path. Changing the path entirely is not recommended even with
reverse proxies.

Fixes #403
2025-08-28 02:19:27 +03:00
Tulir Asokan
4f7c7dafdc bridgev2/matrix: fix encryption error notice not being redacted after retry success 2025-08-25 17:42:20 +03:00
Tulir Asokan
a6bbe978bd bridgev2/networkinterface: add interface for handling disappearing timer changes from Matrix 2025-08-25 17:35:57 +03:00
Tulir Asokan
3865abb3b8 dependencies: update go-util and use new UnsafeString helper 2025-08-09 13:10:18 +03:00
Tulir Asokan
aeeea09549 sqlstatestore: ensure empty room/user ids aren't stored in db 2025-08-01 12:19:51 +03:00
Tulir Asokan
0a804c58a1 bridgev2/matrix: don't ensure joined for state resync 2025-08-01 12:15:47 +03:00
Tulir Asokan
66ec881a74 bridgev2/matrix: add hack for resyncing encryption state cache 2025-08-01 11:00:37 +03:00
Tulir Asokan
190c0de94f bridgev2/matrix: always clear mx_user_profile when deleting room 2025-08-01 10:51:00 +03:00
Tulir Asokan
94f53c5853 bridgev2/cryptostore: add missing escape clause to not like
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-07-31 14:00:00 +03:00
Tulir Asokan
91b2bcdb9f bridgev2/matrix: don't send connecting bridge states to cloud 2025-07-31 13:01:08 +03:00
Tulir Asokan
b4c7abd62b bridgev2,federation,mediaproxy: enable http access logging
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-07-29 17:10:50 +03:00
Tulir Asokan
f1da44490c bridgev2/provisioning: move login step checks into handler 2025-07-29 16:15:16 +03:00
Tulir Asokan
2e7ff3fedd all: fix trailing slash in subrouters
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-07-28 22:03:43 +03:00
Tulir Asokan
83b4b71a16 appservice/websocket: switch from gorilla to coder 2025-07-28 14:56:09 +03:00
Tulir Asokan
62c03d093a bridgev2/status: take context and http client in checkpoint SendHTTP 2025-07-28 14:56:09 +03:00
Tulir Asokan
d5223cdc8f all: replace gorilla/mux with standard library 2025-07-28 14:56:09 +03:00
Tulir Asokan
69a3d27c1c bridgev2: add interface for getting arbitrary state event 2025-07-22 22:50:26 +03:00