-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add ACL api to KafkaAdminClient #1833
Conversation
Thank you! I don't have time today to review, hopefully tomorrow. But I did restart all the travis flakes--looks like for some reason a bunch of them failed to download the Kafka/Zookeeper binaries used by the integration tests |
It looks like the downloads failed again on a few of the builds, would you be able to restart them again? |
Is there any update on this PR? This is something that would help me out a great deal and glad to see it has been developed and hopefully passes the tests to be merged. |
Thanks for the nudge, I'll try to review it later today. I just restarted the travis tests that had failed to download things... |
I am not a Travis expert, but it looks like 1 test fails in the pypy2.7-6 version.
Just wanted to give another nudge - thanks again for your hard work on this! |
Just a friendly nudge to check if you would have time to review this PR. The last test run seems to have a failed test b.c the test kafka cluster not starting properly. More tests is actually something that might need to get fixed for this PR to land I guess. I'll have a look at that in a few days. |
Had to add 2 lines to all of the kafka.properties files. One to enable the ACL feature in kafka, and the other to allow the test clients to do stuff without fiddling with authentication
Ping @jeffwidman. I'm sorry to bother you, but would you have time to have a look though this PR? I've now also added a basic integration test for the KafkaAdminClient ACL handling methods, so at least there is now 1 basic check that it all works. And everything is finally green in travis as well now =) |
Is there any update on this PR? Waiting for more than 4 months :) |
For anyone impatient to try this out, it's possible to install this specific commit of kafka-python using
I realise this might not be an option if you need this for a production environment, but for testing it should work. Also, remember the maintainers are probably doing this for free on their spare time. I'm providing this PR with no expectation that they have to accept it, nor any expectation that they follow up within a certain time. There are any number of reasons for the wait, all of them valid. I'd be happy if it got landed, but that's as far as I'd go. They're the one's having to maintain this after the merge, not me. So, please be patient =) |
Hi all -- I reviewed and this looks great. Thanks so much for working on this and submitting the PR. And thanks for the patience! I'm working to put together a new release, 1.4.7, and I'm going to merge this for inclusion. |
I have been unable to get the integration tests to pass on travis and have disabled them manually in Brokers are returning this error:
See for example https://travis-ci.org/dpkp/kafka-python/jobs/590957368 |
I recognize that error. It's because a test run is being made with a kafka config not setting an authorizer. Like this: https://github.com/dpkp/kafka-python/pull/1833/files#diff-204dbafdfb1e1695769a930f103f98ddR33-R34 I either missed something in my test config, or new versions of kafka is being tested against in master that I did not include the authorizer config for, or that I don't explicitly skip in the test. Edit: |
@ulrikjohansson when you fix that, do you mind making sure to fix in a way that's compatible with #1193? In particular, that PR removes all unittest dependencies in favor of You can see how the tests added here are now breaking #1193 here: https://travis-ci.org/dpkp/kafka-python/builds/593248509 |
@dpkp It looks like the missing kafka server config settings have been added into master already, along with a few other fixups. Update: nevermind, unless I'm missing something, it was a pretty straightforward fix. It looks like the test works fine on all the travis kafka versions now as well. |
This is a new attempt at creating user friendly ACL management methods to KafkaAdminClient.
It's building on top of the previous PR (#1646) that only got the protocol stuff merged b.c there were remaining issues to deal with in the api part, and not much time. I think I've covered all the feedback from that PR in this one.
I'm ready for a new round of review, hopefully I can find enough time for fixes and tweaks to land the whole thing this time =)
Fixes #1638
This change is