Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swallow malformed messages on trigger bucket topics #215

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

phildobsontw
Copy link
Contributor

@phildobsontw phildobsontw commented Nov 28, 2024

Context

At the moment, we're vulnerable to poison pill attacks on our trigger bucket topics (i.e. twTasks.{service-name}.executeTask.{bucket-name}).

This issue will be resolved by detecting malformed messages when deserialising to JSON, and in these cases we will just log the error (including topic-partition and offset so that the issue can be looked into) but then continue processing rather than getting stuck in a retry-loop.

Checklist

@phildobsontw phildobsontw requested a review from a team as a code owner November 28, 2024 10:13
@phildobsontw phildobsontw force-pushed the swallow-malformed-messages branch 3 times, most recently from 5c5189d to 781a3fc Compare November 28, 2024 14:03
@phildobsontw phildobsontw force-pushed the swallow-malformed-messages branch from 781a3fc to b94f9c1 Compare December 20, 2024 14:34
@phildobsontw phildobsontw merged commit 269472f into master Dec 20, 2024
13 checks passed
@tw-peeterkarolin tw-peeterkarolin deleted the swallow-malformed-messages branch December 23, 2024 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants