Skip to content

WIF-48: wire delegated auth into OTel agent - #55481

Draft
wynbennett wants to merge 5 commits into
wyn.bennett/wif-credential-provider-consumersfrom
wyn.bennett/wif-credential-provider-otel
Draft

WIF-48: wire delegated auth into OTel agent#55481
wynbennett wants to merge 5 commits into
wyn.bennett/wif-credential-provider-consumersfrom
wyn.bennett/wif-credential-provider-otel

Conversation

@wynbennett

@wynbennett wynbennett commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR wires the delegated auth component into the OTel agent so that the OTel sync forwarder can attach delegated-auth credentials to outbound requests, completing the end-to-end credential provider chain started in PRs #55479 and #55480.

What changed

The OTel agent run command (cmd/otel-agent/subcommands/run/command.go) now injects delegatedauth.Component into the fx provide function that constructs the sync forwarder. The serializer exporter (comp/otelcol/otlp/components/exporter/serializerexporter/serializer.go) similarly accepts delegatedauth.Component from the fx graph and passes it to NewOTelSyncForwarder, which was given a delegatedAuth parameter in PR #55480. In the test helper (exporter_test.go), nil is passed for the delegated auth component since tests do not exercise the credential provider path.

Wiring

cmd/otel-agent/subcommands/run
  │
  │  fx.Provide(delegatedAuth delegatedauth.Component)
  │
  ▼
┌─────────────────────────────────────────┐
│  serializerexporter/serializer.go       │
│                                         │
│  NewOTelSyncForwarder(                  │
│    c, l, sec, eds, httpClient,           │
│    delegatedAuth  ◄── NEW arg            │
│  )                                       │
└─────────────────────────────────────────┘

Why this is a separate PR

The OTel agent has its own BUILD.bazel targets and go.mod, and the sync forwarder signature change originates in PR #55480. Splitting the wiring into its own PR keeps the diff small and makes it easy to review the fx injection in isolation.

Architecture doc

See Delegated Authentication in the Agent: Architecture and Path Forward for the full design, including the previous approach vs. the new Provider interface, locking, and future work.

Stacked PRs

PR1: #55479  foundation (base: main)
 │
 └──► PR2: #55480  consumers (base: PR1)
       │
       └──► PR3: #55481  otel wiring (this PR, base: PR2)

WIF-48

@wynbennett
wynbennett requested a review from a team as a code owner August 26, 2026 19:50
@wynbennett
wynbennett requested review from mackjmr and removed request for a team August 26, 2026 19:50
@dd-octo-sts dd-octo-sts Bot added the internal Identify a non-fork PR label Aug 26, 2026
@github-actions github-actions Bot added the medium review PR review might take time label Aug 26, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d6a4dc1d35

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

