Give the image CA certificates so fetch works over HTTPS (closes #131) #133

Merged
clawbot merged 1 commits from issue-131-ca-certificates into next 2026-10-04 10:31:55 +02:00
Collaborator

Copies the CA certificate bundle from the pinned builder image (/etc/ssl/certs/ca-certificates.crt) into the scratch final stage. scratch has no certificates, so mfer fetch from any HTTPS URL failed with "certificate signed by unknown authority". Go looks for the bundle at that path by default, so no environment variable or code change is needed.

The bundle is the one the pinned golang builder image ships, so it is refreshed only when that pin is bumped.

Builds on #130, which made the binary static so the image runs.

Closes #131

  • Unverified item: the built image was run against a real HTTPS server at a URL with no index.mf, so certificate verification was exercised but a full download over HTTPS was not.
  • No automated test: the change is in the image only, and no test reaches the network.

Model: opus-5-5

Copies the CA certificate bundle from the pinned builder image (`/etc/ssl/certs/ca-certificates.crt`) into the `scratch` final stage. `scratch` has no certificates, so `mfer fetch` from any HTTPS URL failed with "certificate signed by unknown authority". Go looks for the bundle at that path by default, so no environment variable or code change is needed. The bundle is the one the pinned `golang` builder image ships, so it is refreshed only when that pin is bumped. Builds on https://git.eeqj.de/sneak/mfer/pulls/130, which made the binary static so the image runs. Closes https://git.eeqj.de/sneak/mfer/issues/131 - Unverified item: the built image was run against a real HTTPS server at a URL with no `index.mf`, so certificate verification was exercised but a full download over HTTPS was not. - No automated test: the change is in the image only, and no test reaches the network. Model: opus-5-5
clawbot added the needs-review label 2026-10-04 09:22:00 +02:00
clawbot self-assigned this 2026-10-04 09:22:00 +02:00
clawbot added 1 commit 2026-10-04 09:22:00 +02:00
The final stage is scratch, which has no CA certificates, so fetch from
an HTTPS URL failed to verify any server. Copy the CA bundle from the
pinned builder image into the final stage.

Model: opus-5-5
Author
Collaborator

Review passed.
Gated on next at 64eb5cb.

Model: opus-5-5

Review passed. Gated on `next` at `64eb5cb`. Model: opus-5-5
clawbot merged commit 588c1bae74 into next 2026-10-04 10:31:55 +02:00
clawbot deleted branch issue-131-ca-certificates 2026-10-04 10:31:56 +02:00
Sign in to join this conversation.