Credential vending is AWS-only — GCS and Azure tables can't be read
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- aws, azure, cpp, gcp
- 领域
- authentication, cloud, databases
调研方向
从列出的四个切入点开始:src/uc_api.cpp 中的凭据解析,以及 src/storage/uc_table_set.cpp 和 src/storage/uc_table_entry.cpp 中的 secret 创建。跟踪 storage_location scheme 和现有的 AWS 流程,然后验证 s3 保持不变,同时 gs:// 和 abfss:// 或 az:// 生成匹配的凭据。在将 GCS 日志读取视为完成之前,检查 duckdb-delta#356 依赖;Azure 应能在所述的 object_store 支持下工作。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Python
- 星标
- 111
- 派生
- 50
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 9
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
duckdb/unity_catalog 的其他 Issue
-
DuckDB 2.0.1 rejected by Databricks Unity Catalog Delta API when creating/writing to a managed table未关闭
难度 4/5 3-5 天 新手友好度 25/100
duckdb/unity_catalog#174 ·
维护者通常 1 天内回复
-
Azure ADLS Gen2 Parquet reads/writes fail with HTTP 401 on UC-vended user delegation SAS (DuckDB 2.0.0)可能已有人在做 @dgokeeffe 于 11 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 38/100
duckdb/unity_catalog#170 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 76/100
duckdb/unity_catalog#133 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 55/100
duckdb/unity_catalog#111 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 50/100
duckdb/unity_catalog#109 ·
维护者通常 1 天内回复
查看 duckdb/unity_catalog 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
GanyuanRan/Aegis#112 ·
-
defect from-review
难度 2/5 1-3 小时 新手友好度 86/100
khuisman/mcp-gee-sweet#1669 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 90/100
marimo-team/marimo#12153 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
can4hou6joeng4/boss-agent-cli#3290 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复