Skip to content

Update SANs for DCA Certificate Factory to Include K8s DNS#45067

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 12 commits intomainfrom
gabedos/dca-ca-cert-additional-dns
Jan 21, 2026
Merged

Update SANs for DCA Certificate Factory to Include K8s DNS#45067
gh-worker-dd-mergequeue-cf854d[bot] merged 12 commits intomainfrom
gabedos/dca-ca-cert-additional-dns

Conversation

@gabedos
Copy link
Copy Markdown
Contributor

@gabedos gabedos commented Jan 13, 2026

What does this PR do?

This PR fixes the handling of Subject Alternative Names (SANs) in certificates generated for the Datadog Cluster Agent when using a cluster trust chain to also include K8s DNS records:

  • serviceName.namespace: short form, namespace-qualified name
  • serviceName.namespace.svc: includes the subdomain svc
  • serviceName.namespace.svc.cluster.local: complete fully qualified domain name (FQDN)

Motivation

Enables proper TLS certificate validation when agents connect to DCA using the added DNS names. This is particularly relevant for securing Agent communication on EKS Fargate (serverless) where the sidecar Agent is running in another k8s namespace and queries for the Cluster Agent using the FQDN:

},
}, corev1.EnvVar{
Name: "DD_CLUSTER_AGENT_URL",
Value: fmt.Sprintf("https://%s.%s.svc.cluster.local:%v", w.clusterAgentServiceName, apiCommon.GetMyNamespace(), w.clusterAgentCmdPort),
}, corev1.EnvVar{
Name: "DD_ORCHESTRATOR_EXPLORER_ENABLED",
Value: "true",
})
}

CONTP-1152

Describe how you validated your changes

Deploy the Agent and Cluster Agent using the new CA Cert.

First generate a certificate:

openssl req -x509 -new -nodes -days 3650 \
  -newkey ec:<(openssl ecparam -name prime256v1) \
  -keyout tls.key \
  -out tls.crt \
  -subj "/" \
  -addext "basicConstraints=critical,CA:true,pathlen:0" \
  -addext "keyUsage=critical,keyCertSign"

Then create a k8s secret from the certificate:

kubectl create secret tls my-dd-tls \
  --cert=tls.crt \
  --key=tls.key \
  -n datadog-agent

Deploy the Agent with the secret mounted and envvars configured to use the cert:

datadog:
  kubelet:
    tlsVerify: false
  clusterName: gabedos-dev
  envDict:
    DD_CLUSTER_TRUST_CHAIN_ENABLE_TLS_VERIFICATION: "true"
    DD_CLUSTER_TRUST_CHAIN_CA_CERT_FILE_PATH: "/etc/datadog-agent/certificates/tls.crt"
    DD_CLUSTER_TRUST_CHAIN_CA_KEY_FILE_PATH: "/etc/datadog-agent/certificates/tls.key"
  volumeMounts:
    - name: tls
      mountPath: /etc/datadog-agent/certificates
      readOnly: true
  volumes:
    - name: tls
      secret:
        secretName: my-dd-tls

clusterAgent:
  envDict:
    DD_CLUSTER_TRUST_CHAIN_ENABLE_TLS_VERIFICATION: "true"
    DD_CLUSTER_TRUST_CHAIN_CA_CERT_FILE_PATH: "/etc/datadog-agent/certificates/tls.crt"
    DD_CLUSTER_TRUST_CHAIN_CA_KEY_FILE_PATH: "/etc/datadog-agent/certificates/tls.key"
  volumeMounts:
    - name: tls
      mountPath: /etc/datadog-agent/certificates
      readOnly: true
  volumes:
    - name: tls
      secret:
        secretName: my-dd-tls

Connect to the node agent and try querying using the FQDN:

curl --cacert /etc/datadog-agent/certificates/tls.crt https://datadog-agent-linux-cluster-agent.datadog-agent.svc.cluster.local:5005/version -H "Authorization: Bearer $DD_CLUSTER_AGENT_AUTH_TOKEN"

Additional Notes

For whatever reason, the trace-agent still has the kubeapiserver build tag. When the IPC component uses the namespace util in pkg/util/kubernetes/apiserver/common, it ends up pulling in 200+ additional dependencies. Thus, this PR also moves the util method into its own package such that unnecessary dependencies also aren't pulled in.

