yahoo / CMAK

CMAK is a tool for managing Apache Kafka clusters
Apache License 2.0
11.84k stars 2.51k forks source link

read-only kafka manager #227

Open sidcley opened 8 years ago

sidcley commented 8 years ago

Hello there,

We would like to propose a feature where kafka-manager becomes read-only. That flag would remove any functionality where you can do things like (add partition, add topic,...) from the UI. This is required for our production environments where we want people to see what is going on in kafka but not necessarily perform any change.

patelh commented 8 years ago

You can already do this, just change the application features in the conf file.

ghughal commented 8 years ago

Thanks @patelh . If you can provide rest api to provision cluster like requested in #226 I think we can disable all features and just use rest api to add cluster and use it in read-only mode.

liuxialong commented 8 years ago

@patelh Can you tell me where I can change the read-only mode in conf file? I only find the login-in Authentication.

DavidLiuXh commented 8 years ago

@liuxialong application.features=["KMClusterManagerFeature","KMTopicManagerFeature","KMPreferredReplicaElectionFeature","KMReassignPartitionsFeature"]

ilyai commented 7 years ago

Nice feature. Also I have a question. Where does kafka manager stores its state, i.e. clusters and their settings? How do I backup it or clean everything for example?

abhinigam commented 6 years ago

@sidcley We have the exact same use case as you. We want a read-only version of kafka manager. What features did you enable to do this?

aseev-xx commented 6 years ago

+1

jbanton-dm commented 6 years ago

To make it more clear if you delete the features out of this config, it will be read only more or less.

application.features=["KMClusterManagerFeature","KMTopicManagerFeature","KMPreferredReplicaElectionFeature","KMReassignPartitionsFeature"]

Aracki commented 3 years ago

This is not working with 3.0.0.5 kafka manager. I can still create/delete topics without application.features in place.