Jaydee94 / kubeseal-webgui

This is a simple web ui for Bitnami Sealed Secrets.
Apache License 2.0
75 stars 19 forks source link

kubeseal-webgui : TypeError: Failed to fetch #198

Closed SoufianeEddiry closed 1 year ago

SoufianeEddiry commented 1 year ago

Describe the bug After installing sealed secrets and the kubeseal-webgui to manage , I got TypeError: Failed to fetch.

To Reproduce Steps to reproduce the behavior:

  1. Install à vanilla k8s cluster + Ingress Controller
  2. helm repo add sealed-secrets https://bitnami-labs.github.io/sealed-secrets
  3. helm install sealed-secrets-controller sealed-secrets/sealed-secrets -n kube-system.'
  4. helm repo add kubesealwebgui https://jaydee94.github.io/kubeseal-webgui/
  5. helm install kubeseal-gui kubesealwebgui/kubeseal-webgui --set sealedSecrets.autoFetchCert=true --set ingress.enabled=true --set ingress.hostname=webseal.dev.local

Expected behavior Managing sealedsecret via the Web GUI : webseal.dev.local

Screenshots image

Additional context N/A

Jaydee94 commented 1 year ago

Hey @SoufianeEddiry. Can you please open a Browser console and have a look at the failed request.

If you use Google Chrome you should be able to open the console with F12.

That would ne helpful to solve this issue.

SoufianeEddiry commented 1 year ago

Hey @Jaydee94 ,

I added the api.url with the Helm command and its Ok now. the other issue is that the sealed secret operator decrypts sealed secret generated by the kubeseal-webgui with "strict" scope but cannot decrypts those with a "cluster-wide" scope ??

Jaydee94 commented 1 year ago

@SoufianeEddiry I will try to repruduce this and answer you soon.

SoufianeEddiry commented 1 year ago

Thank you sir

SoufianeEddiry commented 1 year ago

You need to add this annotation to the generated sealedsecret file: annotations: sealedsecrets.bitnami.com/cluster-wide: "true"

Jaydee94 commented 1 year ago

@SoufianeEddiry The correct annotations will be rendered with the new release 4.2.0.

I will close this issue.