Skip to content

fix(bootstrap): rename apt keyring to .gpg, drop SHA1/MD5, remove dead md5sum code#2121

Merged
twangboy merged 2 commits into
saltstack:developfrom
twangboy:fix_hash_and_keyring
Jul 10, 2026
Merged

fix(bootstrap): rename apt keyring to .gpg, drop SHA1/MD5, remove dead md5sum code#2121
twangboy merged 2 commits into
saltstack:developfrom
twangboy:fix_hash_and_keyring

Conversation

@twangboy

Copy link
Copy Markdown
Contributor

What does this PR do?

apt only recognizes .gpg (binary) or .asc (armored) keyring extensions; salt-archive-keyring.pgp was silently ignored, causing NO_PUBKEY/unsigned repository failures on newer apt (saltstack/salt#69740). Rename the keyring bootstrap writes to .gpg and rewrite the fetched salt.sources Signed-By line to match, so this fix doesn't depend on salt-install-guide's release timing.

Also remove SHA1 and MD5 as selectable Get-FileHash algorithms in the PowerShell scripts, and delete the unused md5sum-based __fetch_verify() function from bootstrap-salt.sh.

Add a regression test asserting the apt keyring is trusted and apt-get update succeeds without NO_PUBKEY/unsupported-filetype errors.

What issues does this PR fix or reference?

saltstack/salt#69740

twangboy added 2 commits July 10, 2026 10:18
…d md5sum code

apt only recognizes .gpg (binary) or .asc (armored) keyring extensions;
salt-archive-keyring.pgp was silently ignored, causing NO_PUBKEY/unsigned
repository failures on newer apt (saltstack/salt#69740). Rename the
keyring bootstrap writes to .gpg and rewrite the fetched salt.sources
Signed-By line to match, so this fix doesn't depend on salt-install-guide's
release timing.

Also remove SHA1 and MD5 as selectable Get-FileHash algorithms in the
PowerShell scripts, and delete the unused md5sum-based __fetch_verify()
function from bootstrap-salt.sh.

Add a regression test asserting the apt keyring is trusted and apt-get
update succeeds without NO_PUBKEY/unsupported-filetype errors.
salt-3006.8-0.x86_64.rpm consistently returns HTTP 400 from
packages.broadcom.com (Artifactory filtered-resources lexical error on
a NUL byte), breaking every RPM-based stable-3006-8 CI job. 3006.24 was
verified to download successfully across all repos (rpm x86_64/aarch64,
deb, onedir, windows, macos) - note macOS has no builds at all for
3006.15-3006.23, so 3006.23 would have silently broken macOS CI.

Updated the generate.py template (source of truth) and regenerated
ci.yml via the actual generator rather than hand-editing it.
@twangboy
twangboy merged commit 2db78d5 into saltstack:develop Jul 10, 2026
122 checks passed
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