Repository navigation
oauth2_jwt: mitigate leaks on duplicated JWT members - #12605
Conversation
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Fixed both leaks in flb_oauth2_jwt.c:444. Duplicate JWT
kid/algand JWKSkid/n/efields now fail before overwriting allocations. Allocation failures also clean up safely.Added regression coverage. 33 integration cases and all three focused CTest targets passed, including valid-token recovery.
Commands run against the rebuilt binary:
Memory checker: not run—Valgrind and macOS Leaks are unavailable on this Windows host. Curl-based HTTP/2 cases were excluded because installed curl lacks HTTP/2 support; gRPC tests passed.
Enter
[N/A]in the box, if an item is not applicable to your change.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
kidoralgheader fields, and JWKS keys with duplicatekid,n, orefields. Fields with non-string values are also rejected.