However, when we start using the namespace util, it complicates things with the OTEL build as seen by the following CI job logs. github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace: module github.com/DataDog/datadog-agent@latest found (v0.0.0-20260113211521-d91eb7342549), but does not contain package github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace

Full Job Logs when Extracting Namespace Util to Separate Package
#19 48.64 Downloaded to /tmp/tmp8jdve2k8/ocb_0.142.0_linux_amd64
#19 48.64 Running command: /tmp/tmp8jdve2k8/ocb_0.142.0_linux_amd64 --config ./comp/otelcol/collector-contrib/impl/manifest.yaml --skip-compilation
#19 48.64 Binary output:
#19 48.64 
#19 48.64 Removing file: ./comp/otelcol/collector-contrib/impl/main_others.go
#19 48.64 Removing file: ./comp/otelcol/collector-contrib/impl/main.go
#19 48.64 Removing file: ./comp/otelcol/collector-contrib/impl/main_windows.go
#19 48.64 ./comp/otelcol/collector-contrib/impl/components.go
#19 87.69 go: downloading k8s.io/api v0.35.0-alpha.0
#19 87.71 go: downloading k8s.io/client-go v0.35.0-alpha.0
#19 88.84 go: downloading github.com/openshift/api v3.9.0+incompatible
#19 89.25 go: downloading github.com/ProtonMail/go-crypto v1.3.0
#19 89.86 go: downloading github.com/google/gopacket v1.1.19
#19 90.42 go: downloading k8s.io/component-base v0.35.0-alpha.0
#19 90.47 go: downloading google.golang.org/genproto v0.0.0-20240311173647-c811ad7063a7
#19 96.26 Encountered a bad command exit code!
#19 96.26 
#19 96.26 Command: 'cd /workspace/datadog-agent/comp/core/configsync && go mod tidy '
#19 96.26 
#19 96.26 Exit code: 1
#19 96.26 
#19 96.26 Stdout:
#19 96.26 
#19 96.26 
#19 96.26 
#19 96.26 Stderr:
#19 96.26 
#19 96.26 go: finding module for package github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
#19 96.26 go: downloading github.com/DataDog/datadog-agent v0.0.0-20260113211521-d91eb7342549
#19 96.26 go: github.com/DataDog/datadog-agent/comp/core/configsync/configsyncimpl imports
#19 96.26 	github.com/DataDog/datadog-agent/comp/core/ipc/mock imports
#19 96.26 	github.com/DataDog/datadog-agent/pkg/api/security/cert imports
#19 96.26 	github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace: module github.com/DataDog/datadog-agent@latest found (v0.0.0-20260113211521-d91eb7342549), but does not contain package github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
#19 96.26 
#19 96.26 Updated package name and ensured license header in: ./comp/otelcol/collector-contrib/impl/components.go
#19 96.26 Updated package name and ensured license header in: ./comp/otelcol/collector-contrib/impl/collectorcontrib.go
#19 ERROR: process "/bin/sh -c dda inv collector.generate" did not complete successfully: exit code: 1
------
 > [builder 11/14] RUN dda inv collector.generate:
96.26 
96.26 go: finding module for package github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
96.26 go: downloading github.com/DataDog/datadog-agent v0.0.0-20260113211521-d91eb7342549
96.26 go: github.com/DataDog/datadog-agent/comp/core/configsync/configsyncimpl imports
96.26 	github.com/DataDog/datadog-agent/comp/core/ipc/mock imports
96.26 	github.com/DataDog/datadog-agent/pkg/api/security/cert imports
96.26 	github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace: module github.com/DataDog/datadog-agent@latest found (v0.0.0-20260113211521-d91eb7342549), but does not contain package github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
96.26 
96.26 Updated package name and ensured license header in: ./comp/otelcol/collector-contrib/impl/components.go
96.26 Updated package name and ensured license header in: ./comp/otelcol/collector-contrib/impl/collectorcontrib.go
------

This then led me to going through the series of dda inv commands to generate go modules for the package as well as updating all of the related OTEL packages.

