fix(apm): require tracer clients on /v0.7/config #56800
All Vouch review confidence checks passed
Residual risk 0.32 = Change Risk (0.60) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 215 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.322
Sensitive Paths
sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #56800"
general
weight: 0.35
ichinaski
What does this PR do?
Reject Trace Agent
/v0.7/configrequests with HTTP 400 unlessclient.is_traceristrue. The check runs before tracer normalization, container-tag lookup, and forwarding to the core Agent. Missing or null clients are rejected safely, and rejected requests are counted withstatus_code:400.Motivation
Prevent non-tracer clients, including Agent and updater clients, from using the tracer remote configuration endpoint.
Describe how you validated your changes
is_tracer,is_agent, andis_updater.dda inv test --targets=./cmd/trace-agent/config/remote,./pkg/config/remote/service --build-exclude=python --race --no-cache.dda inv linter.go --targets=./cmd/trace-agent/config/remote,./pkg/config/remote/service --build-exclude=python.git diff --checkpassed.Additional Notes
The core remote-config service already requires exactly one of
is_tracer,is_agent, andis_updater. Verified that/v0.7/configforwards throughserverSecure.ClientGetConfigstoCoreAgentService.ClientGetConfigs, which invokesvalidateRequestbefore registering clients or fetching configurations. The existing service validation remains unchanged.