Skip to content

Native Iceberg errors print data and delete file paths with their credentials #7559

Open

Description

@dwsmith1983

Describe the bug

Found while working on #7128. Several native Iceberg errors print a data or delete file path exactly as the catalog recorded it:

  • iceberg_location_scoped.rs: "Invalid S3 path {path}", "S3 path {path} has no bucket"
  • iceberg_scan.rs: "Failed to stat delete file '{path}'" and the size check after it
  • iceberg_write.rs: "{path} is not the data file this output was made for", "... on the output of data file {path}"
  • planner.rs: "Delete file '{file_path}' has a negative {what}"

A location with a password in its userinfo or a SAS token or signature in its query string would end up in task failures and logs. Catalog locations rarely carry credentials, so this is low risk, but it is the same leak #7128 fixes for Parquet, Delta and object store paths.

Steps to reproduce

Each message formats the path with {path} as is, so a location like s3://alice:SECRET@bucket/t/delete.parquet?sig=TOKEN reaching any of them is printed with SECRET and TOKEN.

Expected behavior

These messages show the path without its password, username or query, using the URL redaction helpers #7127 adds, as the #7128 pull requests do for the other paths.

Additional context

Not part of the four #7128 pull requests, which cover object store setup, the Parquet writer, native Delta and the JVM rejected path reason.

Activity

  1. added
    bugSomething isn't working
    priority:lowMinor issues, test failures, tooling, cosmetic
    and removed on Nov 9, 2026
  2. added
    priority:mediumFunctional bugs, performance regressions, broken features
    and removed
    priority:lowMinor issues, test failures, tooling, cosmetic
    on Nov 9, 2026
  3. kazuyukitanimura commented on Nov 9, 2026

    @kazuyukitanimura
    Contributor

    We should in general redact urls

  4. added this to the 1.3.0 milestone on Nov 9, 2026
  5. dwsmith1983 commented on Nov 10, 2026

    @dwsmith1983
    ContributorAuthor

    We should in general redact urls

    Agreed. #7127 added shared helpers in url_redaction.rs, and the #7128 pull requests route the object store, Parquet writer and native Delta paths through them. Iceberg's paths are the ones left, and the fix here would use the same helpers. Once #7561 and #7562 merge, I'd also move their display functions into url_redaction.rs, so every native error formats a path the same way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:mediumFunctional bugs, performance regressions, broken features

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions