-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wiz-kubernetes-connector] Connector secret created by Helm chart is not accepted by deployment #156
Comments
We are experiencing similar problems with the connector secret:
|
Hey @alfredkrohmer and @uri-peled-unit |
Hey @lir-wiz , About your question. Actually, I set it to true, and it is still not working for us,
|
Can you try again using those values and let me know if it works please? |
@lir-wiz I'm observing an identical issue with my setup. The expected key
|
This issue can happen if the connector creation Job fails. Can you please verify that the Job ran successfully? |
After troubleshooting and fixing the connector creation Job, the connector secret was created successfully and subsequently mounted. Thanks! |
I am facing a similar issue while deploying wiz helm chart on k8s clusters. I get the below error when enabling autoCreateConnector. I cannot see any logs and not sure where the problem is. I am using 2.4.4 helm chart with wiz-broker:2.4 image. The same chart works in few other kubernetes clusters, but failing on few
$ kubectl get pod |
@lir-wiz how are you doing ? I have been following the wiz documentation to deploy in our clusters but this showing this error {"level":"info","time":"2024-05-17T15:03:22.402277833Z","msg":"Creating kubernetes connector","apiServerEndpoint":"https://kubernetes.default.svc.cluster.local","serviceType":"GKE","connectorName":"","clusterExternalID":"f41b840d06cc04ad4b6c0cdcd379c79afe2936d9e96e4320892d1a3068274daf","isOnPrem":true}
Error: failed creating kubernetes connector: rpc error: code = Unauthenticated desc = Unauthorized - Service account accessed unauthorized service
{"level":"fatal","time":"2024-05-17T15:03:22.506388673Z","msg":"Failed executing entrypoint","error":"failed creating kubernetes connector: rpc error: code = Unauthenticated desc = Unauthorized - Service account accessed unauthorized service"} I am using this values: global:
wizApiToken:
secret:
create: false
name: "wiz-api-token"
wiz-kubernetes-connector:
enabled: true
autoCreateConnector:
enabled: true
clusterFlavor: GKE
broker:
enabled: true
serviceAccount:
create: true
name: "wiz-broker"
wizConnector:
createSecret: true
secretName: wiz-connector-autocreated-secret
wiz-sensor:
enabled: true
imagePullSecret:
create: false
name: "wiz-sensor-imagepullkey"
wiz-admission-controller:
enabled: true
webhook:
errorEnforcementMethod: "AUDIT"
policyEnforcementMethod: "AUDIT" |
Hi @miltlima, Ofir Cohen from the Kubernetes team in Wiz.
If you want to be on the safe side and keep things stupid and simple, I would suggest to do the following:
If that still doesn't work, let's continue on the official channels and assist you with this issue. |
Thanks @ofirc-wiz I solved it, the SA role was wrong ! |
I am facing the same issue. After changing the helper file I made it work. Also added elements to the chart
the values file now looks like this:
TargetIP can be set under broker.
I was able to set the port separately |
See here:
This creates the connector secret with several keys, however the deployment requires a single
connectorData
key (supposedly in JSON format) instead: https://github.com/wiz-sec/charts/blob/master/wiz-kubernetes-connector/templates/wiz-broker-deployment.yaml#L38-L43Also, when adding a Kubernetes connector in the wiz.io console, a
kubectl
command is shown to create this secret manually, this also uses multiple keys in the secret instead of a singleconnectorData
key.The text was updated successfully, but these errors were encountered: