Skip to content

os-image: fetch apt over HTTPS in the base image - #151

Open
CMGS wants to merge 2 commits into
mainfrom
feat/https-apt-sources
Open

os-image: fetch apt over HTTPS in the base image#151
CMGS wants to merge 2 commits into
mainfrom
feat/https-apt-sources

Conversation

@CMGS

@CMGS CMGS commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Switches the deb822 ubuntu.sources URIs in the base image from http:// to https:// before the first apt-get update; every flavor inherits it.

Why now: on 2026-09-11 ~06:30–07:10 UTC archive.ubuntu.com and security.ubuntu.com stopped answering on port 80 from GCP us-east4 (two hosts) and from a home ISP, while their HTTPS frontends served InRelease in 0.2–2 s. A guest running the DAX benchmark's apt-get update against the default sources stalled 30 s per index (3.5 min for prepare) and the run timed out. With HTTPS sources the same guest is immune to a port-80 outage; ca-certificates is installed in the same layer, and the sandbox egress proxy already tunnels these hosts over CONNECT.

Cost: one TLS handshake per apt connection. Verified: the image builds, and a 2xlarge guest on the leaderboard host runs the DAX prepare phase through the proxy while port 80 is down.

archive.ubuntu.com and security.ubuntu.com stopped answering on port 80
from three networks at once (GCP us-east4 twice, a home ISP) while their
HTTPS frontends kept serving; a guest running apt-get update against the
default http:// sources then stalled 30 s per index and blew the DAX
benchmark's budget. Every flavor inherits the base sources, and
ca-certificates is already installed before the first apt-get.
The pristine ubuntu image has no CA bundle, so an https apt-get update
before the first install fails; the build fetches over http and the
shipped image carries https sources.
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

Successfully merging this pull request may close these issues.

1 participant