dwsmith1983 opened a new pull request, #7733:
URL: https://github.com/apache/datafusion-comet/pull/7733

   ## Which issue does this PR close?
   
   Closes #7559.
   
   ## Rationale for this change
   
   Native Iceberg errors printed data, delete and table locations as given, so 
a location with a password in its userinfo, an access key ID as its username, 
or a signed query string ended up in task failures and logs. #7127 and the 
#7128 pull requests fixed the same leak for object store setup, the Parquet 
writer and native Delta. This covers the Iceberg paths.
   
   ## What changes are included in this PR?
   
   - `redacted_url_display(&str)` in `url_redaction.rs`, next to the `Url` 
helpers from #7127. It drops the password, query and fragment and shows a 
non-ABFS username as `***`. A string that does not parse, or a parsed URL with 
an `@` after its authority (a password containing `/`, `?` or `#` can end the 
authority early), shows only its scheme.
   - The Iceberg messages go through it: `bucket_and_key`, the delete file stat 
and size checks, `CountedOutput`, the cleanup warning in `delete_task_files`, 
the negative delete file count in the planner, and the `Display` and `Debug` 
output of `IcebergScanExec` and `IcebergWriteExec`.
   - The raw location is still what is matched, looked up and passed to 
iceberg-rust.
   
   Not covered: errors that iceberg-rust and opendal build themselves, such as 
the source kept on the delete file stat error, can still name the path. #7732 
and apache/iceberg-rust#3746 track that. The JVM `CometIcebergWriteExec` plan 
string is also unchanged.
   
   Related: #7562 and #7561 carry their own copies of this helper. This should 
merge first, then #7562 drops its copy and imports this one (the two otherwise 
clash on the name in `planner.rs`), then #7561 switches to it.
   
   ## How are these changes tested?
   
   Unit tests feed each changed site a location carrying a password, username, 
query and fragment and check both the exact message and that none of them 
appears. Each test failed before the fix. The helper tests cover parse 
failures, opaque and relative strings, ABFS containers, IPv6 hosts, 
percent-encoded userinfo, and passwords that end the authority early.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to