Credential vending is AWS-only — GCS and Azure tables can't be read
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- aws, azure, cpp, gcp
- Lĩnh vực
- authentication, cloud, databases
Hướng nghiên cứu
Bắt đầu với bốn điểm được liệt kê: phân tích credential trong src/uc_api.cpp và tạo secret trong src/storage/uc_table_set.cpp và src/storage/uc_table_entry.cpp. Theo dõi các scheme của storage_location và luồng AWS hiện có, sau đó xác minh rằng s3 vẫn không thay đổi trong khi gs:// và abfss:// hoặc az:// tạo ra các credential tương ứng. Kiểm tra dependency duckdb-delta#356 trước khi coi việc đọc log GCS là hoàn tất; Azure sẽ hoạt động với hỗ trợ object_store đã nêu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
The extension only handles AWS credentials, so Unity Catalog tables backed by GCS or Azure can't be read. ATTACH … (TYPE unity_catalog) succeeds and SHOW ALL TABLES works — both are metadata-only — but SELECT fails once credentials are vended, because the vended credential is dropped and an S3 secret is created regardless of where the table actually lives.
Detail
Unity Catalog vends a different credential shape per cloud (per the UC API spec, TemporaryCredentials):
| cloud | field | kind |
|---|---|---|
| AWS | aws_temp_credentials |
key + secret + session token |
| Azure | azure_user_delegation_sas |
SAS token |
| GCP | gcp_oauth_token |
OAuth bearer token |
The delta/v1 credentials endpoint uses a parallel shape: s3.access-key-id … for AWS, gcs.oauth-token for GCP.
Four touchpoints assume AWS:
| file:line | what |
|---|---|
src/uc_api.cpp:409 |
reads only aws_temp_credentials |
src/uc_api.cpp:441 |
reads only s3.access-key-id and siblings |
src/storage/uc_table_set.cpp:214 |
input.type = "s3", unconditionally |
src/storage/uc_table_entry.cpp:206 |
sec.type = "s3", unconditionally (scan-plan path) |
The ATTACH surface is AWS-shaped too — AWS_REGION is the only cloud parameter the unity_catalog secret accepts.
Suggested change
Branch on the table's storage_location scheme and create a matching secret:
gs://→gcssecret carryingbearer_tokenfromgcp_oauth_token.oauth_token(orgcs.oauth-tokenon the managed path)abfss:///az://→azuresecret fromazure_user_delegation_sas.sasTokens3://→ unchanged
Everything downstream is already cloud-agnostic: httpfs handles GCS and duckdb-azure handles Azure, and duckdb-delta has working branches for both.
Dependency
For GCS the Delta log read additionally needs duckdb/duckdb-delta#356 — the bearer token can't currently reach delta-kernel-rs's object store. The data-file half already works through httpfs. Azure has no such blocker: object_store 0.13.2 already exposes a SAS config key.
I have the GCS half working end-to-end against a live UC workspace and am happy to contribute this change too, once the duckdb-delta side has a direction.
- Ngôn ngữ chính
- Python
- Star
- 111
- Fork
- 50
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 9
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của duckdb/unity_catalog
-
DuckDB 2.0.1 rejected by Databricks Unity Catalog Delta API when creating/writing to a managed tableĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
duckdb/unity_catalog#174 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Azure ADLS Gen2 Parquet reads/writes fail with HTTP 401 on UC-vended user delegation SAS (DuckDB 2.0.0)Có thể đã có người làm @dgokeeffe đã nhận 11 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
duckdb/unity_catalog#170 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 76/100
duckdb/unity_catalog#133 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
duckdb/unity_catalog#111 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 50/100
duckdb/unity_catalog#109 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của duckdb/unity_catalog
Issue tương tự
-
Live benchmark rejects an auth.json that has extra token keys, and the reason is never printedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
GanyuanRan/Aegis#112 ·
-
defect from-review
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
khuisman/mcp-gee-sweet#1669 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
marimo-team/marimo#12153 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
hr greet 平台明确拒绝后永久残留 pendingĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
can4hou6joeng4/boss-agent-cli#3290 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày