Skip to content

[9.5] (backport #18021) Add sigv4auth extension to EDOT Collector - #18031

Merged
andrzej-stencel merged 2 commits into
9.5from
mergify/bp/9.5/pr-18021
Nov 17, 2026
Merged

andrzej-stencel merged 2 commits into
9.5from
mergify/bp/9.5/pr-18021

Conversation

@mergify

@mergify mergify Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Related issues

Risk

  • Low: isolated change, no effect on Fleet connectivity, policy handling, or upgrades
  • Medium: changes existing behavior, but is feature flagged or a failure does not affect Fleet connectivity, policy handling, or upgrades
  • High: touches Fleet connectivity, policy application, upgrade/rollback, installation, or changes defaults for existing users

Rationale

Adds the sigv4auth extension 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

  • Added sigv4auth to internal/edot/otelcol/testdata/all-components.yml, exercised by TestStartCollector.
  • The extension resolves AWS credentials during config validation, so TestStartCollector now sets static AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY env vars to avoid falling back to the EC2 IMDS endpoint (which times out outside AWS).
  • go test ./otelcol/... ./cmd/... in internal/edot passes locally (macOS arm64).
  • Regenerated NOTICE.txt, NOTICE-fips.txt (mage notice) and internal/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).

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
@mergify
mergify Bot requested a review from a team as a code owner November 16, 2026 14:10
@mergify mergify Bot added backport conflicts There is a conflict in the backported pull request labels Nov 16, 2026
@mergify
mergify Bot requested review from blakerouse and removed request for a team November 16, 2026 14:10
@mergify mergify Bot added the backport label Nov 16, 2026
@mergify

mergify Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

Cherry-pick of 0f67383 has failed:

On branch mergify/bp/9.5/pr-18021
Your branch is up to date with 'origin/9.5'.

You are currently cherry-picking commit 0f67383.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   NOTICE-fips.txt
	modified:   NOTICE.txt
	new file:   changelog/fragments/1794820595-add-sigv4auth-extension.yaml
	modified:   internal/edot/README.md
	modified:   internal/edot/go.sum
	modified:   internal/edot/otelcol/run_nofips_test.go

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   internal/edot/go.mod
	both modified:   internal/edot/otelcol/components/default.go
	both modified:   internal/edot/otelcol/testdata/all-components.yml

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

@github-actions github-actions Bot added enhancement New feature or request Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels Nov 16, 2026
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@mergify

mergify Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is merged.

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Dependency Update Analysis

Summary: This PR adds two Go dependencies in internal/edot/go.mod (sigv4authextension and adaptivetailsamplingprocessor, both v0.164.1), but the patch currently includes unresolved merge-conflict markers, making the EDOT module unbuildable (overall risk: high).

Dependency 1: github.com/open-telemetry/opentelemetry-collector-contrib/extension/sigv4authextension (not present → v0.164.1)

Ecosystem: Go

Check Result
Breaking changes ⚠️ Found (PR content contains unresolved conflict markers; details below)
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:118 imports sigv4authextension.
  • internal/edot/otelcol/components/default.go:292 adds sigv4authextension.NewFactory().
  • internal/edot/otelcol/testdata/all-components.yml:43 adds sigv4auth config.
  • internal/edot/otelcol/testdata/all-components.yml:251 enables sigv4auth in service.extensions.
  • internal/edot/otelcol/run_nofips_test.go:22-25 sets 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-48
  • internal/edot/otelcol/components/default.go:289-293
  • internal/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 ⚠️ Found (same unresolved conflict markers in 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/**/*.go beyond 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.

@github-actions

Copy link
Copy Markdown
Contributor

TL;DR

This Buildkite run is failing due to unresolved merge-conflict markers left in EDOT files on commit ff569172d9ce88b1a135209630ee27f9c7773034, not a flaky test. Remove the conflict markers and keep the intended dependency/factory entries, then rerun CI.

Remediation

  • Resolve conflict markers in internal/edot/go.mod around lines 44-48 and keep valid require entries (including the intended sigv4authextension addition).
  • Resolve conflict markers in internal/edot/otelcol/components/default.go around lines 289-293 and keep valid extension factory entries.
  • Validate with: mage check:all, mage test:unit, and mage test:unitEdot.
Investigation details

Root Cause

One backport conflict was committed unresolved in two EDOT files:

  • internal/edot/go.mod:44-48 contains <<<<<<<, =======, >>>>>>>.
  • internal/edot/otelcol/components/default.go:289-293 contains <<<<<<<, =======, >>>>>>>.

These markers break Go parsing and explain all observed downstream failures (unit, edot-unit, and package jobs).

Evidence

  • Build: https://buildkite.com/elastic/elastic-agent/builds/50061
  • Job/step: check-ci
    • internal/edot/otelcol/components/default.go:316:3: expected '}', found 'EOF'
  • Job/step: Unit tests - Ubuntu 22.04 (same signature across most failed jobs)
    • go: errors parsing go.mod:
    • go.mod:44: malformed module path "<<<<<<<": invalid char '<'
    • go.mod:45: usage: require module/path v1.2.3
    • go.mod:48: usage: require module/path v1.2.3

Verification

  • Confirmed conflict markers directly in the failing commit content for both files above.
  • Local tests were not run against that exact commit in this workspace.

Follow-up

After 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>
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Dependency Update Analysis

Summary: This PR adds one Go dependency (sigv4authextension at v0.164.1) to EDOT Collector; based on local usage and upstream v0.164.1 notes, overall risk is low-to-moderate and merge-ready.

Dependency 1: github.com/open-telemetry/opentelemetry-collector-contrib/extension/sigv4authextension (not present → v0.164.1)

Ecosystem: Go

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-contrib v0.164.1 is 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
  • 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
  • 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; sigv4auth is 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.

@github-actions

Copy link
Copy Markdown
Contributor

Automerge skipped

Automerge skipped this pull request because the all-files collection is not enabled for this repository.

To allow automerge for this kind of update, enable the matching collection under Automerge on the Control Plane Dashboard (the oblt-aw/dashboard issue). See Automerge dependency collections for what each collection covers.

See Opt in or opt out for how to enable or disable Automerge collections on the Control Plane Dashboard.

Collections currently enabled for automerge: github-actions, pre-commit, update-beats, updatecli, vm-images, package-version

Changed files considered:

  • NOTICE-fips.txt
  • NOTICE.txt
  • changelog/fragments/1794820595-add-sigv4auth-extension.yaml
  • internal/edot/README.md
  • internal/edot/go.mod
  • internal/edot/go.sum
  • internal/edot/otelcol/components/default.go
  • internal/edot/otelcol/run_nofips_test.go
  • internal/edot/otelcol/testdata/all-components.yml

@andrzej-stencel
andrzej-stencel merged commit 49bd6d9 into 9.5 Nov 17, 2026
60 checks passed
@andrzej-stencel
andrzej-stencel deleted the mergify/bp/9.5/pr-18021 branch November 17, 2026 10:35
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

History

cc @andrzej-stencel

andrzej-stencel added a commit to andrzej-stencel/elastic-agent that referenced this pull request Nov 17, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport conflicts There is a conflict in the backported pull request enhancement New feature or request oblt-aw/ai/merge-ready Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant