Open julienvey opened 3 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.
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
Triaged on 10.5.2022: Makes sense, but the topic is complicated. So proposal is needed. (Note: Topic Operator #1206)
Something I will try to workaround this:
KafkaUser
declaration in the kafka
namespace
the strimzi
operator will detect the KafkaUser
declaration or changes over it and using the information there - it will create corresponding secret in the kafka
namespacekafka
namespace to whichever namespace we will have need of them
this will hopefully ensure that in case the KafkaUser certificates are rotated or renewed due to upcoming expiration - the secrets will be updatedWe are also interested in this feature as user should be created inside manifest of tenant.
Hello, do you have any news on this subject ?
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 ... :-)
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-operatorDescribe 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