Skip to content

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

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

stevejgordon merged 3 commits into
9.5from
mergify/bp/9.5/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/9.5/pr-17451
Your branch is up to date with 'origin/9.5'.

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)

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Warning

Threat Detection Engine Failure — The analysis engine could not complete. This is a tooling failure, not a security finding.

What happened

The threat detection engine failed to produce results.

Review the workflow run logs for details.

Dependency Update Analysis

Summary: This PR updates the EDOT .NET auto-instrumentation image from 1.6.0 to 1.7.0, but the backport introduced unresolved merge-conflict markers in both values files, creating a breaking configuration risk (overall risk: high).

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

Ecosystem: CI / container / snapshot image pin

Check Result
Breaking changes ⚠️ Found (details below)
Testable in PR ⚠️ Limited — consumed by k8s integration tests, not a lightweight PR-path validation
Changelog highlights (1.6.0 → 1.7.0)

From elastic/elastic-otel-dotnet release 1.7.0:

  • Features: OpAMP log-level subscriber behavior; upstream package bumps (SDK 1.20.1, instrumentation 1.18.0).
  • Fixes: metrics instrumentation flag handling, header-secret redaction in diagnostics, logger/timer/ownership stability fixes.
  • Security/CVE signal: no explicit CVE/GHSA IDs listed in release notes; one security-relevant hardening item is secret redaction in diagnostics.
Usage in this repository

Direct image pin usage:

  • deploy/helm/edot-collector/kube-stack/values.yaml:685-690
  • deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml:680-685

These values files are consumed by k8s integration coverage, e.g.:

  • testing/integration/k8s/otel_helm_test.go:64,164,231 (deploys using these values files)
Compatibility assessment

The intended update (image bump + OTEL_DOTNET_AUTO_PLUGINS env) appears compatible with current repo usage (image reference + values consumption).

However, both changed values files currently contain unresolved merge-conflict markers:

  • deploy/helm/edot-collector/kube-stack/values.yaml:684-692
  • deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml:679-687

That is a breaking config state and can invalidate YAML/Helm processing for these deployment profiles.

Labels Applied

No labels applied (oblt-aw/ai/merge-ready not applied due high-risk/breaking config state).


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

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

@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.0 to 1.7.0 (plus enables the EDOT plugin env var in chart values); overall risk is moderate because it is production-impacting chart behavior and not directly testable in PR workflows.

elastic-otel-dotnet 1.6.0 → 1.7.0

Ecosystem: other (Helm chart container image pin)

Check Result
Breaking changes ✅ None found in consumed configuration surface
Testable in PR ⚠️ No — related chart release workflows run on workflow_dispatch / release (not pull_request)
Changelog highlights (v1.6.0 → v1.7.0)
  • 1.6.1: operator Dockerfile update.
  • 1.7.0 highlights: upstream package updates (SDK 1.20.1, instrumentation 1.18.0), multiple bug fixes, including redaction of header secrets in diagnostics.
  • No CVE IDs/GHSA advisories were listed in the release notes reviewed.
  • Security posture appears improved or unchanged for this repo usage (notably stronger secret redaction; no new privileged capability noted in release notes).
Usage in this repository
  • Runtime values updated in:
    • deploy/helm/edot-collector/kube-stack/values.yaml
    • deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml
  • Both files now pin docker.elastic.co/observability/elastic-otel-dotnet:1.7.0 and set:
    • OTEL_DOTNET_AUTO_PLUGINS=Elastic.OpenTelemetry.AutoInstrumentationPlugin, Elastic.OpenTelemetry.AutoInstrumentation
  • Update automation mapping exists in .ci/updatecli/updatecli-bump-edot.yml.
Compatibility assessment
  • Repo usage is image-pin/config only (no in-repo .NET API coupling to this component).
  • The new plugin env var explicitly enables the EDOT plugin, matching the PR intent and reducing risk of defaulting to upstream-only behavior.
  • No evidence of removed/renamed consumed interfaces in the chart values changed here.
  • Residual risk remains from production runtime behavior change that is not exercised by PR-triggered workflows.

Labels Applied

No labels applied (risk assessed as moderate due production-impacting runtime change with limited PR-context testability).


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

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

TL;DR

check-ci failed because the working tree ended with an unexpected beats submodule pointer change (48d0117... -> 82884af...), so check-no-changes exited non-zero. This does not appear to come from the PR commits themselves and is likely a checkout/environment mutation during CI.

Remediation

  • Retry the Buildkite build once to rule out transient submodule workspace contamination.
  • If it reproduces, add a focused diagnostic step before check-no-changes (for this pipeline) to capture when beats changes, e.g. git submodule status beats && git --no-pager diff -- beats after each major check-ci phase.
  • Keep PR code unchanged unless a reproducible step is found that mutates the submodule.
