Added support for using oauth token for Kafka
[nonrtric/plt/ranpm.git] / pmproducer / config / application.yaml
index 27885f1..0e611b5 100644 (file)
@@ -80,12 +80,22 @@ app:
 
   # The url used to adress this component. This is used as a callback url sent to other components.
   pm-producer-base-url: https://localhost:8435
-  # KAFKA boostrap servers. This is only needed if there are Information Types that uses a kafkaInputTopic
-  # several redundant boostrap servers can be specified, separated by a comma ','.
+
   kafka:
+    # KAFKA boostrap servers.
+    # Several redundant boostrap servers can be specified, separated by a comma ','.
     bootstrap-servers: localhost:9092
     # The maximum number of records returned in a single call to poll() (default 100)
     max-poll-records: 500
+    # Configues if oath2 tokens shall be used. If set to true, auth-token-file must also be configured
+    use-oath-token: false
+    ssl:
+      key-store-type: PEM
+      key-store-location:
+      # key password is needed if the private key is encrypted
+      key-store-password:
+      trust-store-type: PEM
+      trust-store-location:
   # If the file name is empty, no authorization token is used
   auth-token-file:
   pm-files-path: /tmp