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:
1 parent
b3b62121a3
commit
c7c38c6bc0
8 files changed
+78
-2
No files matched your search
@@ -49,6 +49,13 @@ argument_specs:
|
||||
default: https://download.docker.com/linux/ubuntu/gpg
|
||||
description:
|
||||
- URL of the repository signing key.
|
||||
docker_keyring_checksum:
|
||||
type: str
|
||||
default: 1500c1f56fa9e26b9b8f42452a553675796ade0807cdce11975eb98170b3a570
|
||||
description:
|
||||
- >-
|
||||
sha256 (hex) of the key at C(docker_gpg_url). The download fails on a mismatch, so a rotated or re-armored
|
||||
upstream key stops the install until the new key is checked and the hash updated.
|
||||
docker_repo_base_url:
|
||||
type: str
|
||||
default: https://download.docker.com/linux/ubuntu
|
||||
|
||||
Reference in new issue
Block a user