pidfx.Module(),
fx.Supply(pidimpl.NewParams(params.pidfilePath)),
fx.Provide(func(c defaultforwarder.Component, cfg coreconfig.Component, l log.Component, sec secrets.Component) (defaultforwarder.Forwarder, error) {
fx.Provide(func(c defaultforwarder.Component, cfg coreconfig.Component, l log.Component, sec secrets.Component, delegatedAuth delegatedauth.Component) (defaultforwarder.Forwarder, error) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Provide a functional delegated-auth component

When the synchronous forwarder is used with delegated authentication, this parameter is always the no-op implementation: the same Fx graph still installs delegatedauthnoopfx.Module() below, and NewConfigComponent loads the configuration with DelegatedAuthNoop. Consequently no delegated-auth instance fetches or refreshes an API key, so passing the component to NewOTelSyncForwarder does not enable the advertised authentication path and affected exports continue to fail authorization. Instantiate the real delegated-auth component before configuration loading and supply that same instance to the forwarder.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in commit d52fb48. runOTelAgentCommand now creates the real delegated auth component (delegatedauthimpl.NewComponent()) before calling NewConfigComponent, so DELA directives are discovered during config loading. The same instance is supplied to the fx graph via fx.Supply(delegatedAuthComp), replacing the previous delegatedauthnoopfx.Module() in both standalone and connected agent paths. NewConfigComponent now accepts a delegatedauth.Component parameter and passes it to LoadDatadog instead of the noop type.

@wynbennett
wynbennett marked this pull request as draft August 26, 2026 19:56
@wynbennett
wynbennett force-pushed the wyn.bennett/wif-credential-provider-otel branch from d6a4dc1 to 776fea3 Compare August 26, 2026 20:58
@wynbennett
wynbennett changed the base branch from main to wyn.bennett/wif-credential-provider-consumers August 26, 2026 20:59
@dd-octo-sts

dd-octo-sts Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Go Package Import Differences

Baseline: d725d90
Comparison: b1529ad

binaryosarchchange
agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
agentlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
agentwindowsamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
agentdarwinamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
agentdarwinarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
agentaixppc64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
iot-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
iot-agentlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
heroku-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
cluster-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
cluster-agentlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
cluster-agent-cloudfoundrylinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
cluster-agent-cloudfoundrylinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
dogstatsdlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
dogstatsdlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
process-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
process-agentlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
process-agentwindowsamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
process-agentdarwinamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
process-agentdarwinarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
heroku-process-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
security-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
security-agentlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
security-agentwindowsamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
sbomgenlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
sbomgenlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
system-probelinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
system-probelinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
system-probewindowsamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
system-probedarwinamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
system-probedarwinarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
trace-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
trace-agentlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
trace-agentwindowsamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
trace-agentdarwinamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
trace-agentdarwinarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
trace-agentaixppc64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
heroku-trace-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
otel-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
otel-agentlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
host-profilerlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
host-profilerlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
loaderlinuxamd64
+56, -0
+compress/flate
+compress/gzip
+crypto
+crypto/aes
+crypto/cipher
+crypto/des
+crypto/dsa
+crypto/ecdh
+crypto/ecdsa
+crypto/ed25519
+crypto/elliptic
+crypto/fips140
+crypto/hkdf
+crypto/hmac
+crypto/hpke
+crypto/md5
+crypto/mlkem
+crypto/rand
+crypto/rc4
+crypto/rsa
+crypto/sha1
+crypto/sha256
+crypto/sha3
+crypto/sha512
+crypto/subtle
+crypto/tls
+crypto/x509
+crypto/x509/pkix
+encoding/asn1
+encoding/hex
+encoding/pem
+github.com/DataDog/datadog-agent/pkg/credential
+hash/crc32
+math/big
+math/rand
+math/rand/v2
+mime
+mime/multipart
+mime/quotedprintable
+net/http
+net/http/httptrace
+net/http/internal
+net/textproto
+vendor/golang.org/x/crypto/chacha20
+vendor/golang.org/x/crypto/chacha20poly1305
+vendor/golang.org/x/crypto/cryptobyte
+vendor/golang.org/x/crypto/cryptobyte/asn1
+vendor/golang.org/x/net/http/httpguts
+vendor/golang.org/x/net/http/httpproxy
+vendor/golang.org/x/net/http2/hpack
+vendor/golang.org/x/net/idna
+vendor/golang.org/x/sys/cpu
+vendor/golang.org/x/text/secure/bidirule
+vendor/golang.org/x/text/transform
+vendor/golang.org/x/text/unicode/bidi
+vendor/golang.org/x/text/unicode/norm
loaderlinuxarm64
+55, -0
+compress/flate
+compress/gzip
+crypto
+crypto/aes
+crypto/cipher
+crypto/des
+crypto/dsa
+crypto/ecdh
+crypto/ecdsa
+crypto/ed25519
+crypto/elliptic
+crypto/fips140
+crypto/hkdf
+crypto/hmac
+crypto/hpke
+crypto/md5
+crypto/mlkem
+crypto/rand
+crypto/rc4
+crypto/rsa
+crypto/sha1
+crypto/sha256
+crypto/sha3
+crypto/sha512
+crypto/subtle
+crypto/tls
+crypto/x509
+crypto/x509/pkix
+encoding/asn1
+encoding/hex
+encoding/pem
+github.com/DataDog/datadog-agent/pkg/credential
+hash/crc32
+math/big
+math/rand
+math/rand/v2
+mime
+mime/multipart
+mime/quotedprintable
+net/http
+net/http/httptrace
+net/http/internal
+net/textproto
+vendor/golang.org/x/crypto/chacha20
+vendor/golang.org/x/crypto/chacha20poly1305
+vendor/golang.org/x/crypto/cryptobyte
+vendor/golang.org/x/crypto/cryptobyte/asn1
+vendor/golang.org/x/net/http/httpguts
+vendor/golang.org/x/net/http/httpproxy
+vendor/golang.org/x/net/http2/hpack
+vendor/golang.org/x/net/idna
+vendor/golang.org/x/text/secure/bidirule
+vendor/golang.org/x/text/transform
+vendor/golang.org/x/text/unicode/bidi
+vendor/golang.org/x/text/unicode/norm
loaderdarwinamd64
+56, -0
+compress/flate
+compress/gzip
+crypto
+crypto/aes
+crypto/cipher
+crypto/des
+crypto/dsa
+crypto/ecdh
+crypto/ecdsa
+crypto/ed25519
+crypto/elliptic
+crypto/fips140
+crypto/hkdf
+crypto/hmac
+crypto/hpke
+crypto/md5
+crypto/mlkem
+crypto/rand
+crypto/rc4
+crypto/rsa
+crypto/sha1
+crypto/sha256
+crypto/sha3
+crypto/sha512
+crypto/subtle
+crypto/tls
+crypto/x509
+crypto/x509/pkix
+encoding/asn1
+encoding/hex
+encoding/pem
+github.com/DataDog/datadog-agent/pkg/credential
+hash/crc32
+math/big
+math/rand
+math/rand/v2
+mime
+mime/multipart
+mime/quotedprintable
+net/http
+net/http/httptrace
+net/http/internal
+net/textproto
+vendor/golang.org/x/crypto/chacha20
+vendor/golang.org/x/crypto/chacha20poly1305
+vendor/golang.org/x/crypto/cryptobyte
+vendor/golang.org/x/crypto/cryptobyte/asn1
+vendor/golang.org/x/net/http/httpguts
+vendor/golang.org/x/net/http/httpproxy
+vendor/golang.org/x/net/http2/hpack
+vendor/golang.org/x/net/idna
+vendor/golang.org/x/sys/cpu
+vendor/golang.org/x/text/secure/bidirule
+vendor/golang.org/x/text/transform
+vendor/golang.org/x/text/unicode/bidi
+vendor/golang.org/x/text/unicode/norm
loaderdarwinarm64
+55, -0
+compress/flate
+compress/gzip
+crypto
+crypto/aes
+crypto/cipher
+crypto/des
+crypto/dsa
+crypto/ecdh
+crypto/ecdsa
+crypto/ed25519
+crypto/elliptic
+crypto/fips140
+crypto/hkdf
+crypto/hmac
+crypto/hpke
+crypto/md5
+crypto/mlkem
+crypto/rand
+crypto/rc4
+crypto/rsa
+crypto/sha1
+crypto/sha256
+crypto/sha3
+crypto/sha512
+crypto/subtle
+crypto/tls
+crypto/x509
+crypto/x509/pkix
+encoding/asn1
+encoding/hex
+encoding/pem
+github.com/DataDog/datadog-agent/pkg/credential
+hash/crc32
+math/big
+math/rand
+math/rand/v2
+mime
+mime/multipart
+mime/quotedprintable
+net/http
+net/http/httptrace
+net/http/internal
+net/textproto
+vendor/golang.org/x/crypto/chacha20
+vendor/golang.org/x/crypto/chacha20poly1305
+vendor/golang.org/x/crypto/cryptobyte
+vendor/golang.org/x/crypto/cryptobyte/asn1
+vendor/golang.org/x/net/http/httpguts
+vendor/golang.org/x/net/http/httpproxy
+vendor/golang.org/x/net/http2/hpack
+vendor/golang.org/x/net/idna
+vendor/golang.org/x/text/secure/bidirule
+vendor/golang.org/x/text/transform
+vendor/golang.org/x/text/unicode/bidi
+vendor/golang.org/x/text/unicode/norm
installerlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
installerlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
installerwindowsamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
privateactionrunnerlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
privateactionrunnerlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
privateactionrunnerwindowsamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
privateactionrunnerdarwinamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential
privateactionrunnerdarwinarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/credential

@datadog-datadog-prod-us1

This comment has been minimized.

@dd-octo-sts

dd-octo-sts Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Files inventory check summary

File checks results against ancestor c35c49a9:

Results for datadog-agent_7.84.0~devel.git.608.4224b16.pipeline.134054631-1_amd64.deb:

Detected file changes:

1 Changed files:

  • opt/datadog-agent/embedded/bin/trace-loader:
    • Size changed: +24.26% (1.16 MiB) (4.77 MiB -> 5.93 MiB)

Results for datadog-iot-agent_7.84.0~devel.git.608.4224b16.pipeline.134054631-1_amd64.deb:

No change detected

@dd-octo-sts

dd-octo-sts Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Static quality checks

❌ Please find below the results from static quality gates
Comparison made with ancestor d725d90
📊 Static Quality Gates Dashboard
🔗 SQG Job
SOME SIZE DELTAS ARE N/A (ANCESTOR METRICS NOT YET AVAILABLE). RETRY JOB

Error

Quality gate Change Size (prev → curr → max)
agent_rpm_arm64 (on disk) N/A N/A → 739.359 → 738.950
agent_rpm_arm64_fips (on disk) N/A N/A → 695.019 → 694.790
agent_suse_arm64 (on disk) N/A N/A → 739.359 → 738.950
agent_suse_arm64_fips (on disk) N/A N/A → 695.019 → 694.790
docker_agent_amd64 (on disk) N/A N/A → 822.705 → 822.100
docker_agent_arm64 (on disk) N/A N/A → 823.427 → 823.020
docker_agent_jmx_amd64 (on disk) N/A N/A → 1013.618 → 1013.020
docker_agent_jmx_arm64 (on disk) N/A N/A → 1003.119 → 1002.710
Gate failure full details
Quality gate Error type Error message
agent_rpm_arm64 AbsoluteLimitExceeded static_quality_gate_agent_rpm_arm64 failed!
Disk size 739.4 MB exceeds limit of 738.9 MB by 418.6 KB
agent_rpm_arm64_fips AbsoluteLimitExceeded static_quality_gate_agent_rpm_arm64_fips failed!
Disk size 695.0 MB exceeds limit of 694.8 MB by 234.9 KB
agent_suse_arm64 AbsoluteLimitExceeded static_quality_gate_agent_suse_arm64 failed!
Disk size 739.4 MB exceeds limit of 738.9 MB by 418.6 KB
agent_suse_arm64_fips AbsoluteLimitExceeded static_quality_gate_agent_suse_arm64_fips failed!
Disk size 695.0 MB exceeds limit of 694.8 MB by 234.9 KB
docker_agent_amd64 AbsoluteLimitExceeded static_quality_gate_docker_agent_amd64 failed!
Disk size 822.7 MB exceeds limit of 822.1 MB by 619.9 KB
docker_agent_arm64 AbsoluteLimitExceeded static_quality_gate_docker_agent_arm64 failed!
Disk size 823.4 MB exceeds limit of 823.0 MB by 416.9 KB
docker_agent_jmx_amd64 AbsoluteLimitExceeded static_quality_gate_docker_agent_jmx_amd64 failed!
Disk size 1013.6 MB exceeds limit of 1013.0 MB by 612.1 KB
docker_agent_jmx_arm64 AbsoluteLimitExceeded static_quality_gate_docker_agent_jmx_arm64 failed!
Disk size 1003.1 MB exceeds limit of 1002.7 MB by 419.1 KB

Static quality gate failures prevent this PR from merging!
You can check the static quality gates runbooks page for guidance and tools. Please either fix the size violation or request an exception.

Successful checks

Info

Quality gate Change Size (prev → curr → max)
agent_deb_amd64 N/A N/A → 763.725 → 765.300
agent_deb_amd64_fips N/A N/A → 715.981 → 716.540
agent_heroku_amd64 N/A N/A → 313.592 → 319.540
agent_msi N/A N/A → 648.710 → 661.050
agent_rpm_amd64 N/A N/A → 763.708 → 765.270
agent_rpm_amd64_fips N/A N/A → 715.965 → 716.540
agent_suse_amd64 N/A N/A → 763.708 → 765.270
agent_suse_amd64_fips N/A N/A → 715.965 → 716.540
docker_cluster_agent_amd64 N/A N/A → 211.317 → 212.130
docker_cluster_agent_arm64 N/A N/A → 224.461 → 225.220
docker_cws_instrumentation_amd64 N/A N/A → 7.439 → 8.400
docker_cws_instrumentation_arm64 N/A N/A → 6.877 → 7.110
docker_dogstatsd_amd64 N/A N/A → 39.593 → 40.440
docker_dogstatsd_arm64 N/A N/A → 37.686 → 38.580
docker_host_profiler_amd64 N/A N/A → 306.904 → 317.700
docker_host_profiler_arm64 N/A N/A → 318.178 → 328.970
dogstatsd_deb_amd64 N/A N/A → 30.334 → 31.210
dogstatsd_deb_arm64 N/A N/A → 28.342 → 29.590
dogstatsd_rpm_amd64 N/A N/A → 30.334 → 31.210
dogstatsd_suse_amd64 N/A N/A → 30.334 → 31.210
iot_agent_deb_amd64 N/A N/A → 46.623 → 47.550
iot_agent_deb_arm64 N/A N/A → 43.259 → 44.220
iot_agent_deb_armhf N/A N/A → 44.066 → 45.020
iot_agent_rpm_amd64 N/A N/A → 46.623 → 47.550
iot_agent_suse_amd64 N/A N/A → 46.622 → 47.550

@cit-pr-commenter-54b7da

cit-pr-commenter-54b7da Bot commented Aug 26, 2026

Copy link
Copy Markdown

Regression Detector

Regression Detector Results

Metrics dashboard
Target profiles
Job ID: b22f4002-8e3a-4d17-a137-f2b0c98f238d

Baseline: d725d90
Comparison: b1529ad
Diff

Optimization Goals: ✅ No significant changes detected

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
dsd_uds_10mb_3k_timestamped_contexts_cpu % cpu utilization +2.05 [+1.80, +2.30] 1 Logs
dsd_uds_10mb_3k_timestamped_contexts_memory memory utilization +1.31 [+1.10, +1.53] 1 Logs
quality_gate_logs % cpu utilization +0.85 [-0.02, +1.72] 1 Logs bounds checks dashboard
quality_gate_idle memory utilization +0.78 [+0.73, +0.82] 1 Logs bounds checks dashboard
quality_gate_security_no_fs_load memory utilization +0.53 [+0.45, +0.61] 1 Logs bounds checks dashboard
quality_gate_private_action_runner memory utilization +0.35 [+0.22, +0.47] 1 Logs bounds checks dashboard
quality_gate_security_mean_fs_load memory utilization +0.30 [+0.26, +0.34] 1 Logs bounds checks dashboard
quality_gate_idle_all_features memory utilization -0.08 [-0.12, -0.05] 1 Logs bounds checks dashboard
quality_gate_security_idle memory utilization -0.09 [-0.13, -0.04] 1 Logs bounds checks dashboard
quality_gate_metrics_logs memory utilization -0.93 [-1.16, -0.70] 1 Logs bounds checks dashboard

Bounds Checks: ✅ Passed

perf experiment bounds_check_name replicates_passed observed_value links
quality_gate_idle intake_connections 10/10 4 = 4 bounds checks dashboard
quality_gate_idle memory_usage 10/10 175.04MiB ≤ 179MiB bounds checks dashboard
quality_gate_idle total_bytes_received 10/10 751.60KiB ≤ 819.20KiB bounds checks dashboard
quality_gate_idle_all_features intake_connections 10/10 4 = 4 bounds checks dashboard
quality_gate_idle_all_features memory_usage 10/10 518.99MiB ≤ 537MiB bounds checks dashboard
quality_gate_idle_all_features total_bytes_received 10/10 1.15MiB ≤ 1.25MiB bounds checks dashboard
quality_gate_logs intake_connections 10/10 19 ≤ 40 bounds checks dashboard
quality_gate_logs memory_usage 10/10 211.51MiB ≤ 228MiB bounds checks dashboard
quality_gate_logs missed_bytes 10/10 0B = 0B bounds checks dashboard
quality_gate_logs total_bytes_received 10/10 263.46MiB ≤ 292MiB bounds checks dashboard
quality_gate_metrics_logs cpu_usage 10/10 367.10 ≤ 2000 bounds checks dashboard
quality_gate_metrics_logs intake_connections 10/10 20 ≤ 40 bounds checks dashboard
quality_gate_metrics_logs memory_usage 10/10 416.07MiB ≤ 455MiB bounds checks dashboard
quality_gate_metrics_logs missed_bytes 10/10 0B = 0B bounds checks dashboard
quality_gate_metrics_logs total_bytes_received 10/10 0.94GiB ≤ 1.04GiB bounds checks dashboard
quality_gate_private_action_runner memory_usage 10/10 72.73MiB ≤ 75MiB bounds checks dashboard
quality_gate_security_idle cpu_usage 10/10 28.77 ≤ 100 bounds checks dashboard
quality_gate_security_idle memory_usage 10/10 326.25MiB ≤ 355MiB bounds checks dashboard
quality_gate_security_mean_fs_load cpu_usage 10/10 60.16 ≤ 200 bounds checks dashboard
quality_gate_security_mean_fs_load memory_usage 10/10 305.62MiB ≤ 335MiB bounds checks dashboard
quality_gate_security_no_fs_load cpu_usage 10/10 22.36 ≤ 100 bounds checks dashboard
quality_gate_security_no_fs_load memory_usage 10/10 313.60MiB ≤ 345MiB bounds checks dashboard

Explanation

Confidence level: 90.00%
Effect size tolerance: |Δ mean %| ≥ 5.00%

Performance changes are noted in the perf column of each table:

  • ✅ = significantly better comparison variant performance
  • ❌ = significantly worse comparison variant performance
  • ➖ = no significant change in performance

A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI".

For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:

  1. Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.

  2. Its 90.00% confidence interval "Δ mean % CI" does not contain zero, indicating that if our statistical model is accurate, there is at least a 90.00% chance there is a difference in performance between baseline and comparison variants.

  3. Its configuration does not mark it "erratic".

CI Pass/Fail Decision

Passed. All Quality Gates passed.

  • quality_gate_security_mean_fs_load, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_security_mean_fs_load, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_security_idle, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_security_idle, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check total_bytes_received: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check total_bytes_received: 10/10 replicas passed. Gate passed.
  • quality_gate_private_action_runner, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_security_no_fs_load, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_security_no_fs_load, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check total_bytes_received: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check missed_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check total_bytes_received: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check missed_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.

@wynbennett
wynbennett force-pushed the wyn.bennett/wif-credential-provider-otel branch 5 times, most recently from 189e8db to a3ccb15 Compare August 28, 2026 02:24
@wynbennett
wynbennett force-pushed the wyn.bennett/wif-credential-provider-otel branch from a3ccb15 to 5fc5a66 Compare August 28, 2026 04:36
@wynbennett
wynbennett force-pushed the wyn.bennett/wif-credential-provider-otel branch from 5fc5a66 to 35728db Compare August 28, 2026 04:42
@wynbennett
wynbennett force-pushed the wyn.bennett/wif-credential-provider-otel branch from 35728db to 9b1def8 Compare August 28, 2026 14:18
@wynbennett
wynbennett force-pushed the wyn.bennett/wif-credential-provider-otel branch from 9b1def8 to 4af233e Compare August 28, 2026 14:48
@wynbennett
wynbennett force-pushed the wyn.bennett/wif-credential-provider-otel branch 2 times, most recently from 5db19a4 to 5db97f9 Compare August 28, 2026 16:26
@wynbennett
wynbennett force-pushed the wyn.bennett/wif-credential-provider-otel branch from a3df552 to 57ea406 Compare August 28, 2026 20:36
@wynbennett
wynbennett force-pushed the wyn.bennett/wif-credential-provider-otel branch from 57ea406 to 4224b16 Compare August 28, 2026 21:09
@wynbennett
wynbennett force-pushed the wyn.bennett/wif-credential-provider-otel branch from 4224b16 to 2c8db3c Compare August 31, 2026 14:36
@wynbennett
wynbennett force-pushed the wyn.bennett/wif-credential-provider-otel branch from 2c8db3c to b1e927e Compare August 31, 2026 15:17
@wynbennett
wynbennett force-pushed the wyn.bennett/wif-credential-provider-otel branch from b1e927e to 0a8ddac Compare August 31, 2026 15:38
@wynbennett
wynbennett force-pushed the wyn.bennett/wif-credential-provider-otel branch from 0a8ddac to 1b7c68f Compare August 31, 2026 15:41
@wynbennett
wynbennett force-pushed the wyn.bennett/wif-credential-provider-otel branch from 1b7c68f to 8233c46 Compare August 31, 2026 15:49
@dd-octo-sts

dd-octo-sts Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Benchmarks

Benchmark execution time: 2026-08-31 18:47:08

Comparing candidate commit b1529ad in PR branch wyn.bennett/wif-credential-provider-otel with baseline commit 64781ff in branch main.

📊 Benchmarking dashboard

Found 0 performance improvements and 0 performance regressions! Performance is the same for 3 metrics, 0 unstable metrics.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

…logs agent

This PR wires the credential Provider interface from delegatedauth into
the three data-plane consumers:

Forwarder:
- Forwarder takes credentials from providers, buffering until they resolve
- Resolver discovers credential providers for each endpoint
- Transactions carry credential context
- OTel sync forwarder accepts a delegated auth component
- HTTP transactions serializer hardened for credential backpressure

Trace writers:
- Trace writers take credentials from providers, holding payloads until resolve
- Sender resolves credentials before forwarding
- Pipeline stats skips delegated-auth endpoints (no API key)
- Trace agent impl and config wiring for credential providers

Logs agent:
- Logs endpoints take their credential from a provider
- Wire delegated auth into the logs agent end to end
- Stop logs TCP from leaking the directive on the wire
- Harden Authorize, fix serverless build
- Logs library HTTP destination supports credential providers
Fix P1 finding from the Codex/Autotest review: the OTel agent was passing
the noop delegated auth component to NewOTelSyncForwarder, so no DELA
directives were ever discovered or credentials exchanged.

Changes:
- NewConfigComponent now accepts a delegatedauth.Component parameter
  and passes it to LoadDatadog instead of the noop type
- runOTelAgentCommand creates the real delegatedauth component
  (delegatedauthimpl.NewComponent) before config loading and supplies
  the same instance to the fx graph via fx.Supply
- Replaced delegatedauthnoopfx.Module() with fx.Supply(delegatedAuthComp)
  in both standalone and connected agent fx option chains
- Updated BUILD.bazel deps: noop-impl/types → def, fx-noop → impl
- Updated all test callers of NewConfigComponent to pass nil
NewConfigComponent gained a delegatedauth.Component parameter in PR3,
but the integration test caller was not updated. Pass the noop
implementation since the test doesn't exercise delegated auth.
Line 163 was missed when adding the delegatedAuthComp parameter
to NewConfigComponent.

WIF-48
@wynbennett
wynbennett force-pushed the wyn.bennett/wif-credential-provider-otel branch from 9be14e9 to b1529ad Compare August 31, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant