Amazon S3: Mismatch when reading HTTP header from GCS - #8791
Conversation
|
Hey @PettitWesley, can we get this PR reviewed and merged? Currently, there is no GCS Output Plugin but this fix could help as a workaround to upload to GCS bucket meanwhile. |
sunhubs
left a comment
There was a problem hiding this comment.
why such a bug fix for function is not merged as soon as possible
|
@PettitWesley @sparrc @singholt @swapneils Bumping up for review |
|
still relevant and needed ! |
|
+1 for this |
4f44e42 to
64b59cb
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe HTTP client now matches selected headers only at CRLF-prefixed line boundaries. ChangesHTTP Client Header Lookup Fix
Estimated code review effort: 2 (Simple) | ~8 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
I can confirm that this bug is still present in 5.0.3. I rebased my branch on the commit of the release. |
64b59cb to
b739cb6
Compare
ffff2dc to
b739cb6
Compare
|
Can confirm, the bug is still present in fluentbit 5.0.9. Without this patch, fluentbit writing to a GCS bucket using the S3 output filter doesn't work. This patch needs to be merged. |
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
This commit includes the HTTP separator when looking for the header values in the response payload, to avoid mismatching header ending with the same name. See the linked issue for more info and example.
Fixes #8790
Testing
Before we can approve your change; please submit the following in a comment:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-testlabel to test for all targets (requires maintainer to do).Documentation
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.
Summary by CodeRabbit