tchiotludo / akhq

Kafka GUI for Apache Kafka to manage topics, topics data, consumers group, schema registry, connect and more...
https://akhq.io/
Apache License 2.0
3.42k stars 661 forks source link

How to disable topic data visibility on AKHQ UI #1904

Closed nikesh1906 closed 2 months ago

nikesh1906 commented 3 months ago

Hi Team, I don’t to view topic data on AKHQ UI due to some compliance, is there a way to disable topic data visibility in UI.

nikesh1906 commented 3 months ago

Hi @tchiotludo can you please help on this, we don’t want to see any topic data on the UI is there a way to disable it or is there a way to mask all the data for all the topics. I tried data masking but it’s not working.

nikesh1906 commented 3 months ago

Hi @tchiotludo @AlexisSouquiere @lucapette Can anyone of you please help with this request. We don’t want to see any data on the UI and mask all the visible data. Can you please provide a way to implement this.

alozano3 commented 3 months ago

Hi, you can achieve that by not granting the READ action to the TOPIC_DATA resource in your application.yml. You can check the documentation for more information https://akhq.io/docs/configuration/authentifications/groups.html.

nikesh1906 commented 2 months ago

Hi @alozano3 If i remove READ action from TOPIC_DATA I am not able to view any of the topics and topic tab is completely vanished from UI. Only Nodes, Consumer Group and Settings tabs are visible.

nikesh1906 commented 2 months ago

Hi @alozano3 I removed [TOPIC_DATA] from topic admin role after restarting the entire akhq-ui is blank no data is visible. If i remove READ action I can’t see any topics in akhq-ui only nodes, consumer groups are visible.

AlexisSouquiere commented 2 months ago

I'm able to achieve what you need with the following setup:

image

Please reopen if it doesn't work and give your configuration to investigate