cruise-control icon indicating copy to clipboard operation
cruise-control copied to clipboard

Kafka 351 deps for CVE 2023 34455

Open cesaroangelo opened this issue 1 year ago • 10 comments

This PR resolves #CVE-2023-34455, #CVE-2023-34462.

kafka: update from 3.1.0 to 3.5.1 due to CVE-2023-34455 zookeeper: update to the latest stable recommended release netty: update due to CVE-2023-34462 jetty: update to the latest stable minor release vertx: update to the latest stable minor release

cesaroangelo avatar Sep 07 '23 13:09 cesaroangelo

Hi @cesaroangelo , thanks for the change. Since LinkedIn is still using kafka 3.0 internally, we will probably not merge this PR for now. Or is that possible if we only bump up other dependencies and leave kafka version as what it is now?

CCisGG avatar Sep 11 '23 17:09 CCisGG

Hi @CCisGG, thanks for the feedback. This PR (https://github.com/linkedin/cruise-control/pull/2060) would bump up the only dependencies needed to fix those CVEs, especially the high severity one CVE-2023-34455.

cesaroangelo avatar Sep 14 '23 19:09 cesaroangelo

@CCisGG Is it possible to start a separate branch? And use this branch to support kafka 3.5+ and 3.6+? Since kafka has iterated too many times on the 3.x branch, it has added a lot of new features. CC is still stuck at 3.1.0. This is not very user-friendly.

BsoBird avatar Oct 11 '23 06:10 BsoBird

@CCisGG Is it possible to start a separate branch? And use this branch to support kafka 3.5+ and 3.6+? Since kafka has iterated too many times on the 3.x branch, it has added a lot of new features. CC is still stuck at 3.1.0. This is not very user-friendly.

Hi @BsoBird, thanks for the feedback. Just curious, is there anything that blocking you from use the current CC version on kafka 3.5+? If so, we would be interested in knowing about more details. Thanks!

CCisGG avatar Oct 11 '23 22:10 CCisGG

@CCisGG HI. I just saw several pr's rejected for upgrading the kafka version and guessed that CC can only work with kafka version 3.1.X at the moment.

BsoBird avatar Oct 12 '23 01:10 BsoBird

Hi @BsoBird , thanks for the feedback. I think using CC with higher kafka version shouldn't cause any issues, which should unblock any users on Kafka 3.2 or higher. As for the kafka version change in cc, we are still on the conservative side. For any open PRs involving kafka version change, we would recommend to split the PR into kafka version bump and other version bumps, so that we could ship the version bumps for other CVE.

CCisGG avatar Oct 12 '23 16:10 CCisGG

@CCisGG Since KAFKA 3.6.X supports tiered storage, we think this is a very important feature. Would it be possible to consider upgrading CC's kafka version to 3.6.1+?

BsoBird avatar Dec 06 '23 03:12 BsoBird

Hi @BsoBird , I think you can actually use current CC version to manage kafka 3.6.+ clusters. Could you please try it?

CCisGG avatar Dec 06 '23 17:12 CCisGG

I think you can actually use current CC version to manage kafka 3.6.+ clusters. Could you please try it?

@CCisGG I can confirm that the current CC version can manage Kafka 3.6.+ clusters, we use it for our Kafka Kubernetes Operator [1]

That being said, if it is not too much maintenance overhead for the maintainers it may be worth creating a migrate_to_kafka_3_5 branch (just like we have a migrate_to_kafka_2_5 branch) to merge changes like these. It would help us collaborate across projects to test CC with the latest Kafka features and address common CVEs!

[1] https://github.com/strimzi/strimzi-kafka-operator

kyguy avatar Dec 18 '23 16:12 kyguy

@mhratson @efeg I'd like your inputs since next quarter I'll be less involved for CC related work.

CCisGG avatar Dec 19 '23 23:12 CCisGG

We are using the kafka 3.6.1 on kraft model

  1. Could latest cc support kraft model without zookeeper?
  2. Could "zookeeper.connect" be ignored to be set in config/cruisecontrol.properties?

medivh511 avatar Feb 21 '24 07:02 medivh511

@medivh511 I believe the answer is yes for both.

CCisGG avatar Feb 21 '24 17:02 CCisGG

@kyguy We recently discussed internally that we would try to bump up the kafka version soon.

CCisGG avatar Feb 21 '24 17:02 CCisGG

Thanks for the information @CCisGG, I am available to help out wherever needed here and in other places, feel free to send any issues my way

kyguy avatar Feb 21 '24 17:02 kyguy

@kyguy our only concern is whether kafka 3.5.1 is compatible with our internal 3.1.0 version, and I would assume it's likely backwards compatible. We can give it a try by merge it and bake it for sometime. Just as a notice, if it doesn't work somehow, we will have to revert this PR. Hopefully everything goes well.

CCisGG avatar Feb 21 '24 17:02 CCisGG

@mhratson fyi. This is the PR that bumps kafka version. I will publish the version and bring this in.

CCisGG avatar Feb 21 '24 18:02 CCisGG