Comments (11)
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.
It's always enabled.
from kafdrop.
so we cant run it like a read-only ?
from kafdrop.
Thanks for info, i evaluate which route is suitable for us and implement the same.
from kafdrop.
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.
ran into the same problem, I don't have the access to create topics but I still want to browse
from kafdrop.
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.
Did that work? is there a PR?
from kafdrop.
Yes it worked form me but I did change on local here is change request but I guess it is not incorporated
from kafdrop.
@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.
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)
- When I try to view the message i see this error
- Kafdrop failing to connect with Kafka broker running on docker HOT 2
- kafdrop with sasl plein text auth timeout
- in KRaft mode, WARN: Broker may not be available HOT 2
- Unable to disable vulnerable TLS protocols TLSv1, TLSv1.0 HOT 2
- Please help create new release & image HOT 3
- Arm64 container images HOT 1
- Kafdrop 4 complains about missing key store password though keystore was not set HOT 7
- Kafdrop 4.0.0 Docker image doesn't start HOT 15
- Invalid value SASL_PLAINTEXT HOT 3
- StackOverflow exception HOT 3
- I can't connect Broker when i run by Docker on Mac M1 HOT 2
- Only one node in the cluster is available, but kafdrop shows all nodes are online HOT 2
- When running kafdrop in a separate container, I can't configure the kafka broker address. HOT 2
- IllegalFormatConversionException on Long Search Queries in Message Search HOT 2
- Is there any way to hide the messages from kafdrop as in PROD it is not suitable to show the messages of eventhub or kafka HOT 5
- I cannot view messages within the topics. (No messages found in partition 0 at offset 0)
- arm64 architecture HOT 2
- Does it support deployment with spring native ? HOT 1
- NPE HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kafdrop.