-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
in_tail: Fix line skipping issue in receive_lines method #4530
Conversation
Before this patch, long lines could cause breakdowns in fluentd, potentially posing a vulnerability. With this patch, max_line_size will be integrated into the FIFO, enabling the system to skip lines exceeding the maximum size before executing receive_lines. Co-authored-by: yugeeklab <[email protected]> Co-authored-by: moggaa <[email protected]> Signed-off-by: been.zino <[email protected]>
Co-authored-by: Daijiro Fukuda <[email protected]> Signed-off-by: been.zino <[email protected]>
Co-authored-by: Daijiro Fukuda <[email protected]> Signed-off-by: been.zino <[email protected]>
Co-authored-by: Daijiro Fukuda <[email protected]> Signed-off-by: been.zino <[email protected]>
Co-authored-by: Daijiro Fukuda <[email protected]> Signed-off-by: been.zino <[email protected]>
Co-authored-by: Daijiro Fukuda <[email protected]> Signed-off-by: been.zino <[email protected]>
Co-authored-by: Daijiro Fukuda <[email protected]> Signed-off-by: been.zino <[email protected]>
Signed-off-by: been.zino <[email protected]>
Signed-off-by: Daijiro Fukuda <[email protected]>
Signed-off-by: Daijiro Fukuda <[email protected]>
Signed-off-by: Daijiro Fukuda <[email protected]>
@yugeeklab I have pushed the commits for #4491 (comment). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! LGTM.
I will wait a bit to merge for other maintainers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically it look good to me, thanks for your contribution!
I've added some nitpick comments about logging.
In addition, it would be happy if we can simplify FIFO#read_lines
to make easy to read although I have no idea about it yet.
What do you think about these my comments? @daipom
Signed-off-by: Daijiro Fukuda <[email protected]> Co-authored-by: Takuro Ashie <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks!
Thanks for your comments! About the simplification, I have the same opinion. I'll think about it for a bit. |
Which issue(s) this PR fixes:
Fixes #4494
recoverd from #4491
What this PR does / why we need it:
Before this patch, long lines could cause breakdowns in fluentd, potentially posing a vulnerability. With this patch, max_line_size will be integrated into the FIFO, enabling the system to skip lines exceeding the maximum size before executing receive_lines.
Docs Changes:
Release Note: