From 58f261f71607ec1cac5aa43695afe8d495d6761c Mon Sep 17 00:00:00 2001 From: derberg Date: Wed, 8 Dec 2021 11:46:36 +0100 Subject: [PATCH 1/2] docs: extend example for kafka with x509 security --- examples/streetlights-kafka.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/streetlights-kafka.yml b/examples/streetlights-kafka.yml index ee8437c40..5e55d12bd 100644 --- a/examples/streetlights-kafka.yml +++ b/examples/streetlights-kafka.yml @@ -21,6 +21,7 @@ servers: description: Test broker security: - saslScram: [] + - certs: [] defaultContentType: application/json @@ -139,6 +140,9 @@ components: saslScram: type: scramSha256 description: Provide your username and password for SASL/SCRAM authentication + certs: + type: X509 + description: Download the certificate files from service provider parameters: streetlightId: From 83dde954021eaa82912e53f162f316efd0425db4 Mon Sep 17 00:00:00 2001 From: derberg Date: Tue, 21 Dec 2021 16:40:46 +0100 Subject: [PATCH 2/2] updated example after feedback from Dale --- examples/streetlights-kafka.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/examples/streetlights-kafka.yml b/examples/streetlights-kafka.yml index 5e55d12bd..00a1b156d 100644 --- a/examples/streetlights-kafka.yml +++ b/examples/streetlights-kafka.yml @@ -15,13 +15,18 @@ info: url: https://www.apache.org/licenses/LICENSE-2.0 servers: - test: - url: test.mykafkacluster.org:8092 + scram-connections: + url: test.mykafkacluster.org:18092 protocol: kafka-secure - description: Test broker - security: - - saslScram: [] - - certs: [] + description: Test broker secured with scramSha256 + security: + - saslScram: [] + mtls-connections: + url: test.mykafkacluster.org:28092 + protocol: kafka-secure + description: Test broker secured with X509 + security: + - certs: [] defaultContentType: application/json