← Back to Pull requests

[FX-1127] Add generic managed Agent installation identity provider #3751

Closed
unknown closed this pull request without merging on Nov 13, 2026 18:05 UTC
View on GitHub
unknown unknown commented on Nov 09, 2026 18:20 UTC
Author

[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 tags eks_installation_id / eks_arn_sha256, capability managed_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 sit pending despite 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 — the generic provider:

  • - 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 TargetID derivation, so fleet-side selection works on either tag set
  • pkg/fleet/managed_agent_installation_intent_generic.go — the intent decoder for provider generic, JSON field resourceKeySHA256. DisallowUnknownFields keeps the EKS and generic wire formats distinct, so an Operator configured with one provider refuses the other's intents.

  • Seams (one line each): the provider registered in the environment loader (multiple providers configured still fails closed, covered by a new test) and a case in decodeManagedAgentInstallationIntent.
  • 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

  • 9 new unit tests: env loading (both/one/none), EKS+generic both configured fails closed, validation, updater tags, TargetID parity with the EKS derivation, intent decode, generic decoder rejects the EKS eksARNSHA256 field, identity mismatch, EKS identity refuses a generic intent.

  • Full pkg/fleet suite 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 pending forever with a task_state: DONE Operator, and operator-config deployments sit running indefinitely — both resolved once the identity is neutral on both sides. The Fleet Admin counterpart (~20 lines, a resource_key_sha256 query parameter alongside eks_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

    Diff: 399 lines (+299 / -100) across 4 files Reviewer: levan-m Review duration: 5744m
    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
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 43.2% (MEDIUM) · Higher = larger blast radius
    43.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.1% · Safe to merge
    17.1%