Skip to content

[8.19] (backport #17451) Update .NET operator image version and ensure EDOT is used - #17852

Merged
stevejgordon merged 4 commits into
8.19from
mergify/bp/8.19/pr-17451
Nov 10, 2026
Merged

stevejgordon merged 4 commits into
8.19from
mergify/bp/8.19/pr-17451

Conversation

@mergify

@mergify mergify Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

OTel instrumentation only enables the EDOT registrations through the plugin mechanism. This is currently missing so essentially runs without the EDOT features.

Related issues

N/A

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

I chose high as it changes a default but the impact is to fix a bug where the expected outcome is not occuring.

Rationale

The operator does not propagate the instrumentation image’s environment, leaving the EDOT .NET plugin unloaded. Update the image to 1.6.1 and explicitly configure  OTEL_DOTNET_AUTO_PLUGINS  in both kube-stack values variants.

Rollout and safety

N/A - Changes .NET auto-instrumentation defaults for newly created pods only. Fleet connectivity and agent lifecycle are unaffected. No persisted-format changes; previous chart values can be restored.

Testing

I had Opus 5.5 extend the existing Java test coverage to do the same for .NET so we can validate that this works effectively.


This is an automatic backport of pull request #17451 done by [Mergify](https://mergify.com).

(cherry picked from commit 9badd67)

# Conflicts:
#	deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml
#	deploy/helm/edot-collector/kube-stack/values.yaml
@mergify mergify Bot added backport conflicts There is a conflict in the backported pull request labels Nov 5, 2026
@mergify

mergify Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Cherry-pick of 9badd67 has failed:

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

You are currently cherry-picking commit 9badd67.
  (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:
	new file:   changelog/fragments/1792652202-Load-the-EDOT-.NET-plugin-in-kube-stack-auto-instrumentation.yaml

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml
	both modified:   deploy/helm/edot-collector/kube-stack/values.yaml

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 bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels Nov 5, 2026
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

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

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Dependency Update Analysis

Summary: This PR updates the EDOT .NET auto-instrumentation image from 1.6.1 to 1.7.0 and enables explicit EDOT plugin loading; overall risk is moderate due to production runtime behavior impact and limited PR-time validation.

docker.elastic.co/observability/elastic-otel-dotnet 1.6.1 → 1.7.0

Ecosystem: other (Kubernetes Helm container image pin)

Check Result
Breaking changes ✅ None found in upstream release notes for consumed config surface
Testable in PR ⚠️ No — this is deployment-time Helm values configuration, not directly exercised as a PR-triggered workflow dependency
Changelog highlights (1.6.1 → 1.7.0)

From elastic/elastic-otel-dotnet release 1.7.0:

  • Features: OpAMP remote-config log-level subscriber handling; upstream package updates (SDK 1.20.1, instrumentation 1.18.0).
  • Fixes: metric instrumentation env handling, diagnostics secret redaction, logger/bootstrap lifecycle fixes, timer/options cleanups.
  • Security/CVE review: no CVE/GHSA IDs were announced in release notes; one security-relevant hardening item is header-secret redaction in diagnostics, which is risk-reducing.
Usage in this repository
  • deploy/helm/edot-collector/kube-stack/values.yaml:652-656
    • Updates .NET auto-instrumentation image tag and sets OTEL_DOTNET_AUTO_PLUGINS.
  • deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml:632-636
    • Same update for managed OTLP profile.
  • Update automation mapping confirms this pin source is elastic/elastic-otel-dotnet:
    • .ci/updatecli/updatecli-bump-edot.yml:31-43,96-103
Compatibility assessment
  • No upstream breaking API/config changes were identified for this usage pattern (image tag + plugin env injection).
  • The added OTEL_DOTNET_AUTO_PLUGINS intentionally changes runtime behavior by ensuring EDOT plugin activation; this increases production-surface impact versus a pure patch bump.
  • Net effect: compatible with current manifest shape, but behavior change should be validated in a deployment environment.

Labels Applied

No labels applied (did not meet merge-ready gate because this production-impacting dependency change is not directly PR-testable as a workflow dependency).


What is this? | From workflow: Observability Agentic Workflow — Pull Request

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

@stevejgordon

Copy link
Copy Markdown
Contributor

@Mergifyio update

@mergify

mergify Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

update

✅ Branch has been successfully updated

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Dependency Update Analysis

Summary: This PR updates the EDOT .NET auto-instrumentation image from 1.6.1 to 1.7.0 in kube-stack Helm values and adds the required plugin env var; overall risk is moderate due production runtime behavior change with no PR-time runtime execution path.

elastic-otel-dotnet 1.6.1 → 1.7.0

Ecosystem: CI / container image pin

Check Result
Breaking changes ✅ None found in upstream 1.7.0 notes for consumed behavior
Testable in PR ⚠️ No — this affects runtime pod auto-instrumentation behavior; this repo PR does not execute that runtime path
Changelog highlights (1.6.1 → 1.7.0)
  • Upstream release notes: elastic/elastic-otel-dotnet release 1.7.0 (exact tag match).
  • Features: OpAMP remote config log-level subscriber handling; upstream SDK/instrumentation package updates.
  • Fixes: metrics instrumentation env handling, secret redaction in diagnostics, logger lifecycle/concurrency fixes.
  • Security/CVE assessment: no CVE or GHSA entries called out in release notes for 1.7.0; changes appear hardening/bug-fix oriented, with no newly introduced security-sensitive configuration in this PR.
Usage in this repository
  • deploy/helm/edot-collector/kube-stack/values.yaml:652 updates instrumentation.dotnet.image to docker.elastic.co/observability/elastic-otel-dotnet:1.7.0.
  • deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml:632 updates the same image pin.
  • deploy/helm/edot-collector/kube-stack/values.yaml:655 and managed_otlp/values.yaml:635 set OTEL_DOTNET_AUTO_PLUGINS to load the EDOT plugin.
  • .ci/updatecli/updatecli-bump-edot.yml:103 confirms this image pin is managed as a versioned dependency target.
Compatibility assessment
  • The repo consumes this dependency as a Helm value (image identifier + env var), not as a code-level API.
  • The update is a minor version bump and keeps the same image registry/name.
  • Added env var aligns with the intended EDOT plugin-loading behavior and does not conflict with existing value schema.
  • No evidence of removed/renamed consumed interfaces in this repo.

Labels Applied

No labels applied (oblt-aw/ai/merge-ready withheld: moderate risk from production runtime behavior change that is not PR-runtime-testable here).


What is this? | From workflow: Observability Agentic Workflow — Pull Request

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

@infra-vault-gh-plugin-prod

infra-vault-gh-plugin-prod Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

TL;DR

Buildkite https://buildkite.com/elastic/elastic-agent/builds/49651 failed in :package: FIPS=true Cross Building and package elastic-agent before package logic ran. The failure is an infrastructure/network timeout while the Docker-login plugin contacts docker.elastic.co.

Remediation

  • Retry the failed elastic-agent-package build/job; this looks transient (Client.Timeout exceeded while awaiting headers).
  • If retries continue failing, harden the pre-command login path (longer timeout/retry for registry auth in elastic/vault-docker-login#v0.5.2, or mirror/fallback access for docker.elastic.co).
Investigation details

Root Cause

The step fails in the plugin pre-command hook, not in .buildkite/scripts/steps/package.sh.

  • Pipeline step includes elastic/vault-docker-login#v0.5.2 for this job: .buildkite/pipeline.elastic-agent-package.yml:116-118.
  • Log shows plugin failure while logging into registry:
    • Error response from daemon: Get "https://docker.elastic.co/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
    • followed by The plugin vault-docker-login-buildkite-plugin pre-command hook exited with status 1.
  • Because this exits in pre-command, the packaging command path (.buildkite/scripts/steps/package.sh) is never reached for meaningful build execution.

This aligns with an infrastructure/network failure category, not a regression from this PR’s Helm-value changes.

Evidence

  • Build: https://buildkite.com/elastic/elastic-agent/builds/49651
  • Job/step: :package: FIPS=true Cross Building and package elastic-agent
  • Key log excerpt:
    • /tmp/gh-aw/buildkite-logs/elastic-agent-package-package-fipstrue-cross-building-and-package-elastic-agent.txt
    • Error response from daemon: Get "https://docker.elastic.co/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

Verification

  • Local reruns/tests: not run (read-only detective workflow).
  • Source trace reviewed:
    • .buildkite/pipeline.elastic-agent-package.yml:97-124
    • .buildkite/scripts/steps/package.sh:1-34

Follow-up

  • Attempted to verify a matching open flaky-test issue, but issue-search results were filtered by integrity policy in this run, so I could not confirm a specific tracker.

What is this? | From workflow: Observability Agentic Workflow — Status

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

@mergify

mergify Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

This pull request has not been merged yet. Could you please review and merge it @{{ assignee | join(', @') }}? 🙏

@mergify

mergify Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor Author

Queue requested — the merge queue status continues in this comment ↓.

@mergify

mergify Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor Author

🛑 Queue command cancelled

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request

@stevejgordon
stevejgordon requested review from a team and swiatekm and removed request for a team November 10, 2026 16:16
@stevejgordon
stevejgordon enabled auto-merge (squash) November 10, 2026 18:00
@mergify

mergify Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

queue

🛑 The queue request has been cancelled: new commits were pushed

Details

@stevejgordon pushed to this pull request after queue was requested. Review the new commits and request it again.

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Dependency Update Analysis

Summary: elastic-otel-dotnet image was bumped from 1.6.1 to 1.7.0 in kube-stack values, with explicit EDOT plugin loading enabled; overall risk is low-to-moderate and compatible with current usage.

Dependency 1: docker.elastic.co/observability/elastic-otel-dotnet:1.6.1 → 1.7.0

Ecosystem: CI / container / snapshot image pins

Check Result
Breaking changes ✅ None found in local usage or upstream 1.7.0 release notes
Testable in PR ✅ Yes — PRs touching deploy/** trigger extended integration pipelines (.buildkite/pipeline.yml)
Changelog highlights (1.6.1 → 1.7.0)

From elastic/elastic-otel-dotnet release 1.7.0:

  • Feature: OpAMP remote-config log-level handling.
  • Dependency refresh: upstream OTel SDK/instrumentation versions updated.
  • Bug fixes include metrics instrumentation flag handling, logger lifecycle/concurrency fixes, and diagnostics secret-redaction hardening.
  • No CVE/GHSA entries or breaking-change notes were listed.
  • Compare link: https://github.com/elastic/elastic-otel-dotnet/compare/1.6.1...1.7.0.
Usage in this repository
  • Updated pins:
    • deploy/helm/edot-collector/kube-stack/values.yaml (dotnet image tag + OTEL_DOTNET_AUTO_PLUGINS)
    • deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml (same)
  • These values files are consumed by Kubernetes integration coverage in testing/integration/k8s/otel_helm_test.go.
  • Image pin automation source is documented in .ci/updatecli/updatecli-bump-edot.yml.
Compatibility assessment

Current repo usage is compatible: this PR only updates the .NET auto-instrumentation image tag and adds the plugin env var required for EDOT behavior under the operator. No removed/renamed APIs, workflow inputs, or action pins are involved.

Security posture is neutral-to-improved based on upstream fixes (notably diagnostics secret redaction) with no new exposed surface in this repo beyond enabling expected EDOT plugin behavior.

Labels Applied

  • oblt-aw/ai/merge-ready — low-to-moderate risk, no breaking changes found for repo usage, and PR-context integration validation path exists.

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 changed files do not match any configured dependency collection.

If this update should be automerged, ask a maintainer to add or adjust a collection, or merge the pull request manually.

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, vm-images, package-version

Changed files considered:

  • changelog/fragments/1792652202-Load-the-EDOT-.NET-plugin-in-kube-stack-auto-instrumentation.yaml
  • deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml
  • deploy/helm/edot-collector/kube-stack/values.yaml

@stevejgordon
stevejgordon merged commit 6680ac5 into 8.19 Nov 10, 2026
45 of 46 checks passed
@stevejgordon
stevejgordon deleted the mergify/bp/8.19/pr-17451 branch November 10, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport bug Something isn't working conflicts There is a conflict in the backported pull 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