[FX-1127] Add generic managed Agent installation identity provider #3751
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 399 lines diff across 4 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.358
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3751"
general
weight: 0.35
levan-m
[FX-1127] Add a generic managed Agent installation identity provider
Managed Cloud Instrumentation (MCI) installs the vendored Datadog Operator on non-EKS Kubernetes clusters — Nebius Managed Kubernetes and CoreWeave CKS today, more generic-AMS clouds later. Those installs currently carry the EKS-named managed-install identity: env
DD_EKS_INSTALLATION_ID/DD_EKS_ARN_SHA256, updater tagseks_installation_id/eks_arn_sha256, capabilitymanaged_agent_installation:eks-addon-config-v1. Fleet tooling selects Operator clients through that identity, so on non-EKS clusters the install state can't be resolved (rules sitpendingdespite a healthy, reporting installation) and operator-config remote-config deployments are accepted but never applied.This adds a provider-neutral identity alongside the unchanged EKS provider, so installers that are not tied to a specific cloud can use neutral names (internal ticket FX-1127).
What changes
pkg/fleet/managed_agent_installation_identity_generic.go— thegenericprovider:- env
DD_MANAGED_INSTALLATION_ID+DD_RESOURCE_KEY_SHA256- updater tags
managed_installation_id:<uuid>,resource_key_sha256:<digest>,managed_agent_installation:generic-v1- mirrors the EKS provider's validation (canonical UUID, lowercase SHA-256 digest) and base32
TargetIDderivation, so fleet-side selection works on either tag setpkg/fleet/managed_agent_installation_intent_generic.go— the intent decoder for providergeneric, JSON fieldresourceKeySHA256.DisallowUnknownFieldskeeps the EKS and generic wire formats distinct, so an Operator configured with one provider refuses the other's intents.multiple providers configuredstill fails closed, covered by a new test) and a case indecodeManagedAgentInstallationIntent.EKS behavior is unchanged.
Wire names
The names above are proposals from the Fleet Expansion side; happy to adjust to whatever Container Platform prefers — flagging for review before this goes anywhere near a release.
Testing
TargetIDparity with the EKS derivation, intent decode, generic decoder rejects the EKSeksARNSHA256field, identity mismatch, EKS identity refuses a generic intent.pkg/fleetsuite passes (go test ./pkg/fleet/ -count=1).Live context
Verified on a real Nebius MCI install (prod): the current EKS-named identity leaves the rule resource
pendingforever with atask_state: DONEOperator, and operator-config deployments sitrunningindefinitely — both resolved once the identity is neutral on both sides. The Fleet Admin counterpart (~20 lines, aresource_key_sha256query parameter alongsideeks_arn_sha256) is coordinated separately with the Fleet team, and the MCI switch follows once both ship.🤖 Generated with Claude Code
[FX-1127]: https://datadoghq.atlassian.net/browse/FX-1127?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