Timo Kösters
9b77eb7bb7
fix: too many syncs
3 years ago
Timo Kösters
1b42770ab5
improvement: warning for small max_request_size values
3 years ago
Timo Kösters
3e2f742f30
fix: room version warnings and other bugs when joining rooms
3 years ago
Timo Kösters
989d843c40
fix: unauthorized pdus will be responded to with FORBIDDEN
3 years ago
Timo Kösters
09157b2096
improvement: federation get_keys and optimize signingkey storage
...
- get encryption keys over federation
- optimize signing key storage
- rate limit parsing of bad events
- rate limit signature fetching
- dependency bumps
3 years ago
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
3 years ago
Timo Kösters
8f27e6123b
feat: send read receipts over federation
...
currently they will only be sent if a PDU has to be sent as well
3 years ago
Timo Kösters
24793891e0
feat: implement GET /presence
3 years ago
Timo Kösters
37b4a1cd0d
Merge branch 'dbg_clippy' into 'master'
...
Add dbg_macro check
See merge request famedly/conduit!75
3 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
3 years ago
Jonas Platte
af6fea3d4e
Refactor some canonical JSON code
3 years ago
Jonas Platte
a0457000ff
Upgrade Ruma
3 years ago
Jonathan de Jong
268ad3441c
add dbg_macro check
3 years ago
Timo Kösters
cf94b8e712
improvement: uiaa works like in synapse
3 years ago
Jonas Platte
e1c4e5c73e
Return only event content in account_data endpoints, not the entire event
3 years ago
Jonas Platte
8bfaf09f37
Clean up reqwest::Response to http::Response conversion
3 years ago
Jonas Platte
c28eba1e5b
Bump ruma
3 years ago
Jonas Platte
08ca573df0
Remove explicit setting of content-type header
...
`try_into_http_request` takes care of this already.
3 years ago
Jonas Platte
61c522dcc0
Fix formatting
3 years ago
Jonas Platte
b76af682a6
Fix clippy warnings
3 years ago
Timo Kösters
3c3062a316
improvement: optimize room directory
3 years ago
Jonas Platte
2e1d7d12ca
Refactor usage of CanonicalJsonValue
3 years ago
Jonas Platte
c2b72773d5
Fix clippy warning
3 years ago
Timo Kösters
58463bba93
feat: send invites over federation
3 years ago
Timo Kösters
3dfc245633
fix: send transaction retry code
3 years ago
Timo Kösters
2fc1ec2ad5
fix: logging
3 years ago
Timo Kösters
226045ea4b
improvement: warning on misconfigured reverse proxy
3 years ago
Jonas Platte
026af6b1a6
Improve formatting of ruma_wrapper.rs
3 years ago
Jonas Platte
d8b484beed
Upgrade ruma
3 years ago
Jonas Platte
e72fd44bb5
Refactor send_request for appservices
3 years ago
Jonas Platte
7067d7acae
Refactor Responder implementation for RumaResponse
3 years ago
Timo Kösters
23f81bfaf7
chore: update dependencies
3 years ago
Timo Kösters
bb234ca002
fix: only show one typing event per user
3 years ago
Timo Kösters
6e84d317b2
improvement: update ruma
3 years ago
Timo Kösters
1f84013b2a
feat: verify signatures for incoming requests
3 years ago
Timo Kösters
8c72909bb8
Merge branch 'tls-name' into 'master'
...
Validate TLS certificates according to Matrix spec
See merge request famedly/conduit!60
3 years ago
Timo Kösters
2f440e644d
fix: clippy
3 years ago
Timo Kösters
71ed1b295a
feat: /devices route
3 years ago
Timo Kösters
e815486030
fix: don't allow inviting other users (not implemented yet)
3 years ago
Gabriel Souza Franco
ed253e236c
chore: document FedDest, fix tests
3 years ago
Timo Kösters
d4e0ba245b
fix: bug when fetching events over federation
3 years ago
Timo Kösters
eedac4fd96
feat: make_join, send_join and /directory
3 years ago
Gabriel Souza Franco
7faa021ff5
chore: code formatting and cleanup
3 years ago
Gabriel Souza Franco
e73de2317e
fix: verify tls cert for non-conformant servers
3 years ago
Gabriel Souza Franco
b4c001de2f
chore: cleanup string-based code in find_actual_destination
3 years ago
Gabriel Souza Franco
0b56589dce
feat: add handling of tls cert for delegated hosts
3 years ago
Timo Kösters
bc98425dfe
improvement: use invite state as hints to what servers to ask for joining
3 years ago
Timo Kösters
001d8dc257
fix: don't do expensive operation on local /send
3 years ago
Timo Kösters
c1953efa6b
chore: code cleanup
3 years ago
Timo Kösters
abddfc2d2a
Merge remote-tracking branch 'famedly/master' into develop
3 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)
3 years ago
Timo Kösters
8b40e0a85f
improvement: fetch signing keys in parallel when joining a room
3 years ago
Timo Kösters
5049d0e01b
improvement: check signatures on join
3 years ago
Timo Kösters
b4f79b77ba
feat: reject invites over federation
3 years ago
Timo Kösters
662a0cf1df
improvement: better and more efficient message count calculation
3 years ago
Timo Kösters
1dc85895a7
fix: show warning for invalid user ids
3 years ago
Timo Kösters
a961732f5f
fix: overflow
3 years ago
Timo Kösters
a8231eef25
fix: alias parsing
3 years ago
Timo Kösters
8773e5013d
feat: incoming invites over federation
3 years ago
Timo Kösters
b0ea692706
fix: malformed pushrule error when event does not trigger any actions
3 years ago
Timo Kösters
588de12d79
fix: lost forward extremity
3 years ago
Timo Kösters
044e65afcc
fix: move back to sled stable
3 years ago
Timo Kösters
84f4ce73e5
fix: membership deserializing
3 years ago
Timo Kösters
f3f95a73d0
improvement: /event route
3 years ago
Jonas Platte
dc031fff95
Remove redundant calls to .iter() and .into_iter()
3 years ago
Jonas Platte
dbe8c2ce19
Remove lots of redundant string allocations
3 years ago
Jonas Platte
fe744c856f
Upgrade ruma
...
… and refactor push rule code along the way.
3 years ago
Timo Kösters
db7044a950
sytest test
3 years ago
Timo Kösters
cd4dc13731
fix: use correct room versions
3 years ago
Timo Kösters
c213769d9f
improvement: refactor state res and fix a few bugs in the process
3 years ago
Timo Kösters
16eed1d8c2
chore: get rid of warnings
3 years ago
Timo Kösters
e50f2864de
improvement: save state for send_join pdu
3 years ago
Timo Kösters
e305889b72
feat: room_account_data endpoints
3 years ago
Timo Kösters
1d00a8c41f
improvement: better logging
...
Use CONDUIT_LOG or the log setting in the config
3 years ago
Timo Kösters
46d8f36a2c
fix: media thumbnail calculation and appservice detection
3 years ago
Timo Kösters
3ea7d162db
fix: various improvements and fixes
3 years ago
Timo Kösters
363c629faf
fix: signature key fetching, optimize push sending
3 years ago
Timo Kösters
d4c76f4654
chore: update ruma
3 years ago
Timo Kösters
f775c76d8a
chore: get rid of warnings
3 years ago
Gabriel Souza Franco
7b3fe88345
Send proper Host header in federation requests
3 years ago
Timo Kösters
5cb15551f3
improvement: use db compression
3 years ago
Timo Kösters
a0fa0ee7a0
fix: join appservice room with alias
3 years ago
Timo Kösters
a77fcd106e
feat: implement /state_ids and fix federation stuff
3 years ago
Timo Kösters
100307c936
improvement: optimize state storage
3 years ago
Timo Kösters
44425a903a
fix: multiple federation/pusher fixes
3 years ago
Timo Kösters
21f785d530
Merge branch 'correct-sendtxn' into pushers
3 years ago
Timo Kösters
6da40225bb
improvement: make state res actually work
3 years ago
Timo Kösters
643109309b
Merge branch 'incoming-pdu' into 'master'
...
fix: don't accept incoming pdus if we know about them already
Closes #70
See merge request famedly/conduit!33
3 years ago
Rudi Floren
4027cbd01d
Fix various clippy errors
3 years ago
Rudi Floren
6309506a48
Allow suspicious_else_formatting
...
This is probably unfixable because it is caused by macros
3 years ago
Devin Ragotzy
0d55964d24
Run nightly cargo fmt
3 years ago
Devin Ragotzy
d0df8b495c
Merge remote-tracking branch 'upstream/master' into correct-sendtxn
3 years ago
Devin Ragotzy
e239014fa3
Query for the correct server
3 years ago
Timo Kösters
1ce00f90fe
fix: don't accept incoming pdus if we know about them already
3 years ago
Timo Kösters
bd6507eafb
Merge branch 'valkum-master-patch-25423' into 'master'
...
Make clippy happy (needless-return, etc.)
See merge request famedly/conduit!23
3 years ago
Rudi Floren
231c6032f4
Make clippy happy (needless-return, etc.)
3 years ago
Timo Kösters
3e274d7d2c
Merge branch 'valkum/conduit-update_rocket' into 'master'
...
update dependencies
See merge request famedly/conduit!32
3 years ago
Timo Kösters
105f893cf3
chore: bump other dependencies to make it work
3 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
3 years ago
Rudi Floren
f4039902d8
Bump Rocket to current HEAD
3 years ago