apache / apache/iceberg-python

feat: refactor rest signer in fileio

未关闭
#2,862 4 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
1.1k
派生
581
平均合并
1 天 17 小时
30 天内合并 PR
78

描述

### Feature Request / Improvement

Context: https://github.com/apache/iceberg-python/pull/2846#discussion_r2645920570

Currently S3 signer is tightly coupled with FileIO. This is awkward since the S3 Signer requires interaction with remote service (i.e. REST Catalog) and reuse its auth manager.

We can refactor here and create the signer in REST Catalog and pass to FileIO by overriding its `_load_file_io` function.

Also see [_init_sigv4](https://github.com/apache/iceberg-python/blob/a99dcada431a06329959cb7f71bf961343256bb0/pyiceberg/catalog/rest/__init__.py#L409-L459) for inspiration

贡献指南

这个仓库没有索引到贡献指南

调研方向

阅读 PR 2846 中的讨论,以及 `pyiceberg/catalog/rest/__init__.py` 中 `_init_sigv4` 的实现。跟踪 REST Catalog 的 `_load_file_io` 路径,以及 S3 signer 当前如何与 FileIO 耦合。完成的标准是 REST Catalog 使用其 auth manager 创建 signer,并通过 override 将其传递给 FileIO。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
api, authentication, backend
Issue 类型
重构
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。