fix: tighten API key checks and limit Prefect API responses #407
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 326 lines diff across 4 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.346
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #407"
general
weight: 0.35
chrisguidry
Related to #406
Follow-ups to #406 for API key checks, Prefect API requests, deletion, and the chart:
api-key-permissionspolicy now checks any spec change to aPrefectWorkQueue,PrefectDeploymentorPrefectAutomation, asworkload-permissionsalready does. It used to check only changes tospec.server.settingscan no longer setPREFECT_API_URLorPREFECT_API_KEY. Both come fromspec.server, which is what the operator checks the key'sprefect.io/allowed-api-urlsannotation against.remoteApiUrlmust be an http or https URL with a host name, and no user information, query or fragment. The CRD checks new writes, and the client factory checks existing resources.Syncedcondition keep the first 4 KiB of the body.containerSecurityContext.enabledwas unset, so the values were never applied.The chart now requires Kubernetes 1.30, and
golang.org/x/netgoes to v0.63.0.Rollout caveats
PrefectWorkQueue,PrefectDeploymentorPrefectAutomationnow needsgeton the Secret or ConfigMap thatspec.server.apiKey.valueFromnames.remoteApiUrlhas a query, fragment, user information or no host name getsSynced=Falseand stops syncing.settingssetPREFECT_API_URLorPREFECT_API_KEYgetsSynced=Falsewith reasonInvalidSpec. The operator stops updating its worker Deployment.DeleteFailedevent every 30 seconds.<details>
<summary>Session context</summary>
These came out of reviewing
mainafter #406 merged. The policy doesn't check DELETE, because deleting a resource deletes its Prefect object by design. The one-hour delete window is a constant, not a chart value. Namespace-scoped RBAC forWATCH_NAMESPACESis left for a later PR.</details>
🤖 Generated with Claude Code