chitralverma commented on issue #9038: URL: https://github.com/apache/opendal/issues/9038#issuecomment-7253759999
PR #9358 adds `config_dir`, `user`, `kerberos_principal`, `kerberos_keytab` and `kerberos_cache`. Here is the same-process example: two OpenDAL operators in one process on MiniDFS (Kimahriman/hdfs-native#355). - **Simple auth, `user = alice` vs `user = bob`:** alice reads her 0600 file. Bob's read fails with `PermissionDenied` (`Permission denied: user=bob, access=READ`). The NameNode logs `allowed=true ugi=alice (auth:SIMPLE) cmd=open` and `allowed=false ugi=bob (auth:SIMPLE) cmd=open`. - **Kerberos with MiniKdc, two principals from a keytab:** `hdfs/localhost` reads, and `HTTP/localhost` is denied (`allowed=false ugi=HTTP/[email protected] (auth:KERBEROS)`). - **Kerberos, one principal with `user = alice` vs `user = bob`:** the NameNode logs `ugi=alice (auth:PROXY) via hdfs/[email protected]`, and bob is denied. So OpenDAL needs `user` for simple auth and for impersonation, and `kerberos_principal` with `kerberos_keytab` or `kerberos_cache` for separate principals. The PR body has the program, the commands and the precedence checks. *Drafted with AI assistance (Claude Code, Claude Opus 5.5) and reviewed by the author.* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
