Add Kusto Cost report msi #7916
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.45) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 413 lines diff across 5 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.361
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #7916"
general
weight: 0.35
stevekuznetsov
<!-- Link to Jira issue -->
<ticket link>
What
Adds a dedicated user-assigned managed identity for the KustoCost cost reporter and grants it
read-only access:
kusto-cost-reporterstep): creates the identity (kusto.costReporting.identityName,default
kusto-cost-reporter) in the global resource group and assigns it Cost ManagementReader and Reader on the global subscription
(
modules/logs/kusto/cost-reporter-subscription-roles.bicep).kusto-cost-reporter-accessstep,kusto-infraresource group): grants theidentity database-scoped Viewer on
ServiceLogs,HostedControlPlaneLogsandMonitoringEvents. No cluster-wide access.kusto.costReporting.identityNamekey with schema entry and a default inconfig.yaml. Rendered dev configs are regenerated.The identity is always created; there is no feature flag.
Why
We need to generate a Kusto cost report for the INT/STG/PROD Kusto clusters. The report is produced by
KustoCost
(sdp-pipelines), which runs as an EV2 Shell step and authenticates only as a managed identity. A
service-connection run works for INT but cannot be used for PROD, so the report needs its own
identity with least-privilege access to billing data and the Kusto databases. Keeping it separate
from existing identities means the reporter cannot ingest, administer or write anything.
Testing
No unit/integration/E2E tests added: this is Bicep, pipeline and config only, and the repo has no
test harness for role assignments.
config/make materializepasses (schema validation and helm fixtures); only the sixconfig/rendered/dev/*files change.bicep build).verified the final flag-free version in a live deployment>
Special notes for your reviewer
constrained to. All of those have
kusto.manageInstance: true, so the database grant always findsits cluster.
environments now create the identity and the subscription-level role assignments in their own
subscriptions. If that is unwanted, the flag can be reintroduced; please say so.
kusto.costReporting.identityName), which will bebumped to the merge commit after this lands.
PR Checklist