Repository navigation
[9.5] (backport #18021) Add sigv4auth extension to EDOT Collector - #18031
Conversation
Add the sigv4authextension from OpenTelemetry Collector Contrib (v0.164.1) to the EDOT Collector, allowing exporters to sign requests with AWS Signature Version 4. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 0f67383) # Conflicts: # internal/edot/go.mod # internal/edot/otelcol/components/default.go # internal/edot/otelcol/testdata/all-components.yml
|
Cherry-pick of 0f67383 has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
|
This pull request is merged. |
Dependency Update AnalysisSummary: This PR adds two Go dependencies in Dependency 1:
|
| Check | Result |
|---|---|
| Breaking changes | |
| Testable in PR | ✅ Yes (Go tests can run in PR context) |
Changelog highlights (not present → v0.164.1)
From upstream open-telemetry/opentelemetry-collector-contrib release v0.164.1: patch release with bugfix for incorrect pkg/ottl / k8sattributesprocessor module requirements (#52356). No CVE/GHSA entries were listed in the release notes.
Usage in this repository
internal/edot/otelcol/components/default.go:118importssigv4authextension.internal/edot/otelcol/components/default.go:292addssigv4authextension.NewFactory().internal/edot/otelcol/testdata/all-components.yml:43addssigv4authconfig.internal/edot/otelcol/testdata/all-components.yml:251enablessigv4authinservice.extensions.internal/edot/otelcol/run_nofips_test.go:22-25sets AWS env vars for test-time credential resolution.
Compatibility assessment
Upstream change itself looks low-risk, but this PR currently introduces unresolved conflict markers in modified files:
internal/edot/go.mod:44-48internal/edot/otelcol/components/default.go:289-293internal/edot/otelcol/testdata/all-components.yml:37-46
This is currently build-breaking for EDOT. Repro: cd internal/edot && go test ./otelcol -run TestStartCollector -count=1 fails with go.mod:44: malformed module path "<<<<<<<".
Dependency 2: github.com/open-telemetry/opentelemetry-collector-contrib/processor/adaptivetailsamplingprocessor (not present → v0.164.1)
Ecosystem: Go
| Check | Result |
|---|---|
| Breaking changes | go.mod) |
| Testable in PR | ✅ Yes (Go tests can run in PR context) |
Changelog highlights (not present → v0.164.1)
Same upstream release context (v0.164.1): patch bugfix release; no CVE/GHSA advisories listed in release notes.
Usage in this repository
- Added in
internal/edot/go.mod:47. - No runtime/code usage found in
internal/edot/**/*.gobeyond the module declaration.
Compatibility assessment
No direct call-site compatibility concerns identified for this processor yet, but the unresolved conflict markers in this PR make the module invalid before compatibility can be meaningfully exercised.
Labels Applied
No labels applied (did not apply oblt-aw/ai/merge-ready because current risk is high due build-breaking unresolved merge markers).
What is this? | From workflow: Observability Agentic Workflow — Pull Request
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.
TL;DRThis Buildkite run is failing due to unresolved merge-conflict markers left in EDOT files on commit Remediation
Investigation detailsRoot CauseOne backport conflict was committed unresolved in two EDOT files:
These markers break Go parsing and explain all observed downstream failures (unit, edot-unit, and package jobs). Evidence
Verification
Follow-upAfter conflict resolution, rerun the same Buildkite pipeline; this should clear the 19 failures tied to these parse errors. What is this? | From workflow: Observability Agentic Workflow — Status Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
Drop components that are not on 9.5 (oauth2clientauthextension, adaptivetailsamplingprocessor) from the conflict hunks and keep only the sigv4auth additions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dependency Update AnalysisSummary: This PR adds one Go dependency ( Dependency 1:
|
| Check | Result |
|---|---|
| Breaking changes | ✅ None found in repo-consumed interfaces |
| Testable in PR | ✅ Yes — exercised by collector startup test path in PR context |
Changelog highlights (not present → v0.164.1)
- Upstream release
open-telemetry/opentelemetry-collector-contribv0.164.1is a patch release. - Noted fix: OTTL module dependency correction (
pkg/ottl/k8sattributesprocessor, #52356). - No CVEs/GHSAs listed in the upstream release notes for this version.
- Security impact for this repo: this PR adds optional SigV4 request-signing capability; no evidence of new vulnerable-by-default behavior in existing pipelines.
Usage in this repository
- Added as direct module dependency:
internal/edot/go.mod:44. - Added to component factory registration:
- import:
internal/edot/otelcol/components/default.go:118 - factory wiring:
internal/edot/otelcol/components/default.go:289
- import:
- Enabled in test fixture config:
- extension block:
internal/edot/otelcol/testdata/all-components.yml:37 - service extension list:
internal/edot/otelcol/testdata/all-components.yml:244
- extension block:
- Test adjustment for credential resolution behavior:
internal/edot/otelcol/run_nofips_test.go:22-26
Compatibility assessment
- This is an additive dependency (no major-version path migration, no replacement/removal of existing modules).
- Existing extension set remains intact;
sigv4authis newly available and used only when configured. - Test updates explicitly set AWS env vars to avoid metadata-chain side effects during config validation, which aligns with expected extension behavior.
- No incompatible API/input changes found for current EDOT Collector usage.
Labels Applied
oblt-aw/ai/merge-ready— applied (risk low-to-moderate, no breaking usage impact, ecosystem checks passed).
What is this? | From workflow: Observability Agentic Workflow — Pull Request
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.
Automerge skippedAutomerge skipped this pull request because the To allow automerge for this kind of update, enable the matching collection under Automerge on the Control Plane Dashboard (the See Opt in or opt out for how to enable or disable Automerge collections on the Control Plane Dashboard. Collections currently enabled for automerge: Changed files considered:
|
💚 Build Succeeded
History
|
Bump sigv4authextension, added on 9.5 by elastic#18031, to v0.165.1 to match the other Contrib components. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Related issues
Risk
Rationale
Adds the
sigv4authextension from OpenTelemetry Collector Contrib to the EDOT Collector. It lets HTTP exporters sign requests with AWS Signature Version 4, which is needed to send data to AWS-managed endpoints such as Amazon Managed Service for Prometheus.The extension is added at v0.164.1 to match the other contrib components currently in
internal/edot/go.mod.Rollout and safety
N/A: the extension is only active when a user explicitly configures it in a collector configuration. No defaults change.
Testing
sigv4authtointernal/edot/otelcol/testdata/all-components.yml, exercised byTestStartCollector.TestStartCollectornow sets staticAWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEYenv vars to avoid falling back to the EC2 IMDS endpoint (which times out outside AWS).go test ./otelcol/... ./cmd/...ininternal/edotpasses locally (macOS arm64).NOTICE.txt,NOTICE-fips.txt(mage notice) andinternal/edot/README.md(mage otel:readme).🤖 Generated with Claude Code
This is an automatic backport of pull request #18021 done by [Mergify](https://mergify.com).