[18.0] webservice*: add neutralize scripts + secret params #189
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.60) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 210 lines diff across 2 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.320
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #189"
general
weight: 0.35
simahawk
Make it safe to restore a production database elsewhere: neutralization drops the webservice endpoints and credentials, and the values flagged as secret are hidden in the UI and in the logs.
Neutralize scripts
odoo neutralize(and the neutralization done on database copy) now runs:urlwithhttps://neutralized.invalid(the field is required) and clearsusername,passwordandapi_keyThe tests seed and read the raw columns with SQL, as the scripts do. Modules like
webservice_server_envmake the ORM read these fields from the environment instead of the columns, so going through the ORM would not test what the script actually does.Secret headers and querystring params
New Secret flag on
webservice.headerandwebservice.querystring.param, for values like tokens or keys:neutralizedwhen the database is neutralizedThe
passwordattribute cannot depend on the record, so the Headers and Querystring Params lists are no longer editable inline: lines open in a small form showing either the plain or the masked value.Logging
The
calldebug log masks (***) the values of:apikey,password,pwd), reusing the blacklist ofsanitize_url_for_log, now shared inwebservice_core.utils(is_blacklisted_key,sanitize_values_for_log)