Skip to content

👷 ci: scope the nushell apt key to its own repo - #3253

Merged
gaborbernat merged 2 commits into
pypa:mainfrom
gaborbernat:ci-scope-nushell-apt-key
Sep 18, 2026
Merged

gaborbernat merged 2 commits into
pypa:mainfrom
gaborbernat:ci-scope-nushell-apt-key

Conversation

@gaborbernat

Copy link
Copy Markdown
Contributor

The nushell signing key went into /etc/apt/trusted.gpg.d. 🔐 Apt honours anything there for every source it knows about, so whoever controls apt.fury.io could sign a package and have apt take it as part of the Ubuntu archive, well outside the one repository that key covers.

Moving it to /etc/apt/keyrings and naming it with signed-by on the fury source line confines it to that repository. Apt deprecated trusted.gpg.d in favour of this shape, so the change also sheds a pattern newer apt warns about.

Blast radius today is the Linux test job, which holds a read-only token. This hardens the setup; it does not close a live hole. I found it while auditing the workflows alongside #3250 and #3252.

The key landed in /etc/apt/trusted.gpg.d. Apt trusts keys there for every
source it knows about, so whoever controls the fury.io key could sign a
package and pass it off as part of the Ubuntu archive.

Moving the key to /etc/apt/keyrings and naming it with signed-by on the fury
source line ties it to that one repository. Apt wants this shape now anyway,
since it deprecated trusted.gpg.d.
The change touches only the CI workflow, so it has nothing to tell a user
reading the release notes.
@gaborbernat
gaborbernat force-pushed the ci-scope-nushell-apt-key branch from b6fdf1b to 74142c0 Compare September 18, 2026 04:07
@gaborbernat
gaborbernat merged commit 0525dce into pypa:main Sep 18, 2026
64 checks passed
@gaborbernat gaborbernat added the security Fixes a vulnerability or hardens the supply chain, CI or release label Sep 22, 2026
@gaborbernat
gaborbernat deleted the ci-scope-nushell-apt-key branch October 3, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement security Fixes a vulnerability or hardens the supply chain, CI or release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant