Toni Spets
898b235a84
Allow overriding http.Client with FullRequest
2024-04-02 13:59:48 +03:00
Toni Spets
64cc843952
Invalidate memory cache when storing own cross-signing keys
...
When another device does cross-signing reset we would incorrectly
cache the old keys indefinitely.
2024-04-02 13:59:07 +03:00
Toni Spets
0095e1fb78
Assume the device list is up-to-date on key backup restore
...
Fetching devices in a loop can cause request storming if there's a lot
of unknown signatures for a key backup.
A client implementation should always ensure that the devices are
updated from device list changed updates from sync.
2024-03-28 10:42:29 +02:00
Tulir Asokan
ade00e8603
Merge pull request #193 from maltee1/join_rule
...
Join Rule & (Un)ban handling & Knock handling
2024-03-22 20:04:08 +02:00
Toni Spets
9fe66581e5
Check that shared IGS has higher index than stored
...
Copies the logic from key import.
2024-03-18 13:17:54 +02:00
Adam Van Ymeren
4dd7adc7be
Merge pull request #200 from beeper/adam/hsorder
...
Fix Unsigned.IsEmpty() when all we have is HSOrder
2024-03-16 11:41:48 -07:00
Adam Van Ymeren
8ba307b28d
Fix Unsigned.IsEmpty() when all we have is HSOrder
2024-03-16 11:36:58 -07:00
Tulir Asokan
5dedc9806a
Bump version to v0.18.0
2024-03-16 12:55:53 +02:00
Malte E
b556d65da9
add handler for accepting/rejecting/retracting invites
2024-03-15 22:29:33 +01:00
Toni Spets
fad4448ab7
Use a callback to receive secret response
...
To properly receive and store a requested secret, we usually need to
validate it against something like a public key to ensure we got the
correct one.
This changes the API so that we instead use a callback to receive any
incoming secret matching our request but we'll fail when we hit the
specified timeout if we never receive anything that is accepted.
2024-03-15 15:12:56 +02:00
Tulir Asokan
a7bf485893
Update changelog
2024-03-13 21:23:04 +02:00
Tulir Asokan
20fde3d163
Remove error in ParseCommonIdentifier
2024-03-13 17:01:07 +02:00
Tulir Asokan
5224780563
Split UserID.Parse into generic ParseCommonIdentifier
2024-03-13 16:57:16 +02:00
Toni Spets
f0b728f502
Require OGS update to succeed during EncryptMegolmEvent
...
Otherwise we could end up reusing the same ratchet multiple times.
2024-03-13 11:19:49 +02:00
Tulir Asokan
8128b00e00
Add key server that passes the federation tester ( #197 )
2024-03-12 21:15:39 +02:00
Brad Murray
08397c8b9a
Fix responding to m.secret.request messages ( #195 )
2024-03-11 18:50:06 -04:00
Tulir Asokan
94246ffc85
Drop maulogger support
2024-03-11 20:36:06 +02:00
Sumner Evans
2728a8f8aa
olm/pk: add fuzz test for the Sign function
...
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-03-11 09:00:11 -06:00
Sumner Evans
3b65d98c0c
olm/pk: make an interface
...
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-03-11 09:00:11 -06:00
Tulir Asokan
d18dcfc7eb
Update dependencies
2024-03-11 15:37:57 +02:00
Toni Spets
a36f60a4f3
Parse Beeper inbox preview event in sync
2024-03-11 12:35:55 +02:00
Tulir Asokan
311a20cea9
Update CHANGELOG.md
2024-03-10 20:34:59 +02:00
Tulir Asokan
1423650a29
Don't use UIA wrapper for appservice user registrations
2024-03-10 20:34:52 +02:00
Malte E
db41583fdd
add knock handling
2024-03-10 13:47:09 +01:00
Malte E
41dfb40064
add ban/unban handling
2024-03-09 21:17:27 +01:00
Malte E
6b1a039beb
add join rule handler
2024-03-09 20:34:47 +01:00
Malte E
b8e4202c0f
Add handler for power levels in bridges ( #189 )
2024-03-09 16:33:09 +02:00
Sumner Evans
a6b4b3bf34
ci: run tests with goolm as well
...
Co-authored-by: Tulir Asokan <tulir@maunium.net>
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-03-08 15:40:43 -07:00
Sumner Evans
284ab0d62c
olm: remove SHA256 base64 utility
...
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-03-08 14:04:19 -07:00
Sumner Evans
a10c114203
verification: remove (go)olm SAS code
...
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-03-08 13:24:16 -07:00
Toni Spets
bb6c88faf3
Add callback on megolm session receive
2024-03-06 15:06:21 +02:00
Tulir Asokan
a8e1ae1936
Link to FAQ in some error cases
2024-03-03 12:47:29 +02:00
G-ht
cbd1334724
Add more Synapse admin API wrappers ( #181 )
...
Co-authored-by: Tulir Asokan <tulir@maunium.net>
2024-02-24 15:06:27 +02:00
Tulir Asokan
581aa80155
Fix some error logs
2024-02-23 21:12:08 +02:00
Toni Spets
6abf3c4adc
Use the encoded form of megolm session key in backup session data
...
We're using the encoded presentation elsewhere as a string and this
inconsistency is a footgun.
2024-02-22 12:26:35 +02:00
Tulir Asokan
7f0d53ac91
Treat missing upload size limit as 50mb
2024-02-21 19:12:59 +02:00
Sumner Evans
a6644eb030
verificationhelper: add callback for scan QR code
...
This callback indicates that the other device is showing a QR code and
is ready for our device to scan it.
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-02-19 16:41:07 -07:00
Sumner Evans
128fc8cd89
event/verification: remove Supports* functions
...
Use slices.Contains instead
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-02-19 16:41:07 -07:00
Tulir Asokan
0f7c716964
Fix field name
2024-02-20 00:18:29 +02:00
Tulir Asokan
ccbf0ee988
Add note about event source being moved to 0.17 changelog
...
Fixes #184
2024-02-20 00:17:13 +02:00
Sumner Evans
5e73f1674a
verification: add CancelVerification to interface
...
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-02-18 19:26:12 -07:00
Tulir Asokan
b1b1c97a11
Make matched_url optional
2024-02-17 15:34:17 +02:00
Tulir Asokan
740c588b96
Add MSC4095 types
2024-02-17 14:46:10 +02:00
Sumner Evans
b7f434cd76
verificationhelper: streamline error/cancellation logic
...
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-02-16 16:26:02 -07:00
Sumner Evans
169ed443c8
verificationhelper: handle both devices sending start event
...
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-02-16 16:26:02 -07:00
Sumner Evans
492c42f8b2
verificationhelper/sas: actually exchange and verify MAC keys
...
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-02-16 16:26:02 -07:00
Sumner Evans
0b8e46e84d
event/verification: Mac -> MAC
...
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-02-16 12:01:42 -07:00
Sumner Evans
fd986fc43a
crypto: add some license headers
...
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-02-16 09:36:35 -07:00
Tulir Asokan
4cae27c445
Bump version to v0.18.0-beta.1
2024-02-16 16:54:18 +02:00
Tulir Asokan
a1b18a005a
Add flag to run bridge even if homeserver is outdated
2024-02-16 16:52:21 +02:00