Anurag-S1ngh opened a new pull request, #4490:
URL: https://github.com/apache/iceberg-python/pull/4490

   # Rationale for this change
   
   S3 request signing is currently implemented inside `io/fsspec.py`, so the 
FileIO layer knows about REST catalog authentication and constructs the signer 
itself.
   
   This moves the signer classes into `io/signer.py` and has `RestCatalog` 
create the configured signer and pass it to FileIO through `s3.request-signer`. 
`FsspecFileIO` uses the supplied instance, while keeping the existing 
string-based fallback for callers that configure `s3.signer` directly. The 
per-filesystem session registration from #4405 is unchanged.
   
   The retry and SigV4 behavior work tracked separately in #3008 and #3120 is 
not changed here.
   
   Part of #2862.
   
   ## Are these changes tested?
   
   Yes. Added coverage that `FsspecFileIO` registers a supplied signer instance 
and that `RestCatalog` injects the configured signer into the loaded FileIO.
   
   - `pytest tests/io tests/catalog -m unit`: 1710 passed, 6 skipped
   - `ruff check` and `git diff --check` pass
   - `ty check` reports nothing for the new signer module or the new catalog 
code; existing fsspec diagnostics are unchanged
   
   ## Are there any user-facing changes?
   
   The REST catalog now creates the S3 signer. Direct `FsspecFileIO` users can 
still use `s3.signer` as before, or provide an explicit signer through the new 
`s3.request-signer` property.
   


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