Skip to content

Replace deprecated apt-key with signed-by keyring for Debian/Ubuntu#427

Open
killrazor wants to merge 1 commit into
datto:mainfrom
killrazor:fix/apt-key-deprecation
Open

Replace deprecated apt-key with signed-by keyring for Debian/Ubuntu#427
killrazor wants to merge 1 commit into
datto:mainfrom
killrazor:fix/apt-key-deprecation

Conversation

@killrazor

Copy link
Copy Markdown

The Debian/Ubuntu install instructions use apt-key adv, which has been deprecated since Debian 11 / Ubuntu 22.04 and removed entirely in Debian Trixie.

Keys added via apt-key go into the global trusted.gpg keyring, meaning they are trusted system-wide for all repositories, not just the one they were added for. This is a security concern -- a compromised key could be used to sign packages from any repo and APT would accept them.

This PR updates the Debian/Ubuntu section of INSTALL.md to use the modern signed-by approach:

  • Downloads the GPG key to /etc/apt/keyrings/datto.gpg
  • Scopes trust to only the Datto repository via signed-by=

Fixes #407

apt-key has been deprecated since Debian 11 / Ubuntu 22.04 and removed
entirely in Debian Trixie. Keys added via apt-key go into the global
trusted.gpg keyring, which means they are trusted system-wide for all
repositories -- not just the one they were added for.

This updates the Debian/Ubuntu install instructions to use the modern
signed-by approach, scoping the Datto signing key to only the Datto
repository.

Fixes datto#407
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.

apt-key is deprecated

1 participant