kafka-ops / julie

A solution to help you build automation and gitops in your Apache Kafka deployments. The Kafka gitops!
MIT License
418 stars 113 forks source link

Support transactionId prefix for clients #503

Closed chromy96 closed 2 years ago

chromy96 commented 2 years ago

As a user of KTB, I would like to set up transactionalId ACLs for both producers and consumers that use prefixed ACLs. The way this is implemented today, it only allows for literal ACLs.

This is needed for spring-kafka clients. Spring-kafka defines a pool of producers with the same transactionIdPrefix and then each producer gets a transactionalId in the form of transactionalIdPrefix + n, where n starts with 0 and is incremented for each new producer (source: https://docs.spring.io/spring-kafka/reference/html/#transactions)

Describe the solution you'd like I suggest adding another property called transactionIdPrefix and validate that only one of the [transactionId, transactionIdPrefix] id defined for the client. For the transactionIdPrefix julieOps would generate PREFIXED Write and Describe ACLs on TransactionalId resource.

chromy96 commented 2 years ago

Duplicate of https://github.com/kafka-ops/julie/issues/270