Repository navigation
Core: Build S3 request signers in the REST catalog - #4490
Open
Anurag-S1ngh wants to merge 1 commit into
Open
Anurag-S1ngh wants to merge 1 commit into
Anurag-S1ngh wants to merge 1 commit into
Conversation
Move S3 signer implementations out of fsspec.py and inject a signer instance from RestCatalog into FileIO properties. FsspecFileIO keeps the string-based fallback for direct users and registers the provided instance on a per-filesystem session. Part of apache#2862.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.pyand hasRestCatalogcreate the configured signer and pass it to FileIO throughs3.request-signer.FsspecFileIOuses the supplied instance, while keeping the existing string-based fallback for callers that configures3.signerdirectly. 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
FsspecFileIOregisters a supplied signer instance and thatRestCataloginjects the configured signer into the loaded FileIO.pytest tests/io tests/catalog -m unit: 1710 passed, 6 skippedruff checkandgit diff --checkpassty checkreports nothing for the new signer module or the new catalog code; existing fsspec diagnostics are unchangedAre there any user-facing changes?
The REST catalog now creates the S3 signer. Direct
FsspecFileIOusers can still uses3.signeras before, or provide an explicit signer through the news3.request-signerproperty.