apache / apache/iceberg-python
Support DIGEST-MD5 / delegation token authentication for HMS
- 主要語言
- Python
- 星號
- 1.1k
- 分支
- 581
- 平均合併
- 1 天 13 小時
- 30 天內合併 PR
- 76
描述
### Feature Request / Improvement
#### Summary
PyIceberg's HiveCatalog supports Kerberos (GSSAPI) authentication via `hive.kerberos-authentication`, but does not support DIGEST-MD5 SASL authentication with Hadoop delegation tokens. In many production Hadoop environments, pods/containers authenticate to HMS using delegation tokens (read from `$HADOOP_TOKEN_FILE_LOCATION`) rather than Kerberos keytabs. This means PyIceberg's Hive catalog cannot be used in these environments without building a custom client.
#### Proposed Enhancement
Extend `_HiveClient` to support DIGEST-MD5 delegation token auth:
1. Add a new config property (e.g. `hive.metastore.authentication=DIGEST-MD5`)
2. When DIGEST-MD5 is configured, read credentials from `$HADOOP_TOKEN_FILE_LOCATION` (Hadoop Writable credentials format)
3. Use `TSaslClientTransport` with mechanism=DIGEST-MD5 and the extracted token identifier/password
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
從 _HiveClient 及其現有的 hive.kerberos-authentication 路徑開始,然後檢查 TSaslClientTransport 的設定方式。當 DIGEST-MD5 從 $HADOOP_TOKEN_FILE_LOCATION 讀取 Hadoop Writable credentials,並使用 token 識別碼和密碼進行 HMS 驗證時,工作就完成了。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- hadoop, python
- 領域
- backend, databases
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 活躍
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100