Repository navigation
[Otel] Beatsauthextension: respect continue_on_error in Validate - #53811
Conversation
Assisted-by: gpt-5.6-terra-high
…s-auth-continue-on-error
🤖 GitHub commentsJust comment with:
|
There was a problem hiding this comment.
🟢 Approval recommended
The focused fix reuses the existing startup fallback and includes regression coverage for both settings, with no unresolved findings.
0 open findings
What changed in this PR
Fixes #53800 by allowing beatsauth transport configuration errors to reach the existing startup fallback when continue_on_error is enabled.
Changes:
- Defers configuration errors to startup when enabled, preserving default validation behavior otherwise.
- Adds regression tests for invalid TLS certificates with both settings.
| File | Description |
|---|---|
x-pack/otel/extension/beatsauthextension/config.go |
Honors ContinueOnError during configuration validation. |
x-pack/otel/extension/beatsauthextension/authenticator_test.go |
Tests TLS validation with and without error continuation. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
Assisted-by: gpt-5.6-terra-high
TL;DR
Remediation
Investigation detailsRoot CauseThe Evidence
Validation
Follow-up
What is this? | From workflow: PR Actions Detective Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
andrzej-stencel
left a comment
There was a problem hiding this comment.
I agree with the above Craig's comment. We should not need the validateErr field on the config. Instead, return nil from Validate straight away if continue_on_error is true and validate separately in Start.
|
I've disabled automerge until the comments are resolved. |
Assisted-by: gpt-5.6-terra-high
cmacknz
left a comment
There was a problem hiding this comment.
Thanks, this now defers when the error is reported allowing the collector to start as we want.
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
|
@mergify backport 9.6 |
✅ Backports have been createdDetails
No pull request needed: No commits between 9.6 and mergify/bp/9.6/pr-53811 |
Proposed commit message
Checklist
I have made corresponding changes to the documentationI have made corresponding change to the default configuration filesstresstest.shscript to run them under stress conditions and race detector to verify their stability.I have added an entry in./changelog/fragmentsusing the changelog tool.## Disruptive User ImpactHow to test this PR locally
Unit tests
Manual test
1. Build the Beats OTel Collector
cd x-pack/otel mage buildOtelDistro2. Create a log file
3. Write the Collector configuration
/tmp/beatsauth-continue-on-error.yaml
4. Start the Collector
cd distributions/beats-otel-collector/_build/ ./beats-otel-collector --config /tmp/beatsauth-continue-on-error.yamlExpected: the Collector starts despite
tcp://es.example:9200being invalid and remains running. Startup logs exactly one warning containinginvalid endpoint: URL scheme must be http or https; thefilelogrecord triggers an Elasticsearch exporter failure with the same error.Related issues
beatsauth:continue_on_errordoes not cover configuration validation errors #53800## Use cases## Screenshots## Logs