dwsmith1983 opened a new issue, #3750:
URL: https://github.com/apache/iceberg-rust/issues/3750

   ### Apache Iceberg Rust version
   
   main (a7160a0)
   
   ### Describe the bug
   
   `FileIO` derives `Debug`, and so does `StorageConfig`, whose `props` are the 
FileIO properties. Those include credentials such as `s3.secret-access-key`, 
`s3.session-token`, `adls.sas-token.*` and `gcs.oauth2.token`, and `{:?}` 
prints them as is. `Table` derives `Debug` and holds a `FileIO`, so formatting 
a table prints them too. `OpenDalResolvingStorage` in `crates/storage/opendal` 
also derives `Debug` over the same properties.
   
   #2960 asked something similar for `SessionContext` and was closed because 
users can put secrets in `credentials`. FileIO is different: the REST catalog 
merges the `loadTable` config, vended credentials included, into the FileIO 
properties (`crates/catalog/rest/src/catalog.rs`, `load_table`), so the user 
doesn't choose where they go.
   
   ### To Reproduce
   
   Build a `FileIO` with `s3.secret-access-key=SECRET` and print it with 
`{:?}`. The output contains `SECRET`.
   
   ### Expected behavior
   
   `Debug` for these types shows property keys but not their values, or at 
least masks the values of the known credential keys.
   
   ### 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]

Reply via email to