Fix Ubuntu 24.04 NO_PUBKEY: per-repo GPG keyring provisioning#229
Draft
Fix Ubuntu 24.04 NO_PUBKEY: per-repo GPG keyring provisioning#229
Conversation
Co-authored-by: srikanthinsight <141009540+srikanthinsight@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Set deployment date for 24.04 release
Fix repo.sls Ubuntu 24.04 support: keyring robustness + v26.1.0 release
Feb 26, 2026
Co-authored-by: srikanthinsight <141009540+srikanthinsight@users.noreply.github.com>
Copilot
AI
changed the title
Fix repo.sls Ubuntu 24.04 support: keyring robustness + v26.1.0 release
Fix Ubuntu 24.04 NO_PUBKEY: per-repo GPG keyring provisioning
Feb 26, 2026
Co-authored-by: srikanthinsight <141009540+srikanthinsight@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Ubuntu 24.04 (noble), all APT repositories were pointing
signed-by=at a single shared keyring containing only one key, but each repository (tools, release, etc.) is signed with a distinct GPG key — causingNO_PUBKEYfailures for every repo whose key wasn't in that file.Changes
osfamily_map.yamlrepo_keyfilefor Ubuntu ≥24 changed from the staticzoomdata-archive-keyring.gpgto a per-repo template:/usr/share/keyrings/zoomdata-%(repo)s-keyring.gpgrepo.slszoomdata-gpg-key-download/zoomdata-gpg-keystates (Ubuntu 24.04+ path); the legacyfile.managedstate for pre-24.04 Debian is unchangedzoomdata-gpg-key-download-{{ repo }}+zoomdata-gpg-key-{{ repo }}states are now emitted inside the loop — each repo downloads, dearmors, and owns its own keyring file(gpgkeys|default({}, true)).get(repo, gpgkey)— per-repo override if set, global key as fallbackdefaults.yamlgpgkeys: {}with a doc comment explaining per-repo key overrides, fallback behaviour, and the requirement to quote numeric-looking repo names in YAMLpillar.examplegpgkeyswith example syntax for repos that use different signing keysUsage (for repos with distinct per-repo signing keys)
Repos not listed in
gpgkeysautomatically fall back to the globalgpgkey, so setups where all repos share a single signing key require no pillar changes.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.