@github-actions github-actions Bot added short review PR is simple enough to be reviewed quickly team/agent-runtimes team/container-platform The Container Platform Team labels Jan 13, 2026
@gabedos gabedos added changelog/no-changelog No changelog entry needed qa/rc-required Only for a PR that requires validation on the Release Candidate labels Jan 13, 2026
@agent-platform-auto-pr
Copy link
Copy Markdown
Contributor

agent-platform-auto-pr Bot commented Jan 13, 2026

Go Package Import Differences

Baseline: 47bfd7b
Comparison: 9bffa72

binaryosarchchange
agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
agentlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
agentwindowsamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
agentdarwinamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
agentdarwinarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
iot-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
iot-agentlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
heroku-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
cluster-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
cluster-agentlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
cluster-agent-cloudfoundrylinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
cluster-agent-cloudfoundrylinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
dogstatsdlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
dogstatsdlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
process-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
process-agentlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
process-agentwindowsamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
process-agentdarwinamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
process-agentdarwinarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
heroku-process-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
security-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
security-agentlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
security-agentwindowsamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
system-probelinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
system-probelinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
system-probewindowsamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
trace-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
trace-agentlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
trace-agentwindowsamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
trace-agentdarwinamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
trace-agentdarwinarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
heroku-trace-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
otel-agentlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
otel-agentlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
full-host-profilerlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
full-host-profilerlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
installerlinuxamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
installerlinuxarm64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace
installerwindowsamd64
+1, -0
+github.com/DataDog/datadog-agent/pkg/util/kubernetes/apiserver/common/namespace

@github-actions github-actions Bot added long review PR is complex, plan time to review it and removed short review PR is simple enough to be reviewed quickly labels Jan 13, 2026
@agent-platform-auto-pr
Copy link
Copy Markdown
Contributor

agent-platform-auto-pr Bot commented Jan 14, 2026

Static quality checks

✅ Please find below the results from static quality gates
Comparison made with ancestor 47bfd7b
📊 Static Quality Gates Dashboard

Successful checks

Info

