[Bug]: Missing RoleBinding for ServiceAccount for KafkaConnect custom resource with ApiVersion v1
#12301
Replies: 1 comment 1 reply
-
|
Converting to discussion as this is not really a bug. In general, you are right, you issue seems to be related to the CVE that was fixed in Strimzi 0.49.1. The CVE issue was causing an incorrect Role/RoleBinding to be created whcih gave the Pod access to all Secrets in a namespace. That was a security issue as this access can be easily missused and it was never intended to have such access automatically granted. If you want to use the KubernetesSecretConfigProvider for some configuration in Connect or Connector, you can do it. But you have to create your own Role/RoleBinding with the required permissions together with it. You can see an example here: https://github.com/strimzi/kafka-kubernetes-config-provider?tab=readme-ov-file#using-it-with-strimzi (you just need to change it from ConfigMap to Secret and use the right names). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Description
Hi,
I updated the Strimzi Helm Chart from 0.49.0 to 0.49.1, with that came the update to CRD API version v1. I am not seeing the RoleBinding for the automatically created ServiceAccount for a KafkaConnect resource anymore. In my case, I am using a KafkaConnector that references a Kubernetes Secret in the namespace of the KafkaConnect Pod. After the update, the KafkaConnect pods is unable to retrieve the Secret content due to missing permissions.
After some more research, I assume, that this is related to GHSA-xrhh-hx36-485q which got addressed with 0.49.1. Am I wrong?
Steps to reproduce
Expected behavior
with v0.49.0, Role and Rolebinding did exist with
Strimzi version
0.49.1
Kubernetes version
1.32.4
Installation method
Helm Chart
Infrastructure
Azure AKS (should be irrelevant)
Configuration files and logs
Strimzi Helm Chart values:
KafkaConnectResource:Additional context
https://strimzi.io/docs/operators/0.49.1/deploying#assembly-loading-config-with-providers-str
Beta Was this translation helpful? Give feedback.
All reactions