dwsmith1983 opened a new issue, #3751: URL: https://github.com/apache/iceberg-rust/issues/3751
### Apache Iceberg Rust version main (a7160a0) ### Describe the bug #3748 (for #3746) keeps userinfo and query strings out of the errors iceberg-rust builds in `crates/storage/opendal`. The errors opendal builds itself can still show the query. For S3, GCS and OSS the path handed to opendal is `&path[prefix.len()..]`. A location like `s3://bucket/t/f.parquet?X-Amz-Signature=...` passes the bucket prefix check, so opendal gets `t/f.parquet?X-Amz-Signature=...` as the key. opendal puts that path in its error context, `from_opendal_error` keeps the opendal error as the source, and iceberg's `Display` prints the source, so the signature ends up in the message. ### To Reproduce Read `s3://bucket/t/f.parquet?X-Amz-Signature=SECRET` through an S3 `FileIO` where the object doesn't exist. The error's source includes `path: t/f.parquet?X-Amz-Signature=SECRET`. ### Expected behavior I'm not sure what the right fix is, since `?` is a legal character in an S3 key. Two options: - reject locations with a query (and userinfo) for s3, gcs and oss, the way the HDFS backend already rejects userinfo - redact the path in the opendal error before attaching it as the source ### Willingness to contribute I cannot contribute a fix for this bug at this time -- 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]
