Timo Kösters
ae41bc5067
fix: run state res with old current state again
...
I'm a bit torn on the "auth check based on the current state of the
room". It can mean multiple things:
1. The state of the room before the homeserver looked at the event at
all. But that means if a message event from a user arrives, but we
didn't see their join event before, we soft fail the message (even
though we would find the join event when going through the auth events
of the event and doing state res)
2. The state of the room after doing state-res with the event and our
previous room state. We need to do this state resolution to find the new
room state anyway, so we could just use the new room state for the auth
check. The problem is that if the incoming event is a membership leave
event, the new room state does not allow another leave event. This is
obviously the wrong option.
3. The state of the room after doing state-res with the state **before**
the event and our previous room state. This will mean a lot more
calculations because we have to run state-res again
We used 2. before and now use 1. again
5 years ago
Timo Kösters
f62258ba35
improvement: bug fixes and refactors
...
- power level content override adds to the default event instead of
replacing it
- sending code refactored to make edus possible
- remove presence events when restarting conduit
- remove room_id field from read receipts over /sync
- handle incoming read receipts
- fix array bounds bug in server_server.rs
5 years ago
Jonas Platte
a0457000ff
Upgrade Ruma
5 years ago
Timo Kösters
cf94b8e712
improvement: uiaa works like in synapse
5 years ago
Jonas Platte
8bfaf09f37
Clean up reqwest::Response to http::Response conversion
5 years ago
Jonas Platte
2e1d7d12ca
Refactor usage of CanonicalJsonValue
5 years ago
Timo Kösters
58463bba93
feat: send invites over federation
5 years ago
Timo Kösters
226045ea4b
improvement: warning on misconfigured reverse proxy
5 years ago
Jonas Platte
d8b484beed
Upgrade ruma
5 years ago
Timo Kösters
6e84d317b2
improvement: update ruma
5 years ago
Timo Kösters
1f84013b2a
feat: verify signatures for incoming requests
5 years ago
Timo Kösters
2f440e644d
fix: clippy
5 years ago
Timo Kösters
71ed1b295a
feat: /devices route
5 years ago
Gabriel Souza Franco
ed253e236c
chore: document FedDest, fix tests
5 years ago
Timo Kösters
d4e0ba245b
fix: bug when fetching events over federation
5 years ago
Timo Kösters
eedac4fd96
feat: make_join, send_join and /directory
5 years ago
Gabriel Souza Franco
7faa021ff5
chore: code formatting and cleanup
5 years ago
Gabriel Souza Franco
b4c001de2f
chore: cleanup string-based code in find_actual_destination
5 years ago
Gabriel Souza Franco
0b56589dce
feat: add handling of tls cert for delegated hosts
5 years ago
Timo Kösters
c1953efa6b
chore: code cleanup
5 years ago
Timo Kösters
5951294638
feat: join cursed rooms
...
this removes several restrictions and tries to continue verifying a pdu
event if some auth events fail (it drops/ignores bad pdus)
5 years ago
Timo Kösters
8b40e0a85f
improvement: fetch signing keys in parallel when joining a room
5 years ago
Timo Kösters
5049d0e01b
improvement: check signatures on join
5 years ago
Timo Kösters
b4f79b77ba
feat: reject invites over federation
5 years ago
Timo Kösters
8773e5013d
feat: incoming invites over federation
5 years ago
Timo Kösters
588de12d79
fix: lost forward extremity
5 years ago
Timo Kösters
f3f95a73d0
improvement: /event route
5 years ago
Jonas Platte
dc031fff95
Remove redundant calls to .iter() and .into_iter()
5 years ago
Timo Kösters
db7044a950
sytest test
5 years ago
Timo Kösters
cd4dc13731
fix: use correct room versions
5 years ago
Timo Kösters
c213769d9f
improvement: refactor state res and fix a few bugs in the process
5 years ago
Timo Kösters
16eed1d8c2
chore: get rid of warnings
5 years ago
Timo Kösters
1d00a8c41f
improvement: better logging
...
Use CONDUIT_LOG or the log setting in the config
5 years ago
Timo Kösters
46d8f36a2c
fix: media thumbnail calculation and appservice detection
5 years ago
Timo Kösters
3ea7d162db
fix: various improvements and fixes
5 years ago
Timo Kösters
363c629faf
fix: signature key fetching, optimize push sending
5 years ago
Timo Kösters
f775c76d8a
chore: get rid of warnings
5 years ago
Gabriel Souza Franco
7b3fe88345
Send proper Host header in federation requests
5 years ago
Timo Kösters
a77fcd106e
feat: implement /state_ids and fix federation stuff
5 years ago
Timo Kösters
100307c936
improvement: optimize state storage
5 years ago
Timo Kösters
44425a903a
fix: multiple federation/pusher fixes
5 years ago
Timo Kösters
6da40225bb
improvement: make state res actually work
5 years ago
Rudi Floren
4027cbd01d
Fix various clippy errors
5 years ago
Devin Ragotzy
e239014fa3
Query for the correct server
5 years ago
Timo Kösters
1ce00f90fe
fix: don't accept incoming pdus if we know about them already
5 years ago
Rudi Floren
231c6032f4
Make clippy happy (needless-return, etc.)
5 years ago
Timo Kösters
437cb5783a
fix: apply the same appservice sending rules to events coming from federation
...
currently this code is duplicated from database/rooms.rs, when we
refactor server_server.rs we should deduplicate it
5 years ago
Timo Kösters
4155a47db1
feat: opentelemetry/jaeger support
5 years ago
Devin Ragotzy
79c9de98cd
Add trusted_servers, filter servers to query keys by trusted_servers
5 years ago
Devin Ragotzy
c9f4ff5cf8
Ask multiple servers for keys when not known or sending server failed
5 years ago