Skip to content

Pick up ca-certificates 20250419+deb13u1 and remove what the image doesn't use - #323

Merged
ericmj merged 2 commits into
mainfrom
update-ca-certificates
Oct 21, 2026
Merged

ericmj merged 2 commits into
mainfrom
update-ca-certificates

Conversation

@ericmj

@ericmj ericmj commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Moving the base to trixie-20261005-slim rebuilds the cached layer that installs ca-certificates, so it gets 20250419+deb13u1 (DSA-6572-1). Also bumps castore to 1.0.22, and AWS_CA_BUNDLE makes awscli use the system's CA bundle instead of the one it ships.

The second commit removes what the image installs and nothing runs. That's google-cloud-cli, since nothing has called gcloud or gsutil since e70a235, along with gnupg, apt-transport-https and etc/boto, which were only there for it. It also drops the build-essential and -dev packages that pip install awscli needed before awscli was the Debian package, zip, and the build stage's git and build-essential, since no dependency is a git checkout or compiles C. utils.sh and the prepare_*_builds_text.exs scripts are deleted; nothing calls them, and Bob.Artifacts generates builds.txt from the database. The key file cosign signs with moves from /boto to /gcp. The image goes from 2.14 GB to 0.77 GB, and every command the job scripts run is still in it.

Moving the base to trixie-20261005-slim rebuilds the cached layer that
installs ca-certificates, so it gets 20250419+deb13u1 (DSA-6572-1).
AWS_CA_BUNDLE makes awscli use the system's CA bundle instead of the
one it ships.
Nothing has called gcloud or gsutil since the docs scripts were removed
in e70a235, so google-cloud-cli goes, with gnupg and
apt-transport-https, which were only there to install it, and
etc/boto, which only gsutil read. The key file cosign signs with moves
from /boto to /gcp.

build-essential, libffi-dev, libssl-dev and python3-dev were for
pip install awscli, and awscli is the Debian package now. No job script
runs zip, and tar and gzip are part of the base image. In the build
stage, no dependency is a git checkout or compiles C, so git and
build-essential go too.

utils.sh lost its last caller in e70a235, and the
prepare_*_builds_text.exs scripts rebuilt builds.txt from S3 listings,
which Bob.Artifacts generates from the database now.
@ericmj ericmj changed the title Pick up ca-certificates 20250419+deb13u1 and castore 1.0.22 Pick up ca-certificates 20250419+deb13u1 and remove what the image doesn't use Oct 21, 2026
@ericmj
ericmj merged commit 2ca55c8 into main Oct 21, 2026
8 checks passed
@ericmj
ericmj deleted the update-ca-certificates branch October 21, 2026 15:21
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