Quality gate Change Size (prev → curr → max)
agent_deb_amd64 +16.56 KiB (0.00% increase) 704.857 → 704.873 → 708.410
agent_deb_amd64_fips +16.56 KiB (0.00% increase) 700.146 → 700.162 → 704.000
agent_heroku_amd64 +4.19 KiB (0.00% increase) 327.140 → 327.144 → 329.530
agent_msi +14.5 KiB (0.00% increase) 572.011 → 572.025 → 982.080
agent_rpm_amd64 +16.56 KiB (0.00% increase) 704.843 → 704.859 → 708.380
agent_rpm_amd64_fips +16.56 KiB (0.00% increase) 700.132 → 700.148 → 703.990
agent_rpm_arm64 +8.53 KiB (0.00% increase) 686.174 → 686.183 → 693.520
agent_rpm_arm64_fips +4.56 KiB (0.00% increase) 682.331 → 682.335 → 688.480
agent_suse_amd64 +16.56 KiB (0.00% increase) 704.843 → 704.859 → 708.380
agent_suse_amd64_fips +16.56 KiB (0.00% increase) 700.132 → 700.148 → 703.990
agent_suse_arm64 +8.53 KiB (0.00% increase) 686.174 → 686.183 → 693.520
agent_suse_arm64_fips +4.56 KiB (0.00% increase) 682.331 → 682.335 → 688.480
docker_agent_amd64 +16.47 KiB (0.00% increase) 766.984 → 767.000 → 770.720
docker_agent_arm64 +8.44 KiB (0.00% increase) 772.945 → 772.953 → 780.200
docker_agent_jmx_amd64 +16.47 KiB (0.00% increase) 957.863 → 957.879 → 961.600
docker_agent_jmx_arm64 +8.43 KiB (0.00% increase) 952.543 → 952.551 → 959.800
docker_dogstatsd_arm64 +64.11 KiB (0.17% increase) 37.127 → 37.190 → 37.940
dogstatsd_deb_amd64 +4.09 KiB (0.01% increase) 30.077 → 30.081 → 30.610
dogstatsd_rpm_amd64 +4.09 KiB (0.01% increase) 30.077 → 30.081 → 30.610
dogstatsd_suse_amd64 +4.09 KiB (0.01% increase) 30.077 → 30.081 → 30.610
iot_agent_deb_amd64 +4.09 KiB (0.01% increase) 43.159 → 43.163 → 43.290
iot_agent_deb_armhf +4.09 KiB (0.01% increase) 40.857 → 40.861 → 41.030
iot_agent_rpm_amd64 +4.09 KiB (0.01% increase) 43.159 → 43.163 → 43.290
iot_agent_suse_amd64 +4.09 KiB (0.01% increase) 43.159 → 43.163 → 43.290
7 successful checks with minimal change (< 2 KiB)
Quality gate Current Size
docker_cluster_agent_amd64 180.944 MiB
docker_cluster_agent_arm64 196.790 MiB
docker_cws_instrumentation_amd64 7.135 MiB
docker_cws_instrumentation_arm64 6.689 MiB
docker_dogstatsd_amd64 38.859 MiB
dogstatsd_deb_arm64 28.222 MiB
iot_agent_deb_arm64 40.268 MiB
On-wire sizes (compressed)
Quality gate Change Size (prev → curr → max)
agent_deb_amd64 -14.08 KiB (0.01% reduction) 173.366 → 173.353 → 174.490
agent_deb_amd64_fips -19.77 KiB (0.01% reduction) 172.335 → 172.315 → 173.750
agent_heroku_amd64 +7.11 KiB (0.01% increase) 87.159 → 87.166 → 88.450
agent_msi +20.0 KiB (0.01% increase) 143.031 → 143.051 → 143.270
agent_rpm_amd64 +41.45 KiB (0.02% increase) 176.431 → 176.471 → 177.660
agent_rpm_amd64_fips +42.91 KiB (0.02% increase) 174.851 → 174.893 → 176.600
agent_rpm_arm64 +46.02 KiB (0.03% increase) 159.438 → 159.483 → 161.260
agent_rpm_arm64_fips -24.15 KiB (0.01% reduction) 158.931 → 158.907 → 160.550
agent_suse_amd64 +41.45 KiB (0.02% increase) 176.431 → 176.471 → 177.660
agent_suse_amd64_fips +42.91 KiB (0.02% increase) 174.851 → 174.893 → 176.600
agent_suse_arm64 +46.02 KiB (0.03% increase) 159.438 → 159.483 → 161.260
agent_suse_arm64_fips -24.15 KiB (0.01% reduction) 158.931 → 158.907 → 160.550
docker_agent_amd64 +11.51 KiB (0.00% increase) 260.952 → 260.964 → 262.450
docker_agent_arm64 neutral 249.957 MiB
docker_agent_jmx_amd64 +24.08 KiB (0.01% increase) 329.581 → 329.604 → 331.080
docker_agent_jmx_arm64 neutral 314.581 MiB
docker_cluster_agent_amd64 neutral 63.943 MiB
docker_cluster_agent_arm64 +5.94 KiB (0.01% increase) 60.203 → 60.209 → 61.170
docker_cws_instrumentation_amd64 neutral 2.994 MiB
docker_cws_instrumentation_arm64 neutral 2.726 MiB
docker_dogstatsd_amd64 neutral 15.043 MiB
docker_dogstatsd_arm64 neutral 14.364 MiB
dogstatsd_deb_amd64 neutral 7.957 MiB
dogstatsd_deb_arm64 neutral 6.832 MiB
dogstatsd_rpm_amd64 +2.55 KiB (0.03% increase) 7.966 → 7.968 → 8.800
dogstatsd_suse_amd64 +2.55 KiB (0.03% increase) 7.966 → 7.968 → 8.800
iot_agent_deb_amd64 -2.16 KiB (0.02% reduction) 11.313 → 11.311 → 12.040
iot_agent_deb_arm64 neutral 9.666 MiB
iot_agent_deb_armhf -2.68 KiB (0.03% reduction) 9.864 → 9.861 → 10.620
iot_agent_rpm_amd64 +3.3 KiB (0.03% increase) 11.327 → 11.330 → 12.060
iot_agent_suse_amd64 +3.3 KiB (0.03% increase) 11.327 → 11.330 → 12.060

@cit-pr-commenter
Copy link
Copy Markdown

cit-pr-commenter Bot commented Jan 14, 2026

Regression Detector

Regression Detector Results

Metrics dashboard
Target profiles
Run ID: f6b3e9f6-6566-4a78-ae08-b066368f8d54

