← Back to Pull requests

fix: redact --svc-param values in config show #83

Merged
ConnorMoss02 merged 2 files (72 lines) on Oct 15, 2026 09:33 UTC
View on GitHub
ConnorMoss02 ConnorMoss02 commented on Sep 29, 2026 21:04 UTC
Author

config show printed --svc-param values, including Authorization headers, in clear text. Authorization entries now show as Authorization=<redacted>, other headers stay visible, and the unused bearer and api-key names are removed.

Fixes #82

Diff: 72 lines (+71 / -1) across 2 files Reviewer: yarolegovich Review duration: 22348m
All Vouch review confidence checks passed
Residual risk 0.08 = Change Risk (0.53) × (1 − Review Confidence (0.84)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.53 · 72 lines diff across 2 files
0.53
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.77 · 2 substantive comment(s)
0.77
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
84%
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.257
Sensitive Paths sensitive_paths
0.053
Real PR Conversation Timeline
4 items
yarolegovich yarolegovich commented on code on Sep 30, 2026 06:19 UTC
Code Review
internal/clicfg/binder.go:1
@@ -50,7 +50,7 @@ func Bind(flags *pflag.FlagSet, store *Store) ([]FlagBinding, error) {
 
 		sensitive := false
 		switch f.Name {
-		case "auth", "bearer", "api-key":
+		case "auth", "bearer", "api-key", "svc-param":

how about doing a prefix check for svc-param, not all headers are sensitive. also let's remove bearer and api-key please, we decided to not add these to the cli

ConnorMoss02 ConnorMoss02 commented on code on Sep 30, 2026 15:17 UTC
Code Review
internal/clicfg/binder.go:1
@@ -50,7 +50,7 @@ func Bind(flags *pflag.FlagSet, store *Store) ([]FlagBinding, error) {
 
 		sensitive := false
 		switch f.Name {
-		case "auth", "bearer", "api-key":
+		case "auth", "bearer", "api-key", "svc-param":

Thanks for the feedback. Done. Only Authorization values are redacted now, and other headers show as-is. Removed bearer and api-key.

yarolegovich yarolegovich approved these changes on Oct 15, 2026 09:33 UTC
Approved Reviewer

Approved these changes.

Reviewers
Assignees
ConnorMoss02 ConnorMoss02
Labels
risk: low confidence: 84.3% 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: 53.3% (MEDIUM) · Higher = larger blast radius
53.3%
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: 84.3% · Lower = rushed or shallow review
84.3%
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: 8.4% · Safe to merge
8.4%