Giter Club home page Giter Club logo

Comments (4)

ekoutanov avatar ekoutanov commented on May 18, 2024

Not out of the box. Your choices are to either:

  1. Configure SpringBoot to serve HTTPS traffic, and deploy a certificate
  2. Put a reverse proxy or a TLS-capable load-balancer in front of Kafdrop

from kafdrop.

KhoiDinh avatar KhoiDinh commented on May 18, 2024

Do I need to alter the kafdrop code itself? or pass in a custom application.yml file that will support https connection?

I have set up a special application.yml file with these contents:

spring:
  jmx:
    enabled: true
    default_domain: Kafdrop
  jackson:
    deserialization:
      fail_on_unknown_properties: false
      read_unknown_enum_values_as_null: true

management:
  endpoints:
    web:
      base-path: /actuator
      exposure.include: "*"
  server:
    port: 9000

kafdrop.monitor:
  clientId: Kafdrop

kafka:
  brokerConnect: localhost:9092
  isSecured: false
  saslMechanism: "PLAIN"
  securityProtocol: "SASL_PLAINTEXT"

zookeeper:
  connect: localhost:2181

server:
  ssl:
    key-store: C:\Users\dinh\Desktop\kafdropUpdated\kafdrop-3.18.1\target\server.keystore.jks
    key-store-password: password
    key-store-type: JKS
    key-alias: synopsys
    key-password: password
  port: 8443

The command to run kafdrop is:

java -jar kafdrop-3.19.0-SNAPSHOT.jar --zookeeper.connect=10.15.164.233:2181 --kafka.brokerConnect=10.15.164.233:9093 --kafka.properties="C:\Users\dinh\Desktop\kafkaUI\kafdrop-master\kafdrop-master\target\kafka.properties" -Dspring.config.location=C:\Users\dinh\Desktop\kafdropUpdated\kafdrop-3.18.1\target\application.yml

When I try to access "https://localhost:9000" I get the error:

javax.net.ssl.SSLHandshakeException: no cipher suites in common
        at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131)
        at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:117)
        at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:307)
        at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:263)
        at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:254)
        at java.base/sun.security.ssl.ServerHello$T12ServerHelloProducer.chooseCipherSuite(ServerHello.java:460)
        at java.base/sun.security.ssl.ServerHello$T12ServerHelloProducer.produce(ServerHello.java:295)
        at java.base/sun.security.ssl.SSLHandshake.produce(SSLHandshake.java:436)
        at java.base/sun.security.ssl.ClientHello$T12ClientHelloConsumer.consume(ClientHello.java:1102)
        at java.base/sun.security.ssl.ClientHello$ClientHelloConsumer.onClientHello(ClientHello.java:854)
        at java.base/sun.security.ssl.ClientHello$ClientHelloConsumer.consume(ClientHello.java:813)
        at java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:392)
        at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:443)
        at java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask$DelegatedAction.run(SSLEngineImpl.java:1074)
        at java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask$DelegatedAction.run(SSLEngineImpl.java:1061)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:689)
        at java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask.run(SSLEngineImpl.java:1008)
        at io.undertow.protocols.ssl.SslConduit$5.run(SslConduit.java:1072)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Wor

Could you possibly add a ReadMe section that explains how to do so?

from kafdrop.

ekoutanov avatar ekoutanov commented on May 18, 2024

I'm not sure of the ssl configuration for SpringBoot

from kafdrop.

ekoutanov avatar ekoutanov commented on May 18, 2024

Closing due to inactivity.

from kafdrop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.