Allow disabling remote signing in REST Catalog

Đang mở
#3,888 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
api, backend

Hướng nghiên cứu

Bắt đầu trong pyiceberg/catalog/rest/init.py tại phần khởi tạo Table và kiểm tra cách các thuộc tính của REST catalog được chuyển đến cấu hình FileIO. Theo dõi việc xử lý s3.signer, sau đó xác minh rằng một thuộc tính catalog trống sẽ tắt việc ký từ xa mà không làm hỏng hành vi cấu hình response hiện có.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Feature Request / Improvement

When using a REST Catalog (e.g. Lakekeeper), pyiceberg gets remote signing details from the catalog.

However, sometimes it would be useful to not use remote signing, in the case where the process performing the operations has access to the S3 endpoint through secret access keys. This is because remote signing requires a network round trip (plus any authorisation on server side).

It would be great if we could disable remote signing by respecting the s3.signer catalog property if it is empty.

The FileIO object gets created in pyiceberg/catalog/rest/__init__.py:

return Table(
    identifier=identifier_tuple,
    metadata_location=table_response.metadata_location,  # type: ignore
    metadata=table_response.metadata,
    io=self._load_file_io(
        {**table_response.metadata.properties, **table_response.config}, table_response.metadata_location
    ),
    catalog=self,
    config=table_response.config,
)

This doesn't use the catalog properties that have been passed to the REST catalog init as far as I can tell.

I might be wrong, but I don't think Support storage-credentials in REST catalog LoadTableResult- #3042
fixes this, because it still uses the response from the catalog.

Thanks!

Ngôn ngữ chính
Python
Star
1.1k
Fork
589
Merge trung bình
2 ngày 4 giờ
Pull request đã merge (30 ngày)
72

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/iceberg-python

Tất cả issue của apache/iceberg-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.