Baseline: 47bfd7b
Comparison: 9bffa72
Diff

Optimization Goals: ✅ No significant changes detected

Experiments ignored for regressions

Regressions in experiments with settings containing erratic: true are ignored.

perf experiment goal Δ mean % Δ mean % CI trials links
docker_containers_cpu % cpu utilization -2.04 [-4.94, +0.86] 1 Logs

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
quality_gate_logs % cpu utilization +1.98 [+0.42, +3.54] 1 Logs bounds checks dashboard
quality_gate_metrics_logs memory utilization +0.73 [+0.51, +0.95] 1 Logs bounds checks dashboard
otlp_ingest_logs memory utilization +0.41 [+0.30, +0.52] 1 Logs
otlp_ingest_metrics memory utilization +0.40 [+0.26, +0.55] 1 Logs
ddot_logs memory utilization +0.35 [+0.28, +0.42] 1 Logs
file_tree memory utilization +0.23 [+0.18, +0.29] 1 Logs
quality_gate_idle_all_features memory utilization +0.14 [+0.10, +0.18] 1 Logs bounds checks dashboard
ddot_metrics_sum_cumulativetodelta_exporter memory utilization +0.09 [-0.14, +0.31] 1 Logs
ddot_metrics_sum_cumulative memory utilization +0.07 [-0.09, +0.23] 1 Logs
uds_dogstatsd_to_api_v3 ingress throughput +0.01 [-0.12, +0.14] 1 Logs
file_to_blackhole_1000ms_latency egress throughput +0.01 [-0.41, +0.42] 1 Logs
tcp_dd_logs_filter_exclude ingress throughput +0.00 [-0.08, +0.09] 1 Logs
uds_dogstatsd_to_api ingress throughput -0.01 [-0.14, +0.12] 1 Logs
file_to_blackhole_500ms_latency egress throughput -0.01 [-0.41, +0.39] 1 Logs
file_to_blackhole_0ms_latency egress throughput -0.01 [-0.54, +0.51] 1 Logs
file_to_blackhole_100ms_latency egress throughput -0.04 [-0.08, +0.01] 1 Logs
ddot_metrics_sum_delta memory utilization -0.04 [-0.26, +0.17] 1 Logs
quality_gate_idle memory utilization -0.12 [-0.17, -0.08] 1 Logs bounds checks dashboard
uds_dogstatsd_20mb_12k_contexts_20_senders memory utilization -0.16 [-0.21, -0.11] 1 Logs
ddot_metrics memory utilization -0.58 [-0.79, -0.37] 1 Logs
docker_containers_memory memory utilization -0.66 [-0.74, -0.59] 1 Logs
tcp_syslog_to_blackhole ingress throughput -1.05 [-1.10, -0.99] 1 Logs
docker_containers_cpu % cpu utilization -2.04 [-4.94, +0.86] 1 Logs

Bounds Checks: ✅ Passed

perf experiment bounds_check_name replicates_passed links
docker_containers_cpu simple_check_run 10/10
docker_containers_memory memory_usage 10/10
docker_containers_memory simple_check_run 10/10
file_to_blackhole_0ms_latency lost_bytes 10/10
file_to_blackhole_0ms_latency memory_usage 10/10
file_to_blackhole_1000ms_latency lost_bytes 10/10
file_to_blackhole_1000ms_latency memory_usage 10/10
file_to_blackhole_100ms_latency lost_bytes 10/10
file_to_blackhole_100ms_latency memory_usage 10/10
file_to_blackhole_500ms_latency lost_bytes 10/10
file_to_blackhole_500ms_latency memory_usage 10/10
quality_gate_idle intake_connections 10/10 bounds checks dashboard
quality_gate_idle memory_usage 10/10 bounds checks dashboard
quality_gate_idle_all_features intake_connections 10/10 bounds checks dashboard
quality_gate_idle_all_features memory_usage 10/10 bounds checks dashboard
quality_gate_logs intake_connections 10/10 bounds checks dashboard
quality_gate_logs lost_bytes 10/10 bounds checks dashboard
quality_gate_logs memory_usage 10/10 bounds checks dashboard
quality_gate_metrics_logs cpu_usage 10/10 bounds checks dashboard
quality_gate_metrics_logs intake_connections 10/10 bounds checks dashboard
quality_gate_metrics_logs lost_bytes 10/10 bounds checks dashboard
quality_gate_metrics_logs memory_usage 10/10 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".

