Skip to content

Add extract payloads max depth - #414

Merged
marksmith merged 2 commits into
mainfrom
add-extract-payloads-max-depth
Oct 2, 2026
Merged

marksmith merged 2 commits into
mainfrom
add-extract-payloads-max-depth

Conversation

@marksmith

Copy link
Copy Markdown
Collaborator

This change guards against stack overflows during payload extraction, by capping the number of depth of recursion within arbitrarily nested request properties.

This defaults to 64 but is configurable using the Aikido::Zen.config.extract_payloads_max_depth configuration option.

Comment thread lib/aikido/zen/context.rb
File.join recursively joins nested string arrays, and can overflow
the stack given deeply nested arrays, as might occur when a query
parameter is an array.
@codecov

codecov Bot commented Oct 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Comment thread lib/aikido/zen/context.rb
@marksmith
marksmith merged commit 6ade3d9 into main Oct 2, 2026
40 of 41 checks passed
@marksmith
marksmith deleted the add-extract-payloads-max-depth branch October 2, 2026 11:16
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