apache / apache/iceberg-python

Support DIGEST-MD5 / delegation token authentication for HMS

Aperta
#3,145 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
stale
Lingua principale
Python
Stelle
1.1k
Fork
581
Merge medio
1g 17h
PR unite (30g)
78

Descrizione

### 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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.