4paradigm / 4paradigm/OpenMLDB
Support secured ZooKeeper cluster for OpenMLDB
- Lenguaje dominante
- C++
- Estrellas
- 1.7k
- Forks
- 331
- Merge medio
- 12 d 12 h
- PR fusionados (30 d)
- 1
Descripción
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);
}
```
Guía de contribución
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java
- Área
- backend, databases, security
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 30/100