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

load certificate from file #28

Open
vhsantos opened this issue Jun 16, 2022 · 1 comment
Open

load certificate from file #28

vhsantos opened this issue Jun 16, 2022 · 1 comment

Comments

@vhsantos
Copy link

Hello there,

We want to deploy webseal using the last certificate from sealed-secret, but for now, the only way that we found to make this is changing it directly on the From.js.

Do you know if it is possible one of this options:

  • to load the public certificate from a file or maybe ?
  • load the certificate remotely from sealed-secrets services (sealed-secrets-controller.kube-system:8080/v1/cert.pem) ?

Thanks and attentive.

@revolunet
Copy link
Member

Hi vhsantos, missed your question, sorry.

Different possibilities :

You could use a build environment variable that contain your key, and rebuild+deploy webseal when necessary. Your CI could regularly rebuild the app with the latest cert, provided as env var at build time.

You cannot get the cert.pem client-side directly, because its hosted at another domain and the sealed-secret server doesnt expose CORS headers. This could be remediated with some nginx headers at the ingress level maybe.

Yet another way is to host the .pem somewhere and use fetch client-side to load it dynamically at runtime from the webseal UI

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

2 participants