Ankitkj1999 commented on PR #19101:
URL: https://github.com/apache/iceberg/pull/19101#issuecomment-7211276427

   @pvary Good question. `S3FileIO` and `GCSFileIO` already serialize 
`storageCredentials` via Java/Kryo serialization when shipping `table.io()` to 
workers (Spark executors and the legacy Flink source), and `FileIOParser` 
already writes `io.properties()` into JSON. Here `ScanTaskParser` sends the 
split JSON from the JobManager to TaskManagers for the same job, so it stays 
within the same trust boundary and uses short-lived, table-scoped vended 
credentials.
   
   That said, if split JSON can end up in Flink checkpoints or logs where 
credentials shouldn't be persisted in plain text, let me know if you'd prefer 
another approach (such as reloading credentials on the TaskManager instead).
   
   @timothyw553 Thanks for the review!
   - Updated `TestFileIOParser` to assert the full `expectedJson` string while 
keeping the pretty-JSON round-trip check.
   - Good point on closing parser-restored `FileIO` instances: 
`FileIOParser.fromJson` creates a new `FileIO` per metadata task and 
`GCSFileIO` doesn't have a `finalize()` fallback like `S3FileIO`, so clients 
and refresh tasks can linger on TaskManagers. Once @pvary weighs in on the 
serialization question, I can either track ownership in the metadata task 
parsers here or fix `FileIO` closing in a follow-up PR, whichever you prefer.
   


-- 
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