4paradigm / 4paradigm/OpenMLDB
Support secured ZooKeeper cluster for OpenMLDB
- Ngôn ngữ chính
- C++
- Star
- 1.7k
- Fork
- 331
- Merge trung bình
- 12 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 1
Mô tả
For C++ and Java modules like NameServer and TaskManager, we should support secured ZooKeeper cluster by setting jaas file and krb5 file.
Here is the example code the enable secured ZK in Java processes.
```
if (isZkSecure) {
LOG.info("Connect with secure ZooKeeper cluster, use " + jaasFile + " and " + krb5File);
System.setProperty("java.security.auth.login.config", jaasFile);
System.setProperty("java.security.krb5.conf", krb5File);
}
```
Hướng dẫn đóng góp
Hướng nghiên cứu
The issue mentions enabling secured ZooKeeper for C++ and Java modules like NameServer and TaskManager. Look for where ZooKeeper connections are configured in these modules. The example shows setting Java system properties for JAAS and krb5 files; similar secure configuration may be needed for C++ components. Check existing ZK client initialization code to see where authentication can be added. Testing will involve setting up a secure ZK cluster and verifying connections.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java
- Lĩnh vực
- backend, databases, security
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 30/100