Giter VIP home page Giter VIP logo

Comments (11)

ekoutanov avatar ekoutanov commented on May 10, 2024 1

No, it's not configurable.
If you need to run Kafdrop in an environment where topic creation needs to be disabled, then you should run Kafdrop with a dedicated user with read-only ACLs. Then the form will still be available, but trying to create a topic will result in an error.
Alternatively, you can fork and make topic creation configurable. (e.g. topicCreationEnabled=false) Then submit a PR.

from kafdrop.

ekoutanov avatar ekoutanov commented on May 10, 2024

It's always enabled.

from kafdrop.

senthil13 avatar senthil13 commented on May 10, 2024

so we cant run it like a read-only ?

from kafdrop.

senthil13 avatar senthil13 commented on May 10, 2024

Thanks for info, i evaluate which route is suitable for us and implement the same.

from kafdrop.

ahmadshakil avatar ahmadshakil commented on May 10, 2024

Tried user with read only access but got this error

kafdrop.service.KafkaAdminClientException: java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.TopicAuthorizationException: Not authorized to access topics: [Topic authorization failed.]

So cant even view topics

from kafdrop.

calebickler avatar calebickler commented on May 10, 2024

ran into the same problem, I don't have the access to create topics but I still want to browse

from kafdrop.

ahmadshakil avatar ahmadshakil commented on May 10, 2024

I did change in kafdrop.service.KafkaMonitorImpl class method getTopicMetadata and added a try catch to make it work

so the method structure is now
final var topicInfos = highLevelConsumer.getTopicInfos(topics);
final var retrievedTopicNames = topicInfos.keySet();
try{
}
......
}
catch (KafkaAdminClientException exc) {
LOG.warn("Ignoring KafkaAdminClientException in highLevelAdminClient.describeTopicConfigs. This require write ACL enabled on topics");
}
return topicInfos;

from kafdrop.

calebickler avatar calebickler commented on May 10, 2024

Did that work? is there a PR?

from kafdrop.

ahmadshakil avatar ahmadshakil commented on May 10, 2024

Yes it worked form me but I did change on local here is change request but I guess it is not incorporated

#88

from kafdrop.

yychy avatar yychy commented on May 10, 2024

@ahmadshakil, Thanks for your info and disable topic creation is very important for us. Today, I used latest docker image to install kafdrop with a dedicated user with read-only ACLs and I got the same error "org.apache.kafka.common.errors.TopicAuthorizationException: Not authorized to access topics: [Topic authorization failed.]". It looks like the fix is not in latest docker image yet. Do you know when the new image will be built for the fix?

from kafdrop.

calebickler avatar calebickler commented on May 10, 2024

That fix ain't going in, someone needs to open a PR where you can pass in a env variable for disable topic creation and skip the erroring code.

Alternatively, you can fork and make topic creation configurable. (e.g. topicCreationEnabled=false) Then submit a PR.

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.