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

Feature request: possibility to manage topics only #51

Closed
mhbrk opened this issue Jan 17, 2021 · 8 comments · Fixed by #54
Closed

Feature request: possibility to manage topics only #51

mhbrk opened this issue Jan 17, 2021 · 8 comments · Fixed by #54
Labels
enhancement New feature or request

Comments

@mhbrk
Copy link

mhbrk commented Jan 17, 2021

Hi,
It's a great tool.
It would be nice to have possibility to manage only kafka topics, without ACLs.

When I tried to plan config file with topics configuration I get this error:

[ERROR] Error thrown when attempting to list Kafka ACLs:
org.apache.kafka.common.errors.SecurityDisabledException: No Authorizer is configured on the broker
[ERROR] An error has occurred during the planning process. No plan was created.

@devshawn devshawn added the enhancement New feature or request label Jan 25, 2021
@devshawn
Copy link
Owner

Hmm, I will take a look into this. I've used it on clusters for only topic management but never had this exception come up.

@Cinetik
Copy link
Contributor

Cinetik commented Jan 27, 2021

This PR quickly fixes it.
I noticed that if you have security enabled, you won't be able to list ACLs using bootstrap servers. However another possibility would be to add a way to connect using Zookeeper and therefore not have this security error.
this works like be using the authorizer-properties and giving zookeeper host e.g.
$ /usr/local/bin/kafka-acls --list --authorizer-properties zookeeper.connect=zookeeper:2181

@jrevillard
Copy link
Contributor

Hi @Cinetik I think this depends on the Kafka version that you use. At least it's possible now because I do it actually. ie:

kafka-acls --command-config /etc/kafka/secrets/ssl.properties --bootstrap-server server1:6667 --list

Best,
Jerome

@Cinetik
Copy link
Contributor

Cinetik commented Jan 27, 2021

@jrevillard I don't know your version but I'm on 2.6.0

@jrevillard
Copy link
Contributor

I'm using kafka packaged by confluent (6.0.X) so 2.6.X also.

@Cinetik
Copy link
Contributor

Cinetik commented Jan 27, 2021

Sadly still doesn't fix the problem that kafka-gitops will fail without any of those :/

@Cinetik
Copy link
Contributor

Cinetik commented Jan 27, 2021

This PR quickly fixes it.
I noticed that if you have security enabled, you won't be able to list ACLs using bootstrap servers. However another possibility would be to add a way to connect using Zookeeper and therefore not have this security error.
this works like be using the authorizer-properties and giving zookeeper host e.g.
$ /usr/local/bin/kafka-acls --list --authorizer-properties zookeeper.connect=zookeeper:2181

Actually closed the PR as it would remove the delete feature.

@devshawn
Copy link
Owner

Released in 0.2.14! Thanks @Cinetik!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
4 participants