Repository navigation
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>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Codex Review Summary: ✅ CompletedThis 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. Walkthrough
Merge Risk:
|
Summary
Require an explicit audience policy when OAuth2 JWT validation is enabled on the HTTP or OpenTelemetry input. Previously, omitting
oauth2.allowed_audienceallowed a correctly signed token issued for another service to pass validation if it satisfied the remaining checks. This matters when multiple services trust the same issuer.Both inputs now reject that configuration at startup. With
oauth2.allowed_audienceset, the token’saudstring or one of its array entries must match the configured value. The change also fixes cleanup of configuration-owned strings when HTTP input initialization fails.Upgrade impact
This is a breaking configuration change for inputs that enable JWT validation and omit
oauth2.allowed_audience. Before upgrading, add the audience identifier your issuer assigns to the input. For example, if that identifier istelemetry-ingest, update the input as follows.oauth2.validate: true oauth2.issuer: https://issuer.example oauth2.jwks_url: https://issuer.example/keys +oauth2.allowed_audience: telemetry-ingestInputs that already specify a non-empty audience need no configuration change. To deliberately retain the previous behavior, set
oauth2.allow_any_audience: trueand omitoauth2.allowed_audience. This logs a startup warning. Configuring both options fails startup.Test results
The rebuilt HTTP input returned 401 for a correctly signed token whose audience differed from the configured value. The same token returned 201 with the explicit opt-out. Both inputs rejected missing, empty, and conflicting audience settings at startup.
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
New Features
Bug Fixes