Investigation details

Root Cause

The failing step is make check-ci ending at check-no-changes. Logs show only one modified path: the beats git submodule entry.

The PR head commit (e839ea8a4400e4f2f8700810a54f821fbec1e8a8) modifies only:

  • deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml
  • deploy/helm/edot-collector/kube-stack/values.yaml

No PR commit in this backport touches the beats gitlink, so the submodule change is most likely introduced during CI execution rather than by the authored diff.

Evidence

  • Build: https://buildkite.com/elastic/elastic-agent/builds/49641
  • Job/step: check-ci (.buildkite/scripts/steps/check-ci.sh)
  • Key log excerpt:
    • diff --git a/beats b/beats
    • -Subproject commit 48d0117e5b74252f80b1a4d2e2b8609c019efb1e
    • +Subproject commit 82884af399feaa4be3a9936a3e1760250b29365a
    • Error: some files are not up-to-date ... Modified: [beats]

Verification

  • Not run (read-only detective workflow).

Follow-up

  • I checked for prior detective-comment duplication: prior visible detective output on this PR reported unresolved YAML conflict markers (earlier build), which is a different failure mode.
  • I attempted to check for matching flaky-test issue references, but issue-content access is integrity-restricted in this run.

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

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

@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.0 to 1.7.0 in kube-stack defaults and adds OTEL_DOTNET_AUTO_PLUGINS; overall risk is moderate due to production runtime behavior change with limited PR-time validation.

elastic-otel-dotnet 1.6.0 → 1.7.0

Ecosystem: other (Helm runtime container image pin)

Check Result
Breaking changes ✅ None found in consumed configuration surface
Testable in PR ⚠️ No — release workflows for Helm charts are workflow_dispatch / release (and scheduled bump automation), so this runtime path is not directly exercised by PR triggers
Changelog highlights (1.6.0 → 1.7.0)

From elastic/elastic-otel-dotnet releases:

  • 1.6.1: operator Dockerfile update.
  • 1.7.0: bug fixes (including logger lifecycle/concurrency fixes), config handling fixes, and redaction of header secrets in diagnostics; upstream package updates (SDK/instrumentation versions).
  • No explicit breaking-change/deprecation notes in release entries.
  • No explicit CVE/GHSA IDs in the release notes reviewed.

Security/CVE-focused assessment:

  • The redaction fix reduces accidental secret exposure risk in diagnostics.
  • No release-note evidence of newly introduced insecure defaults.
  • This PR additionally enables the EDOT plugin explicitly via env var, which changes runtime behavior as intended; no new external permission scope is introduced in this diff.
Usage in this repository

Updated usage points:

  • deploy/helm/edot-collector/kube-stack/values.yaml:684-688
  • deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml:679-683

Both set:

  • image tag: docker.elastic.co/observability/elastic-otel-dotnet:1.7.0
  • env var: OTEL_DOTNET_AUTO_PLUGINS=Elastic.OpenTelemetry.AutoInstrumentationPlugin, Elastic.OpenTelemetry.AutoInstrumentation

No other references to elastic-otel-dotnet were found in this repo.

Compatibility assessment
  • The repository consumes this dependency as a Helm value (image tag + env config), not as a code-level API.
  • Release notes do not indicate required config changes incompatible with the provided values.
  • The main risk is operational: changed auto-instrumentation behavior for newly created pods, which is production-impacting and not fully validated by PR-triggered workflows.

Labels Applied

No labels applied (did not meet merge-ready gate due production-impacting runtime change with limited PR-context testability).


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

Copy link
Copy Markdown

@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(', @') }}? 🙏

@stevejgordon
stevejgordon requested review from a team and samuelvl and removed request for a team November 10, 2026 16:15
@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

🚫 Left the queue · pull request merged manually

1 min in the queue, with no time running CI.

So far

  • ✅ Entered the queue Tue 10 Nov, 17:58 · rule default · triggered by a @mergifyio queue command
  • 🚫 Left the queue 17:59 · 7e8c33c

Reason

Pull request #17850 has been merged manually at 78ba478

Hint

You were too fast!

Tick the box to put this pull request back in the merge queue (same as @mergifyio queue).

  • Requeue this pull request

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added the queued label Nov 10, 2026
@stevejgordon
stevejgordon merged commit 78ba478 into 9.5 Nov 10, 2026
38 checks passed
@stevejgordon
stevejgordon deleted the mergify/bp/9.5/pr-17451 branch November 10, 2026 17:59
@mergify

mergify Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

queue

☑️ The pull request has been merged manually

Details

The pull request has been merged manually at 78ba478

@mergify mergify Bot removed the queued label Nov 10, 2026
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 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