Commit graph

43 commits

Author SHA1 Message Date
Tulir Asokan
19f3b2179c pre-commit: ban log.Str(x.String()) 2025-08-29 11:07:16 +03:00
Tulir Asokan
d5223cdc8f all: replace gorilla/mux with standard library 2025-07-28 14:56:09 +03:00
Tulir Asokan
53d027c06f appservice: replace custom response utilities with RespError and exhttp 2025-05-28 21:34:46 +03:00
Tulir Asokan
c0d1df18b4 appservice/http: use constant time comparisons for access tokens
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-16 15:05:55 +02:00
Tulir Asokan
cc179f8ff7 appservice: remove TLS support
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-09-30 11:11:26 +03:00
Tulir Asokan
9254a5d6c1 Add base for v2 bridge architecture 2024-05-27 13:53:18 +03:00
Tulir Asokan
c8e9998e7f Drop support for legacy query param auth for appservices 2024-01-16 21:28:13 +02:00
Tulir Asokan
25bc36bc7a Add more contexts everywhere 2024-01-07 22:45:02 +02:00
Tulir Asokan
48bfc596f0 Fix incorrect context.Backgrounds 2024-01-07 15:35:58 +02:00
Tulir Asokan
c710d4aa8f Deprecate MSC2716 methods and add Beeper batch send methods 2023-06-19 01:24:44 +03:00
Tulir Asokan
5a68173fe3 Add support for unix sockets in appservice module
Closes #116

Co-authored-by: Boris Rybalkin <ribalkin@gmail.com>
2023-03-15 16:18:52 +02:00
Tulir Asokan
af8678465f Move AS HTTP route adding to Init
Otherwise there may be race conditions as Start is called in a goroutine
2023-03-14 20:24:36 +02:00
Tulir Asokan
ff65890b79 Add id parameter to appservice ping 2023-03-11 16:47:18 +02:00
Tulir Asokan
c036250731 Implement MSC2659 2023-03-11 16:29:35 +02:00
Tulir Asokan
f6b793624a Adjust some transaction logs 2023-03-07 19:31:39 +02:00
Tulir Asokan
b238f0546a Switch appservice module to zerolog 2023-02-21 01:07:24 +02:00
Tulir Asokan
3e303ac01b Move most of appservice state store to client layer 2023-02-19 03:22:14 +02:00
Tulir Asokan
056e97d930 Remove remaining uses of ioutil 2023-02-04 15:36:42 +02:00
Tulir Asokan
d39599f8fb Use errors.Is instead of string comparison 2022-12-12 14:10:56 +02:00
Tulir Asokan
0296adbd0b Split to-device events into separate channel in AS handler 2022-11-09 16:35:09 +02:00
Tulir Asokan
e61df9ab8b Update MSC2409 to-device event handling
They were moved to their own array
2022-09-14 18:30:54 +03:00
Tulir Asokan
d2fcc50f2d Add device ID to appservice OTK count map 2022-08-05 18:08:44 +03:00
Tulir Asokan
a5a1e7e5df Add some logs and utilities for tracking message handling duration 2022-07-11 13:35:51 +03:00
Tulir Asokan
fe1dfbeb4e Move message send checkpoints to bridge module 2022-05-30 14:22:33 +03:00
qua3k
032310a37d Use appropriate name for error variables
This was caught by go-staticcheck and marked as ST1012.
2022-02-18 13:58:20 -05:00
Sumner Evans
881d73f843
checkpoints: expose ability to set retry_num 2021-12-03 17:34:40 -07:00
Tulir Asokan
46ef2b4793 Send bridge step message tracking checkpoint on websocket bridges 2021-11-25 23:14:31 +02:00
Sumner Evans
c5609c519a
GetCheckpointTypes -> CheckpointTypes, omit empty fields in message send checkpoints 2021-11-18 08:38:23 -07:00
Sumner Evans
427497a245
Refactor checkpoint methods 2021-11-17 14:33:25 -07:00
Sumner Evans
ff483f33aa
Move message_send_checkpoint to appservice package 2021-11-17 13:43:54 -07:00
Sumner Evans
74ed9c35d2
AppService.handleEvents: send BRIDGE checkpoint automatically 2021-11-17 10:39:31 -07:00
Tulir Asokan
25fd8bcfff Add logs about incoming transactions 2021-11-16 18:35:04 +02:00
Tulir Asokan
b95f3b9850 Update todo 2021-11-06 20:52:01 +02:00
Tulir Asokan
010782c602 Don't update state store with historical events 2021-11-03 21:30:19 +02:00
Tulir Asokan
5a2fad3f2b Remember multiple recent transaction IDs for deduplication 2021-08-30 15:25:58 +03:00
Tulir Asokan
386ac2e0c6 Add liveness and readiness endpoints to appservices 2021-08-25 18:38:30 +03:00
Tulir Asokan
50398a6d4d Handle OTK counts and device lists coming in through the transaction websocket 2021-07-24 23:58:35 +03:00
Tulir Asokan
72aa96509e Add support for MSC3202 in appservice package 2021-07-14 16:10:47 +03:00
Tulir Asokan
42d0adaa7d Improve debug log for unsupported event types and add call events to GuessClass (ref #32) 2021-05-07 15:11:42 +03:00
Tulir Asokan
c86cef6be3 Fix duplicate event handling 2020-11-10 16:30:09 +02:00
Tulir Asokan
488e1811bb Add support for receiving MSC2409 ephemeral events 2020-10-26 18:31:14 +02:00
Tulir Asokan
1e482c2e20 Support authorization header auth in appservices (MSC2832) 2020-10-26 14:46:41 +02:00
Tulir Asokan
94679e025b Move appservice module from mautrix-appservice-go 2020-05-09 14:26:52 +03:00