← Back to Pull requests

[DATASEC-465] Check flare scrubbing in the data security RC e2e #58443

Closed
unknown closed this pull request without merging on Oct 21, 2026 20:13 UTC
View on GitHub
unknown unknown commented on Oct 20, 2026 07:35 UTC
Author

What does this PR do?

Extends the data security Remote Config e2e to check the flare's config-check.log after a scan task is applied:

  • secrets are scrubbed: the Postgres integration password and the scanning rule pattern;

  • non-sensitive fields of the scheduled datasecurity check stay readable (task and sub-task IDs, entity, rule id).
  • The expectations live in the scenario fixture (flare.absent / flare.present). The test also waits for fakeintake to be healthy before pushing configs.

    Motivation

    Connection credentials are copied into the scheduled check config. Nothing asserted that they stay out of flares for datasecurity.

    Describe how you validated your changes

  • CI dd-gitlab/new-e2e-data-security.
  • Real example of the content of config-check.log in the flare zip

  • Configuration provider: data-security
    Configuration source: data-security
    Config for instance ID: datasecurity:1f61cd8588e0ab8b
    min_collection_interval: 0
    scan_data:
      - connection:
          dbname: dbm
          host: dbm-postgres
          password: "********" ## Scrubbed!
          port: 5432
          username: datadog
        entity:
          database: dbm
          database_cluster_name: dbm-postgres
          database_host_name: dbm-postgres
          database_instance_name: dbm-postgres
          platform: postgres
          schema: public
          table: migrations
        query: SELECT * FROM "dbm"."public"."migrations" LIMIT 5
        sub_task_id: 8fb43d4b-72a3-4e99-acf1-b78f8be034b5
        timeout_seconds: 30
      .....
    scanning_rules:
      - id: c10e77a2-4a4a-4973-b4c8-4611aa992c7c
        license: Datadog Confidential and Proprietary, subject to End User License Agreement at https://www.datadoghq.com/legal/eula (Copyright 2025 Datadog)
        pattern: '********' ## Scrubbed!
        precedence: '********' ## Scrubbed!
        proximity_keywords: '********' ## Scrubbed!
        suppressions: '********' ## Scrubbed!
        validator: '********' ## Scrubbed!
    

    Diff: 247 lines (+185 / -62) across 3 files Reviewer: vinckama Review duration: 2197m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.62) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.62 · 247 lines diff across 3 files
    0.62
    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.330
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.062
    Real PR Conversation Timeline
    1 comments
    "Review active on #58443"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    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: 62.1% (MEDIUM) · Higher = larger blast radius
    62.1%
    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: 24.5% · Safe to merge
    24.5%