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

kubeseal-webgui : TypeError: Failed to fetch #198

Closed
SoufianeEddiry opened this issue Dec 29, 2022 · 6 comments
Closed

kubeseal-webgui : TypeError: Failed to fetch #198

SoufianeEddiry opened this issue Dec 29, 2022 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@SoufianeEddiry
Copy link

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

@SoufianeEddiry SoufianeEddiry added the bug Something isn't working label Dec 29, 2022
@Jaydee94
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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

@SoufianeEddiry
Copy link
Author

Thank you sir

@SoufianeEddiry
Copy link
Author

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

@Jaydee94
Copy link
Owner

Jaydee94 commented Jan 7, 2023

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

I will close this issue.

@Jaydee94 Jaydee94 closed this as completed Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants