Skip to content
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-integration unable to deploy from scratch via ArgoCD using externalSecrets #331

Open
juhosyrjanen opened this issue May 13, 2024 · 0 comments

Comments

@juhosyrjanen
Copy link

juhosyrjanen commented May 13, 2024

Hello,

wiz-kubernetes-integration is unable to deploy from scratch with ArgoCD when passing secrets with External-Secrets. Reason for this is dependency on Kubernetes secrets in job/wiz-kubernetes-connector-create-connector, it will naturally not be able to run without secrets being present.

With external-secrets Kubernetes secrets are not created within the deployment, instead an ExternalSecret resource is created which is syncing with external vault and then creating Kubernetes secrets.

As The Helm template has a dependency to Kubernetes secrets, the deployment fails

│   Warning  Failed     9s (x2 over 9s)  kubelet            Error: secret "wiz-sa" not found                                                                                      

We are deploying Wiz via ArgoCD using Kustomize + Helm:

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: wiz

resources:
  - namespace.yml
  - secrets.yml

helmCharts:
- name: wiz-kubernetes-integration
  repo: https://charts.wiz.io/
  releaseName: wiz-kubernetes-integration
  namespace: wiz
  valuesFile: values.yml
  version: 0.1.95

ExternalSecrets are defined in the secrets.yml file. While deploying this manually directly via Kustomize the deployment will work as ExternalSecrets are created with kustomize build --enable-helm | kubectl apply -f -, with ArgoCD deployment will remain OutOfSync.

Could the chart be improved upon a bit an allow this sort of use case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant