Match --only-secrets names when a name transformer is used #576
All Vouch review confidence checks passed
Residual risk 0.31 = Change Risk (0.59) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.59 · 179 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.311
Sensitive Paths
sensitive_paths
0.059
Real PR Conversation Timeline
1 comments
"Review active on #576"
general
weight: 0.35
watsonian
Fixes #380.
doppler run --only-secrets API_KEY --name-transformer tf-var -- envfails with:The API applies the include list and then the name transformer, so the downloaded secrets are keyed by the transformed names (
TF_VAR_api_key).ValidateSecretsthen looked up the original names in that map, so every included secret was reported as missing when a transformer was set.The change passes the name transformer to
ValidateSecrets/MissingSecrets. Without a transformer the lookup is the same exact match as before. With a transformer, both sides are compared in a normalized form: letters and digits only, in lower case, and with theTF_VAR_prefix removed from the downloaded names fortf-var. The transformers change only case and separators, soAPI_KEY,apiKey,ApiKey,api-key,api_keyandTF_VAR_api_keyall match, and a name that really is not in the config is still reported.Tests:
TestMissingSecretscovers no transformer (unchanged behavior), tf-var, camel, upper-camel, lower-kebab and lower-snake, plus a tf-var case with one name really missing.TestMissingSecretsTFVarNameWithPrefixcovers a secret whose own name starts withTF_VAR_.With the old exact-match lookup the 6 transformer cases fail; with the change they pass.
go test ./...andgo vet ./...pass.