Skip to content

Fail closed during interception#178

Draft
lsd-cat wants to merge 2 commits into
mainfrom
fail-closed
Draft

Fail closed during interception#178
lsd-cat wants to merge 2 commits into
mainfrom
fail-closed

Conversation

@lsd-cat
Copy link
Copy Markdown
Member

@lsd-cat lsd-cat commented May 15, 2026

Attempts to implement fixes for #176. Basically, while I hope we've fixed the race conditions, the underlying problems is also that on throws the default behavior is to pass the request or content through. I think we should rather always drop in case of WEBCAT errors. In that way, if someone defies our logic, they are stuck with a DoS instead of a bypass.

The first commit here implements this only for the streamFilter, while similar behavior should be applied to the request interceptor and the headers validator. The alternative to one big try catch is a wrapper function, but I find that less readable. Curious if that looks reasonable to you @jupenur and in case I'll improve coverage before being ready.

@jupenur
Copy link
Copy Markdown
Member

jupenur commented May 15, 2026

Nice! Looks like a solid approach, no objections from me.

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.

2 participants