From: anarcat Date: Thu, 15 Feb 2018 15:29:59 +0000 (-0500) Subject: pull archive keyring out of global trust path X-Git-Url: http://git.grml.org/?p=grml.org.git;a=commitdiff_plain;h=f020a452b21774e3064df6ad27c502a167cdb3da;hp=65c3d435ec30ba126a4867eb09d34c4a48c3737a pull archive keyring out of global trust path The [repository instructions](https://wiki.debian.org/RepositoryInstructions) have been changed to avoid writing third-party keyring files to the global trust anchors (in `/etc/apt/trusted-gpg.d`) and instead write those to a more neutral location (`/usr/share/keyrings`, alongside other keyring files). The downside of this change is that the key fingerprint isn't validated directly through this process. But considering that validation of the key is anchored through HTTPS validation in the first place, we do not *really* lose anything by moving that to the `.gpg` file transfer: that file's integrity is still checked through HTTPS. Furthermore, not storing the explicit fingerprint here will make future key rotations easier as they will not require documentation updates. Note that this change will also require a change in the `grml-debian-keyring` package to install the keyring file in the new location. If that package does not install a `.sources` or `.list` file, that move will also break existing configurations, so a NEWS entry might be in order as well. --- diff --git a/files/index.html.tt2 b/files/index.html.tt2 index 4e3f02f..cf9ecde 100644 --- a/files/index.html.tt2 +++ b/files/index.html.tt2 @@ -52,7 +52,7 @@ URIs: http://deb.grml.org/ Suites: grml-stable grml-testing Architectures: i386 amd64 Components: main -Signed-By: 05483D2F0A254E5BC12AC73021E0CA38EA2EA4AB +Signed-By: /usr/share/keyrings/grml-archive-keyring.gpg

Then the following preferences file will keep packages from GRML to replace normal Debian packages, in /etc/apt/preferences.d/grml.pref:

@@ -68,7 +68,7 @@ Pin-Priority: 100

Also note that you may have trouble installing the grml-debian-keyring package as APT will complain about the missing key. A workaround is to download it directly:

-sudo wget -O /etc/apt/trusted.gpg.d/grml.gpg http://deb.grml.org/repo-key.gpg
+sudo wget -O /usr/share/keyrings/grml-archive-keyring.gpg http://deb.grml.org/repo-key.gpg
 sudo apt-get update
 sudo apt-get install grml-debian-keyring