docs: clarify max_request_size limiting federation #1706
No reviewers
Labels
No labels
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
Wont fix
old/ci/cd
old/rust
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity!1706
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "grgergo/continuwuity:docs-max_request_size"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Clarifies in the config that
max_request_sizeaffects federated media as well.Mostly because it took me 20 minutes to figure out why Firefox was opening a
.flacfile invim...Pull request checklist:
mainbranch, and the branch is named something other thanmain.myself, if applicable. This includes ensuring code compiles.
Question is whether that is what is actually intended or not (
.max_request_size?!)
Should max_request_size be concerned with incoming media too and not only uploads? It is not an intuitive behaviour, I would say.
@spaetz wrote in #1706 (comment):
This is a docs clarification request, but it is indeed intended that "a" request size limit applies everywhere. Without a limit, it's a security vulnerability.
For context: This max size was applied to all remote responses, excluding the federated
send_joinendpoint, to mitigate an attack vector that was actively being exploited, albeit unintentionally:37888fb670The intention was not that this would then cap remote media size too, however the followup change that allowed overriding it for media specifically was never made. For now, noting this restriction in the docs is probably the easiest solution.
Example config file needs regenerating (run
cargo build), otherwise looks fine7985a2e4b34c1638e495