Replicate Execution Details

We run multiple replicates for each experiment/variant. However, we allow replicates to be automatically retried if there are any failures, up to 8 times, at which point the replicate is marked dead and we are unable to run analysis for the entire experiment. We call each of these attempts at running replicates a replicate execution. This section lists all replicate executions that failed due to the target crashing or being oom killed.

Note: In the below tables we bucket failures by experiment, variant, and failure type. For each of these buckets we list out the replicate indexes that failed with an annotation signifying how many times said replicate failed with the given failure mode. In the below example the baseline variant of the experiment named experiment_with_failures had two replicates that failed by oom kills. Replicate 0, which failed 8 executions, and replicate 1 which failed 6 executions, all with the same failure mode.

Experiment Variant Replicates Failure Logs Debug Dashboard
experiment_with_failures baseline 0 (x8) 1 (x6) Oom killed Debug Dashboard

The debug dashboard links will take you to a debugging dashboard specifically designed to investigate replicate execution failures.

❌ Retried Profiling Replicate Execution Failures (ddprof)

Note: Profiling replicas may still be executing. See the debug dashboard for up to date status.

Experiment Variant Replicates Failure Debug Dashboard
quality_gate_idle_all_features comparison 10 Oom killed Debug Dashboard

❌ Retried Profiling Replicate Execution Failures (target internal profiling)

Note: Profiling replicas may still be executing. See the debug dashboard for up to date status.

Experiment Variant Replicates Failure Debug Dashboard
quality_gate_idle_all_features baseline 11 (x3) Oom killed Debug Dashboard
quality_gate_idle_all_features comparison 11 (x3) Oom killed Debug Dashboard

CI Pass/Fail Decision

Passed. All Quality Gates passed.

  • quality_gate_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check lost_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_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 intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check lost_bytes: 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_all_features, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check memory_usage: 10/10 replicas passed. Gate passed.

@gabedos gabedos force-pushed the gabedos/dca-ca-cert-additional-dns branch from ccf2012 to 6dc60f2 Compare January 14, 2026 22:06
@gabedos gabedos marked this pull request as ready for review January 15, 2026 16:35
@gabedos gabedos requested review from a team as code owners January 15, 2026 16:35
Copy link
Copy Markdown
Contributor

@jeremy-hanna jeremy-hanna left a comment

Choose a reason for hiding this comment

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

👍 for agent runtime files

@gabedos gabedos added the ask-review Ask required teams to review this PR label Jan 15, 2026
Comment thread pkg/api/security/cert/cert_getter_dca.go
factory.additionalIPs = []net.IP{ip}
} else if serverHost != "" {
factory.additionalDNSNames = []string{serverHost}
dnsNames = append(dnsNames, serverHost)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could this result in duplicate SANs in the list?

@AlexanderYastrebov
Copy link
Copy Markdown
Contributor

Thus, this PR also moves the util method into its own package such that unnecessary dependencies also aren't pulled in.

Might be better to split in two PRs to easier see the actual change.

@gabedos
Copy link
Copy Markdown
Contributor Author

gabedos commented Jan 21, 2026

/merge

@gh-worker-devflow-routing-ef8351
Copy link
Copy Markdown

gh-worker-devflow-routing-ef8351 Bot commented Jan 21, 2026

View all feedbacks in Devflow UI.

2026-01-21 13:38:30 UTC ℹ️ Start processing command /merge


2026-01-21 13:38:40 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in main is approximately 60m (p90).


2026-01-21 14:30:03 UTC ℹ️ MergeQueue: This merge request was merged

@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot merged commit f99f70a into main Jan 21, 2026
619 checks passed
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot deleted the gabedos/dca-ca-cert-additional-dns branch January 21, 2026 14:30
@github-actions github-actions Bot added this to the 7.76.0 milestone Jan 21, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

ask-review Ask required teams to review this PR changelog/no-changelog No changelog entry needed component/system-probe long review PR is complex, plan time to review it qa/rc-required Only for a PR that requires validation on the Release Candidate team/agent-runtimes team/container-platform The Container Platform Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants