diff --git a/README.md b/README.md index 63f902eb..e8e3b414 100644 --- a/README.md +++ b/README.md @@ -251,6 +251,23 @@ Kafdrop supports TLS (SSL) and SASL connections for [encryption and authenticati * `kafka.keystore.jks`: specifying the private key to authenticate the client to the broker, if mutual TLS authentication is required. * `kafka.properties`: specifying the necessary configuration, including key/truststore passwords, cipher suites, enabled TLS protocol versions, username/password pairs, etc. When supplying the truststore and/or keystore files, the `ssl.truststore.location` and `ssl.keystore.location` properties will be assigned automatically. +### Running from JAR +First create a `kafka.properties` file with the following content: + +```yml +security.protocol=SASL_SSL +sasl.mechanism=SCRAM-SHA-512 +sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required username="foo" password="bar" +``` + +Then run Kafdrop with the following command: + +```shell +java -jar target/kafdrop-.jar \ + --kafka.brokerConnect= \ + --kafka.propertiesFile=./kafka.properties +``` + ### Using Docker The three files above can be supplied to a Docker instance in base-64-encoded form via environment variables: diff --git a/pom.xml b/pom.xml index af5bb497..9e6b05ab 100644 --- a/pom.xml +++ b/pom.xml @@ -97,6 +97,10 @@ org.slf4j slf4j-log4j12 + + io.swagger.core.v3 + swagger-annotations + @@ -179,7 +183,7 @@ org.springdoc springdoc-openapi-starter-webmvc-ui - 2.7.0 + 2.8.1