morningman commented on PR #47299: URL: https://github.com/apache/doris/pull/47299#issuecomment-2618416236
This pull request introduces several changes to enhance the Kerberos authentication functionality and configuration. The key changes include adding new configuration options for Kerberos, implementing a new `KerberosConfig` class, and adding a `KerberosTicketCache` class to manage Kerberos ticket caches, including periodic refresh. ### Kerberos Configuration Enhancements: * Added `kerberos_refresh_interval_second` configuration option to specify the interval for renewing the Kerberos ticket cache (`be/src/common/config.cpp`, `be/src/common/config.h`). [[1]](diffhunk://#diff-b626e6ab16bc72abf40db76bf5094fcc8ca3c37534c2eb83b63b7805e1b601ffL1143-R1145) [[2]](diffhunk://#diff-46e8c1ada0d43acf8c2965e46e90909089aada1f46531976c10605b837f8da3dR1198-R1199) ### New `KerberosConfig` Class: * Introduced `KerberosConfig` class to manage Kerberos configuration settings, including the principal, keytab path, krb5.conf path, and refresh intervals (`be/src/common/kerberos/kerberos_config.cpp`, `be/src/common/kerberos/kerberos_config.h`). [[1]](diffhunk://#diff-6c02165c0367e6dc3891d9159a9a101122931c20ad83bc15f072bcd12ac7f392R1-R30) [[2]](diffhunk://#diff-ecc41cb5a03e99e19eb1d829f78a4bbeb9974f8379e6ec4695156eea8f3b431eR1-R69) ### New `KerberosTicketCache` Class: * Implemented `KerberosTicketCache` class to handle Kerberos ticket cache management, including initialization, login, periodic refresh, and ticket cache path setup (`be/src/common/kerberos/kerberos_ticket_cache.cpp`, `be/src/common/kerberos/kerberos_ticket_cache.h`). [[1]](diffhunk://#diff-502a85fe66921ce7ae5d57b4b607c62adfc8433db067c0d8294692c57a245d39R1-R296) [[2]](diffhunk://#diff-66481c06c0a08665aead28519b09a294148f38a2974a9086403489b03e20fa77R1-R139) ### Build Configuration: * Added `-DUSE_DORIS_HADOOP_HDFS` definition to the build configuration for Hadoop HDFS support (`be/CMakeLists.txt`). -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org