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

The wws container image doesn't include valid certificates #120

Closed
Angelmmiguel opened this issue Apr 14, 2023 · 0 comments · Fixed by #148
Closed

The wws container image doesn't include valid certificates #120

Angelmmiguel opened this issue Apr 14, 2023 · 0 comments · Fixed by #148
Assignees
Labels
🐛 bug Something isn't working
Milestone

Comments

@Angelmmiguel
Copy link
Contributor

Angelmmiguel commented Apr 14, 2023

Describe the bug

When installing a runtime in the wws container image, it fails due to missing certificates. Since it's a scratch image, it doesn't include any trusted certificate repository.

Reproduction steps

  1. Run docker run --rm ghcr.io/vmware-labs/wws:preview /wws runtimes install python latest
  2. Get the error

These are the logs:

Unable to find image 'ghcr.io/vmware-labs/wws:preview' locally
c1994d4857c7: Download complete
bcdcd7e7fe33: Download complete
eb70f13fc605: Download complete
d018807117cb: Download complete
⚙️  Fetching data from the repository...
❌ There was an error installing the runtime from the repository
👉 error sending request for url (https://workers.wasmlabs.dev/repository/v1/index.toml): error trying to connect: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1919: (unable to get local issuer certificate)

Expected behavior

It properly downloads the runtime and save it.

Additional context

We can install certificates in a fresh container as a previous step and then, copy them in the scratch final image.

@Angelmmiguel Angelmmiguel added the 🐛 bug Something isn't working label Apr 14, 2023
@Angelmmiguel Angelmmiguel self-assigned this Apr 14, 2023
@Angelmmiguel Angelmmiguel added this to the v1.2.0 milestone May 29, 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

Successfully merging a pull request may close this issue.

1 participant