Changes to support Kafka over SSL in APEX 81/120781/3
authora.sreekumar <ajith.sreekumar@bell.ca>
Wed, 21 Apr 2021 14:01:30 +0000 (15:01 +0100)
committera.sreekumar <ajith.sreekumar@bell.ca>
Wed, 21 Apr 2021 15:48:18 +0000 (16:48 +0100)
commitbd21c78ed6953de4e8f9fd43311fd22bee7a5472
treeddc8524aae1bfe573863bab5e42c6e7504d70b98
parenta80ff846c0cce0224fd3b5d0ecbe34abfd1f1a6b
Changes to support Kafka over SSL in APEX

The Kafka plugin in APEX-PDP already has a field "kafkaProperties" that
can take in any properties required for the Kafka client. This is apt to
store the SSL related properties as they could change based on the
server implementation.

To make the communication possible, the only change required in APEX is
to allow a property to have an empty value.
For e.g., to disable the server host name verification, ssl.endpoint.identification.algorithm must to be explicitly set to an empty string on the client.

Change-Id: If3adaeaf11e5fbbd2aff582b5d4ba7824017ea8a
Issue-ID: POLICY-3194
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src/main/java/org/onap/policy/apex/plugins/event/carrier/kafka/KafkaCarrierTechnologyParameters.java
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/src/test/java/org/onap/policy/apex/plugins/event/carrier/kafka/KafkaCarrierTechnologyParametersTest.java