feat(otel-agent): Ship secret-generic-connector in the standalone image #61245
All Vouch review confidence checks passed
Residual risk 0.28 = Change Risk (0.71) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.71 · 515 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.374
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.071
Real PR Conversation Timeline
1 comments
"Review active on #61245"
general
weight: 0.35
alopezz
What does this PR do?
Adds
secret-generic-connectorto the standalone non-FIPSotel-agentimage at/opt/datadog-agent/embedded/bin/secret-generic-connector, the path the secrets component runs it from whensecret_backend_typeis set. The image jobs take the binary from the existingsecret_generic_connector-build_jobs, the same way the cluster-agent image gets it.It also makes the connector usable in the FIPS image, which already had one from its base (the FIPS Agent image) but couldn't start it: the final stage is split into
releaseandrelease-fips, and the latter, which the FIPS jobs now target, setsOPENSSL_CONFandOPENSSL_MODULESto the embedded OpenSSL.<details>
<summary>Functional changes</summary>
| Before | After |
| --- | --- |
| Standalone non-FIPS
otel-agentimage withsecret_backend_typeset (e.g.DD_SECRET_BACKEND_TYPE=hashicorp.vault):ENC[]resolution fails at startup because the connector doesn't exist, and otel-agent exits | The connector ships at that path, andENC[]handles are resolved by the configured backend || Standalone FIPS
otel-agentimage withsecret_backend_typeset: otel-agent exits at startup (failed to resolve secrets), the connector panicking withFIPS mode requested … but not available| The connector starts and resolvesENC[]handles || — | In the non-FIPS image, the connector is
0550 root:root: root,dd-agent(uid 100, group 0), and any UID in group 0 (OpenShift) can run it; UIDs outside group 0 can't || CI: the otel-agent image builds didn't check the connector | Each image build fails if the connector is missing or can't start; the non-FIPS jobs also wait for
secret_generic_connector-build_{amd64,arm64}|Unchanged:
secret_backend_commandsetups; the Agent and Agent+DDOT images; the otel-agent binary.</details>
Motivation
OTAGENT-1480
Standalone DDOT supports
secret_backend_type, but the non-FIPS image is built fromagent-base-image, which doesn't have the connector. Found while dogfooding standalone DDOT on a staging cluster, where an init container had to copy the binary out of the Agent image to read the API key from Vault.The FIPS image, built from the full FIPS Agent image, has the connector, but it panics on start in every FIPS Agent image since 7.77.0: it has no RPATH, so it loads Ubuntu's
libcrypto(3.0.13) instead of the embedded one. The core Agent doesn't hit it because its Python init setsOPENSSL_CONF/OPENSSL_MODULESin-process (pkg/collector/python/init.go), which the connector inherits; otel-agent has no Python. The root cause is fixed in #61380 (RPATH to/opt/datadog-agent/embedded/lib); the two variables can be dropped from this image once it lands.The image grows by ~13 MB.
Describe how you validated your changes
Built the image locally with podman:
0550 root:root; runs as100:0and5000:0, refused for1000:1000; resolves afile.jsonrequest when run asdd-agent.agent:7.86.0-fipsbase, no connector in the build context):--target release-fipspasses and the connector, run asdd-agentwith only the image's environment, resolves afile.jsonrequest;--target releasefails the build with the panic.--versionstep.ddot-collector:7.86.0-fipswithDD_API_KEY=ENC[api_key]andDD_SECRET_BACKEND_TYPE=file.jsonexits at startup, and resolves the key once the two variables are set.Buildah rejects a
COPYglob that matches nothing, unlike BuildKit, hence the singleCOPY otel- secret-generic-connector*.Not tested: the Dockerfile's build-from-source path.
qa/rc-requiredto checkENC[]resolution on the published images.🤖 Generated with Claude Code
[OTAGENT-1480]: https://datadoghq.atlassian.net/browse/OTAGENT-1480?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