← Back to Pull requests

fix: keep URL credentials out of Parquet scan errors and S3 setup logs #7719

Open
unknown opened this pull request with 280 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 20, 2026 22:19 UTC
Author

Which issue does this PR close?

Part of #7128. This covers two additional diagnostics alongside #7556, #7561, #7562 and #7565.

Rationale for this change

The native Parquet planner saves the original Spark file URL alongside the object key so a timestamp overflow can identify the failing file in a multi-file task. The reader copies that URL into the structured error sent back to Spark. If the URL carries credentials, they reach the task failure. Spark file listings usually supply credential-free paths, so this is defense in depth. File attribution in #5891

S3 store creation also logs the resolved configuration at debug level. Even a scan of a plain s3://bucket/file.parquet can print a credential from a custom fs.s3a.endpoint or its per-bucket override. The endpoint comes from Hadoop configuration independently of the file URL handled in #7556.

What changes are included in this PR?

  • Remove credentials, the query and the fragment from the path the planner saves for the error. Keep the Azure container and Spark's spelling of the scheme and filename.

  • For an S3 alias such as s3a:///bucket/key, the reader uses the first path segment after resolving .. as the bucket. The diagnostic keeps the original segments, so it strips userinfo from each segment that could serve as the bucket, even if a later .. discards it. Literal @ characters in the object key are preserved.

  • Log the bucket and the names of the resolved S3 settings. The builder receives the full settings for requests.
  • How are these changes tested?

    A native scan test writes a synthetic Parquet file with a millisecond timestamp that overflows on conversion to microseconds. It plans and executes a scan with a synthetic query and fragment on the file URL, then checks the exact percent-encoded path in ParquetTimestampOverflow. A table test checks userinfo in a promoted S3A authority, a Unicode HDFS filename, an ABFS container, encoded dot segments, and literal and escaped delimiters in filenames.

    Checked rustfmt --check and git diff --check locally. Test execution is delegated to hosted CI. The S3 log change was checked by inspecting the arguments to debug!.

    Diff: 280 lines (+210 / -70) across 3 files Reviewer: andygrove Review duration: 14039m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.40) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 280 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.337
    Real PR Conversation Timeline
    1 comments
    "Review active on #7719"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    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: 39.6% (MEDIUM) · Higher = larger blast radius
    39.6%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 21.1% · Safe to merge
    21.1%