Skip to content

fix: Limit nested form-data entry keys#6179

Open
elramen wants to merge 10 commits into
masterfrom
elramen-ingest-992
Open

fix: Limit nested form-data entry keys#6179
elramen wants to merge 10 commits into
masterfrom
elramen-ingest-992

Conversation

@elramen

@elramen elramen commented Jul 6, 2026

Copy link
Copy Markdown
Member

Limit nested form-data entry keys to 15. The alternative solution of removing update_nested_value's recursion does not suffice: dropping, serializing, and normalizing all still happen recursively - we need to limit the depth.

Fixes INGEST-992

@linear-code

linear-code Bot commented Jul 6, 2026

Copy link
Copy Markdown

INGEST-992

@elramen elramen marked this pull request as ready for review July 6, 2026 10:20
@elramen elramen requested a review from a team as a code owner July 6, 2026 10:20

@jjbayer jjbayer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dropping, serializing, and normalizing all still happen recursively

Isn't this true for all user-driven recursive data structures that we have?

Comment thread relay-server/src/processing/errors/errors/utils/formdata.rs Outdated
Comment thread relay-server/src/processing/errors/errors/utils/formdata.rs Outdated
Comment thread relay-server/src/processing/errors/errors/utils/formdata.rs Outdated
Comment thread relay-server/src/processing/errors/errors/utils/formdata.rs Outdated
Comment thread relay-server/src/processing/errors/errors/utils/formdata.rs Outdated
Comment thread relay-server/src/processing/errors/errors/utils/formdata.rs Outdated
Comment thread relay-server/src/processing/errors/errors/utils/formdata.rs
@elramen elramen requested a review from Dav1dde July 8, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants