twalthr commented on a change in pull request #15808:
URL: https://github.com/apache/flink/pull/15808#discussion_r645496205



##########
File path: 
flink-formats/flink-avro-confluent-registry/src/main/java/org/apache/flink/formats/avro/registry/confluent/RegistryAvroFormatFactory.java
##########
@@ -136,6 +160,31 @@ public String factoryIdentifier() {
     public Set<ConfigOption<?>> optionalOptions() {
         Set<ConfigOption<?>> options = new HashSet<>();
         options.add(SCHEMA_REGISTRY_SUBJECT);
+        options.add(SCHEMA_REGISTRY_SSL_KEYSTORE_LOCATION);
+        options.add(SCHEMA_REGISTRY_SSL_KEYSTORE_PASSWORD);
+        options.add(SCHEMA_REGISTRY_SSL_TRUSTSTORE_LOCATION);
+        options.add(SCHEMA_REGISTRY_SSL_TRUSTSTORE_PASSWORD);
+        options.add(SCHEMA_REGISTRY_BASIC_AUTH_CREDENTIALS_SOURCE);
+        options.add(SCHEMA_REGISTRY_BASIC_AUTH_USER_INFO);
         return options;
     }
+
+    private Map<String, ?> buildOptionalPropertiesMap(ReadableConfig 
formatOptions) {
+        Map<String, String> optionalPropertiesMap = new HashMap<>();
+
+        List<ConfigOption<String>> configOptions = new ArrayList<>();
+        configOptions.add(SCHEMA_REGISTRY_SSL_KEYSTORE_LOCATION);
+        configOptions.add(SCHEMA_REGISTRY_SSL_KEYSTORE_PASSWORD);
+        configOptions.add(SCHEMA_REGISTRY_SSL_TRUSTSTORE_LOCATION);
+        configOptions.add(SCHEMA_REGISTRY_SSL_TRUSTSTORE_PASSWORD);
+        configOptions.add(SCHEMA_REGISTRY_BASIC_AUTH_CREDENTIALS_SOURCE);
+        configOptions.add(SCHEMA_REGISTRY_BASIC_AUTH_USER_INFO);

Review comment:
       +1 to this, we should not come up with our own properties because this 
means more maintenance overhead in the long-term when new properties are 
introduced. A prefix should be sufficient.




-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to