|
@@ -35,22 +35,30 @@ public class ClustersProperties {
|
|
public static class Cluster {
|
|
public static class Cluster {
|
|
String name;
|
|
String name;
|
|
String bootstrapServers;
|
|
String bootstrapServers;
|
|
|
|
+
|
|
|
|
+ TruststoreConfig ssl;
|
|
|
|
+
|
|
String schemaRegistry;
|
|
String schemaRegistry;
|
|
SchemaRegistryAuth schemaRegistryAuth;
|
|
SchemaRegistryAuth schemaRegistryAuth;
|
|
KeystoreConfig schemaRegistrySsl;
|
|
KeystoreConfig schemaRegistrySsl;
|
|
|
|
+
|
|
String ksqldbServer;
|
|
String ksqldbServer;
|
|
KsqldbServerAuth ksqldbServerAuth;
|
|
KsqldbServerAuth ksqldbServerAuth;
|
|
KeystoreConfig ksqldbServerSsl;
|
|
KeystoreConfig ksqldbServerSsl;
|
|
|
|
+
|
|
List<ConnectCluster> kafkaConnect;
|
|
List<ConnectCluster> kafkaConnect;
|
|
- MetricsConfigData metrics;
|
|
|
|
- Map<String, Object> properties;
|
|
|
|
- boolean readOnly = false;
|
|
|
|
|
|
+
|
|
List<SerdeConfig> serde;
|
|
List<SerdeConfig> serde;
|
|
String defaultKeySerde;
|
|
String defaultKeySerde;
|
|
String defaultValueSerde;
|
|
String defaultValueSerde;
|
|
- List<Masking> masking;
|
|
|
|
|
|
+
|
|
|
|
+ MetricsConfigData metrics;
|
|
|
|
+ Map<String, Object> properties;
|
|
|
|
+ boolean readOnly = false;
|
|
Long pollingThrottleRate;
|
|
Long pollingThrottleRate;
|
|
- TruststoreConfig ssl;
|
|
|
|
|
|
+
|
|
|
|
+ List<Masking> masking;
|
|
|
|
+
|
|
AuditProperties audit;
|
|
AuditProperties audit;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -101,6 +109,16 @@ public class ClustersProperties {
|
|
public static class TruststoreConfig {
|
|
public static class TruststoreConfig {
|
|
String truststoreLocation;
|
|
String truststoreLocation;
|
|
String truststorePassword;
|
|
String truststorePassword;
|
|
|
|
+ boolean verifySSL = true;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Data
|
|
|
|
+ @NoArgsConstructor
|
|
|
|
+ @AllArgsConstructor
|
|
|
|
+ @ToString(exclude = {"keystorePassword"})
|
|
|
|
+ public static class KeystoreConfig {
|
|
|
|
+ String keystoreLocation;
|
|
|
|
+ String keystorePassword;
|
|
}
|
|
}
|
|
|
|
|
|
@Data
|
|
@Data
|
|
@@ -120,15 +138,6 @@ public class ClustersProperties {
|
|
String password;
|
|
String password;
|
|
}
|
|
}
|
|
|
|
|
|
- @Data
|
|
|
|
- @NoArgsConstructor
|
|
|
|
- @AllArgsConstructor
|
|
|
|
- @ToString(exclude = {"keystorePassword"})
|
|
|
|
- public static class KeystoreConfig {
|
|
|
|
- String keystoreLocation;
|
|
|
|
- String keystorePassword;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
@Data
|
|
@Data
|
|
public static class Masking {
|
|
public static class Masking {
|
|
Type type;
|
|
Type type;
|
|
@@ -178,6 +187,7 @@ public class ClustersProperties {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @SuppressWarnings("unchecked")
|
|
private Map<String, Object> flattenClusterProperties(@Nullable String prefix,
|
|
private Map<String, Object> flattenClusterProperties(@Nullable String prefix,
|
|
@Nullable Map<String, Object> propertiesMap) {
|
|
@Nullable Map<String, Object> propertiesMap) {
|
|
Map<String, Object> flattened = new HashMap<>();
|
|
Map<String, Object> flattened = new HashMap<>();
|