strimzi / strimzi-kafka-operator

Apache Kafka® running on Kubernetes
https://strimzi.io/
Apache License 2.0
4.87k stars 1.3k forks source link

Watch all namespaces by UserOperator #5895

Open julienvey opened 3 years ago

julienvey commented 3 years ago

Is your feature request related to a problem? Please describe. It is not currently possible to declare KafkaUser in other namespaces than the one where the user-operator is deployed. For security reasons, we might want to give specific ACLs on namespace and resources for different users.

Describe the solution you'd like We want a way, either a config in Kafka CRD, or an env var, to tell the user-operator to watch for KafkaUser in all namespaces, as we can do for the kafka-operator itself via the var STRIMZI_NAMESPACE=*. It could even reuse this information and watch the same namespace as configured in the kafka-operator

Describe alternatives you've considered A workaround consists of copying secrets from one namespace to another, or putting all users in the same namespace, but we go back to the security issue mentionned above

Additional context Fork of https://github.com/strimzi/strimzi-kafka-operator/issues/4101

pratimsc commented 2 years ago

It will make things easier for Strimzi users if the User operator is able to observe and create user related resource (e.g. secret) in the namespaces where the application reside.

However, until this feature is natively supported by Strimzi User operator, there is a way to achieve this in a secure and clean way, as mentioned in this blog: https://strimzi.io/blog/2021/07/22/using-kubernetes-config-provider-to-load-data-from-secrets-and-config-maps/

Shared it here, as it will help users who are directed to this issue, from various search engines.

luizm commented 2 years ago

However, until this feature is natively supported by Strimzi User operator, there is a way to achieve this in a secure and clean way, as mentioned in this blog:

But unfortunately, it could be used only by java-based clients

scholzj commented 2 years ago

Triaged on 10.5.2022: Makes sense, but the topic is complicated. So proposal is needed. (Note: Topic Operator #1206)

smoke commented 1 year ago

Something I will try to workaround this:

chary1112004 commented 1 year ago

We are also interested in this feature as user should be created inside manifest of tenant.

lenglet-k commented 1 week ago

Hello, do you have any news on this subject ?

ppatierno commented 1 week ago

As already mentioned on Slack ...

as you can see the issue is tagged as help-wanted and need-proposal ... there is no plan to work on it unless getting contributions from the community for now. If you are willing to work on it ... :-)