akhq icon indicating copy to clipboard operation
akhq copied to clipboard

Handle Kafka users with no configs acls (remove page not found popup)

Open clarknova9 opened this issue 4 years ago • 2 comments

Hi

I have AKHQ configured to connect to Amazon MSK brokers with consumer only permission. When I drill down to a topic, I get the warning notification in the screenshot bellow. I believe the issue is the account I use to connect to the MSK broker does not have access to view the topic config which AKHQ is attempting to access. I think there is already another ticket for this but I don't see a way to restrict a reader only security role in AKHQ from attempting to access the topic config when loading a topic.

image

The error in the browser console is the following:

configs
message: "Page Not Found"
_links: {self: {href: "/api/kafka-test/topic/example/configs", templated: false}}
  self: {href: "/api/kafka-test/topic/example/configs", templated: false}
    href: "/api/kafka-test/topic/example/configs"
    templated: false

clarknova9 avatar Dec 13 '20 00:12 clarknova9

Hi, you are right ! We fetch topic configuration in order to display some button. We need to find a way to disable this feature and don't display topic configuration if the user don't have topic configs acls

tchiotludo avatar Dec 18 '20 06:12 tchiotludo

We're experiencing this issue, too. Would appreciate a solution for this one.

Grishnackh avatar Apr 14 '21 21:04 Grishnackh