Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable topic data visibility on AKHQ UI #1904

Closed
nikesh1906 opened this issue Aug 12, 2024 · 6 comments
Closed

How to disable topic data visibility on AKHQ UI #1904

nikesh1906 opened this issue Aug 12, 2024 · 6 comments

Comments

@nikesh1906
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Author

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
Copy link
Collaborator

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

  • Resource TOPIC and action READ granted to the user
  • Either resource CONSUMER_GROUP and action READ granted to the user (because the topics list screen tries to load consumer groups for the topics) or skip consumer groups loading with akhq.ui-options.topic.skip-consumer-groups set to false (https://akhq.io/docs/configuration/akhq.html#topics).
image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

3 participants