Skip to content

Core: Build S3 request signers in the REST catalog - #4490

Open
Anurag-S1ngh wants to merge 1 commit into
apache:mainfrom
Anurag-S1ngh:fix/2862-rest-signer
Open

Anurag-S1ngh wants to merge 1 commit into
apache:mainfrom
Anurag-S1ngh:fix/2862-rest-signer

Conversation

@Anurag-S1ngh

Copy link
Copy Markdown
Contributor

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.

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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant