fix: redact credentials in ParquetWriterExec debug output #7777
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.36) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 198 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.317
Real PR Conversation Timeline
1 comments
"Review active on #7777"
general
weight: 0.35
comphead
Which issue does this PR close?
Closes #7558.
Rationale for this change
ParquetWriterExec derived Debug, so formatting it with {:?} printed output_path and object_store_options as is. the path can carry a password, an access key id or a sas query, and the options can hold things like fs.s3a.secret.key, so any debug log, dbg! or error that formats the plan with Debug would leak them.
What changes are included in this PR?
<unparseable>since nothing can be stripped from it<redacted>, same placeholder IcebergScanExec already uses for its catalog propertiesthe small RedactedOptions wrapper mirrors the private one in iceberg_scan.rs rather than sharing it, to keep this to one file. happy to pull both into a shared helper if preferred. the DisplayAs path is left alone since #7128 covers it.
How are these changes tested?
added
test_parquet_writer_debug_redacts_credentials, which builds the exec withs3a://AKIDEXAMPLE:s3cretpw@bucket/part-00000.parquet?sig=sastokenandfs.s3a.secret.key = supersecret, and checks the debug string has the stripped path and the option key but none of the secrets. i checked it fails without the fix. the rest of the parquet_writer tests, cargo fmt and clippy (-D warnings) pass locally.