← Back to Pull requests

[DSEC-212] Enable data security rust check #54204

Closed
unknown closed this pull request without merging on Aug 05, 2026 00:14 UTC
View on GitHub
unknown unknown commented on Jul 29, 2026 11:44 UTC
Author

<!--Please give us some feedback on your experience writing this PR ! https://app.datadoghq.com/forms/43db4c02-6837-400c-8083-692e141b1b88 !-->

What does this PR do?

Ships the datasecurity Rust shared-library check by enabling it in ENABLED_CHECKS, so its cdylib is bundled with the Agent build.

Motivation

Enable the Data Security feature (RC-driven PostgreSQL scanning via the DATA_SECURITY_DB_SCAN_TASKS product) so it can be turned on with data_security.enabled + shared_library_check.enabled.

Describe how you validated your changes

The feature was already validated end-to-end in previous PRs. This PR only flips the check on for shipping.

Decision Record


https://datadoghq.atlassian.net/wiki/spaces/ABLD/pages/7034209304/Data+Security+-+Quality+Gates+Decision+Records

Note


Last commit compensate what was lost after rebasing on main (post PR merge https://github.com/DataDog/datadog-agent/pull/54419)

Diff: 133 lines (+99 / -34) across 1 files Reviewer: vinckama Review duration: 9390m
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.55) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.55 · 133 lines diff across 1 files
0.55
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.293
Shallow Review Depth shallow_review_depth
0.289
Sensitive Paths sensitive_paths
0.055
Real PR Conversation Timeline
1 comments
"Review active on #54204"
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: 55.5% (MEDIUM) · Higher = larger blast radius
55.5%
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: 21.9% · Safe to merge
21.9%