Commit graph

2,943 commits

Author SHA1 Message Date
timedout
e61c7b3f1e
client: Add AdminWhoIs func (#411) 2025-10-18 20:30:43 +01:00
Tulir Asokan
c50460cd6e client: add response size limits
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-18 13:54:14 +02:00
Tulir Asokan
827bb4c621 federation: add response size limit 2025-10-18 13:33:45 +02:00
Tulir Asokan
df957301be federation: don't allow redirects 2025-10-18 13:33:45 +02:00
Tulir Asokan
a214af5bab federation: fix server key query test 2025-10-18 13:33:45 +02:00
Brad Murray
572a704b04
errors: Add M_WRONG_ROOM_KEYS_VERSION (#419) 2025-10-18 05:42:01 -04:00
Tulir Asokan
50a49e01f3 Bump version to v0.25.2
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
v0.25.2
2025-10-16 11:26:46 +02:00
Toni Spets
22ea75db96 client,event: MSC4140: Delayed events
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
Includes transparent migration from deprecated MSC fields still used
in Synapse to later revision.
2025-10-14 14:22:47 +03:00
Toni Spets
080ad4c0a0 crypto: Allow decrypting message content without event id or ts
Replay attack prevention shouldn't store empty event id or ts to
database if we're decrypting without them. This may happen if we are
looking into a future delayed event for example as it doesn't yet have
those.

We still prevent doing that if we already know them meaning we have
gotten the actual event through sync as that's also when a delayed event
would move from scheduled to finalised and then it also contains those
fields.
2025-10-14 14:22:42 +03:00
Tulir Asokan
ab4a7852d6 bridgev2/provisionutil: don't allow self in create group participants 2025-10-14 13:01:21 +03:00
Tulir Asokan
097813c9b2 bridgev2/provisionutil: validate user IDs in CreateGroup if network supports it
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-14 00:20:04 +03:00
Tulir Asokan
5593d8afcd changelog: update
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-13 15:30:12 +03:00
Tulir Asokan
91ea77b4d4 bridgev2/portal: don't send implicit read receipts for account data
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-10-08 19:16:00 +03:00
Tulir Asokan
9654a0b01e bridgev2/portal: enforce media duration and size limits
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-10-08 18:47:55 +03:00
Tulir Asokan
d18142c794 bridgev2/errors: add reason for unsupported errors 2025-10-08 18:33:57 +03:00
Tulir Asokan
3a300246ac id/userid: split validation into 2 functions
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-10-06 23:10:04 +03:00
Tulir Asokan
51edfc27c0 bridgev2: add omitempty for group create params struct 2025-10-06 23:00:04 +03:00
Tulir Asokan
548970fd0f event: add Clone for other capability types too 2025-10-06 17:05:46 +03:00
Tulir Asokan
344b04c407 event: add Clone method for file features 2025-10-06 17:03:30 +03:00
Tulir Asokan
07bc756971 changelog: update 2025-10-06 16:51:41 +03:00
Tulir Asokan
13f251fe60 crypto/helper: don't block on decryption
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-10-05 12:30:54 +03:00
Tulir Asokan
8a72af9f6b federation/eventauth: require that join authorizer is in the room
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-10-03 22:51:38 +03:00
Tulir Asokan
4be60a0021 bridgev2/simplevent: allow upserts with PreConvertedMessage
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-03 03:14:51 +03:00
Tulir Asokan
ce667a65e5 bridgev2/simplevent: add simpler form of message event 2025-10-03 03:10:29 +03:00
Tulir Asokan
8e668586f9 appservice/intent: add room ID to fake join response
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-02 22:10:22 +03:00
Tulir Asokan
9fc5d98774 bridgev2/mxmain: fix --version flag output 2025-10-02 21:57:25 +03:00
Tulir Asokan
5d69963ab5 bridgev2/portal: add exclude from timeline flag for not in chat leaves 2025-10-02 17:19:45 +03:00
Tulir Asokan
97da8eb44d event: add helper to get remaining mute duration
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-02 14:45:46 +03:00
Tulir Asokan
dd778ae0cd bridgev2/portal: add option to exclude metadata changes from timeline
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-01 14:55:35 +03:00
Tulir Asokan
9ee13d1363 bridgev2/portal: add option to exclude member changes from timeline by default 2025-10-01 14:48:28 +03:00
Tulir Asokan
77682fb292 bridgev2,error: use NonNilClone instead of creating map manually 2025-10-01 14:48:11 +03:00
Tulir Asokan
329da10584 bridgev2/database: fix split portal parent migration query
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-30 15:35:25 +03:00
Tulir Asokan
b597f149b7 version: initialize go.mod version regex lazily 2025-09-28 20:39:07 +03:00
Tulir Asokan
f2b77f0433 version: find from build info if unset
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-28 20:35:41 +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
9878c3d675 federation/eventauth: change error message for users-specific power level check
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-26 23:36:58 +03:00
Tulir Asokan
6e231a45e4 federation/eventauth: fix gjson path construction in new power level check 2025-09-26 23:36:03 +03:00
Tulir Asokan
ae6a0b4f51 federation/eventauth: fix checking user power level changes 2025-09-26 23:26:17 +03:00
Tulir Asokan
a3c6832c48 federation/eventauth: fix default power levels in pre-v12 rooms 2025-09-26 23:18:05 +03:00
Tulir Asokan
acc449daf4 crypto: add basic group session sharing benchmark 2025-09-26 20:37:58 +03:00
Tulir Asokan
fa90bba820 crypto: don't check otk count if sharing new keys 2025-09-26 19:48:22 +03:00
Tulir Asokan
caca057b23 crypto/helper: always share keys when creating new device 2025-09-26 19:17:16 +03:00
Tulir Asokan
0685bd7786 crypto/verificationhelper: extract mockserver to new package 2025-09-26 16:56:48 +03:00
Tulir Asokan
b0481d4b43 client: re-add support for unstable profile fields
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-26 12:55:36 +03:00
Tulir Asokan
cf29b07f32 appservice/websocket: use io.ReadAll instead of json decoder
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-24 20:29:49 +03:00
Tulir Asokan
5c580a7859 crypto/sqlstore: fix query used for olm unwedging
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-22 20:28:49 +03:00
Tulir Asokan
4635590fca bridgev2/portal: add temporary flag to slack bridge info
To let clients detect that 952806ea52 is done
2025-09-22 18:24:49 +03:00
Tulir Asokan
a8b5fa9156 client: fix some footguns in compileRequest
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
* add warning log if RequestBody is used without length instead of
  silently discarding the body
* fix wrapping RequestBody in nopcloser
* always set content length
2025-09-22 16:32:29 +03:00
Tulir Asokan
d5c6393f23 bridgev2/portal: don't process any more events if portal is deleted 2025-09-22 16:11:21 +03:00