feat(docker): pin the Docker apt key by checksum

The key that signs the Docker repository was trusted as whatever the URL served. It is now checked
against a pinned sha256, so a changed key stops the install until a person has verified it.

Assisted-by: Claude Code
This commit is contained in:
Defame1297 committed 2026-11-27 22:09:56 +00:00
1 parent b3b62121a3
commit c7c38c6bc0
8 files changed
+78 -2

No files matched your search

+4
View File
@@ -11,6 +11,10 @@ docker_packages:
docker_keyring_path: /etc/apt/keyrings/docker.asc
docker_apt_list_path: /etc/apt/sources.list.d/docker.list
docker_gpg_url: https://download.docker.com/linux/ubuntu/gpg
# sha256 of Docker's package signing key (9DC858229FC7DD38854AE2D88D81803C0EBFCD88), as the ASCII-armored file
# docker_gpg_url serves. Static on purpose: a rotated or re-armored key fails the install until a person has checked the
# new one and updated this hash.
docker_keyring_checksum: "1500c1f56fa9e26b9b8f42452a553675796ade0807cdce11975eb98170b3a570"
docker_repo_base_url: https://download.docker.com/linux/ubuntu
# Architecture written into the APT source. Empty (the default) derives it from the host: x86_64 gives amd64, aarch64 gives arm64, any