Cap the ohttp key body size from directory - #1846
Merged
Merged
Conversation
Collaborator
Coverage Report for CI Build 33902922471Coverage increased (+0.006%) to 86.646%Details
Uncovered Changes
Coverage Regressions1 previously-covered line in 1 file lost coverage.
Coverage Stats
💛 - Coveralls |
benalleng
force-pushed
the
unbounded-key-res
branch
from
August 26, 2026 19:59
7d928e8 to
465c1dc
Compare
xstoicunicornx
requested changes
Aug 29, 2026
xstoicunicornx
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed with Opus 4.8 and Sol 5.6, compiled and unslopped the feedback as best I could. Please let me know if any of it is not quite right/applicable.
CLI follow-up found during review - handle OhttpKeysBodyTooLarge as a directory failure instead of as a relay failure (see 199412b).
benalleng
force-pushed
the
unbounded-key-res
branch
from
September 4, 2026 17:49
465c1dc to
622f302
Compare
This caps the key cofig fetch size from the directory to limit any malicious directory from sending oversized data on key fetch. Treat oversized keys as directory failures An oversized OHTTP key response originates from the directory, not the CONNECT relay. Mark the directory as failed and return instead of excluding each relay while retrying the same response. Co-authored-by: xstoicunicornx <xstoicunicornx@users.noreply.github.com>
benalleng
force-pushed
the
unbounded-key-res
branch
from
September 4, 2026 17:52
622f302 to
8fff253
Compare
xstoicunicornx
approved these changes
Sep 8, 2026
xstoicunicornx
left a comment
Collaborator
There was a problem hiding this comment.
ACK 8fff253
All feedback has been addressed including the follow up. Looks good.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This caps the key config fetch size from the directory to limit any malicious directory from sending oversized data on key fetch.
Coded with GLM-5.3
Pull Request Checklist
Please confirm the following before requesting review:
AI
in the body of this PR.