keybase / client

Keybase Go Library, Client, Service, OS X, iOS, Android, Electron
BSD 3-Clause "New" or "Revised" License
8.92k stars 1.23k forks source link

packaging/linux/deb: apt-key is deprecated #24856

Open julian-klode opened 2 years ago

julian-klode commented 2 years ago

I recently added warnings for keys in trusted.gpg to APT, they'll ship in Debian 12 and Ubuntu 22.04:

W: http://prerelease.keybase.io/deb/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

apt-key has been deprecated for a couple years now. Please consider installing a keyring file into /usr/share/keyrings instead (directly in the deb, not in postinst), and then create a sources.list.d/keybase.list referencing that with signed-by.

deb [signed-by=/usr/share/keyrings/keybase-keyring.gpg] http://prerelease.keybase.io/deb stable main

Alternatively, you can drop the key into trusted.gpg and not use signed-by, as chrome does at the moment: https://chromium.googlesource.com/chromium/src/+/117cfd4c6a3aa57c93590042b2347ade68f83808%5E%21/

This has the added complexity of needing to base64 encode the key in the postinst, is less safe, and awkward.

Support for apt-key will be removed from development releases starting next month.

rauldipeas commented 2 years ago

I'm using this temporary fix:

cat <<EOF |sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/keybase.gpg
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: GPGTools - https://gpgtools.org

mQINBFKLi6cBEACcP/W6NBY1Dy+1Tm6LWOpPGbP1DsxP+ggIA0LmxaXWwL6g/2Kv
oS/JVmmY1uXIiiZoMqCTZq1RTlQP9wh/ky61XxZmElKxiWKvdgVql5XYYQxJUH+6
vJHPdcLOQeW6MTlP/cy6r6wFS4pOZ0I8gquufYcSp3IiCyDRfGndfZno3YABjC4Q
qtTwPKMh4o7G4ScV6SAKWG28mHF02BkXTBlZCWmhI9foQWu04I45m6Eg00zaS2dY
X8nwU5H6k1N/3RUMYCJVmDOMl+p5Aml6ZuXhnUv0ma04yqeE0LsbVhsPOcWnVd4F
/+x+RJlhqM7v6j+mi5bSYrJSxzaXwBjQdSu/yTKsao799EO9Kt4D6D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3
Hxpd
=FMAy
-----END PGP PUBLIC KEY BLOCK-----
EOF
sudo apt update
madzohan commented 2 years ago

@rauldipeas the official needed key is stored here https://book.keybase.io/docs/server/our-code-signing-key

You can check fingerprint to make sure you have identical one

gpg --show-keys /usr/share/keyrings/keybase-keyring.gpg 
pub   rsa4096 2013-11-19 [SC] [expires: 2027-11-11]
      222B85B0F90BE2D24CFEB93F47484E50656D16C7
uid                      Keybase.io Code Signing (v1) <code@keybase.io>
sub   rsa4096 2013-11-19 [E] [expires: 2027-11-11]
# If you have no keybase installed, get key
curl -fsSL https://keybase.io/docs/server_security/code_signing_key.asc | sudo gpg --dearmor | sudo tee /usr/share/keyrings/keybase-keyring.gpg
# or if you have installed and get deprecation warning on apt update
sudo apt-key export 656D16C7 | sudo gpg --dearmour -o /usr/share/keyrings/keybase-keyring.gpg
#####
echo deb [signed-by=/usr/share/keyrings/keybase-keyring.gpg] http://prerelease.keybase.io/deb stable main | sudo tee /etc/apt/sources.list.d/keybase.list
sudo apt-key del 656D16C7
sudo apt update
# sudo apt install keybase
rauldipeas commented 2 years ago

@rauldipeas the official needed key is stored here https://book.keybase.io/docs/server/our-code-signing-key

You can check fingerprint to make sure you have identical one

gpg --show-keys /usr/share/keyrings/keybase-keyring.gpg 
pub   rsa4096 2013-11-19 [SC] [expires: 2027-11-11]
      222B85B0F90BE2D24CFEB93F47484E50656D16C7
uid                      Keybase.io Code Signing (v1) <code@keybase.io>
sub   rsa4096 2013-11-19 [E] [expires: 2027-11-11]
# If you have no keybase installed, get key
curl -fsSL https://keybase.io/docs/server_security/code_signing_key.asc | sudo gpg --dearmor | sudo tee /usr/share/keyrings/keybase-keyring.gpg
# or if you have installed and get deprecation warning on apt update
sudo apt-key export 656D16C7 | sudo gpg --dearmour -o /usr/share/keyrings/keybase-keyring.gpg
#####
echo deb [signed-by=/usr/share/keyrings/keybase-keyring.gpg] http://prerelease.keybase.io/deb stable main | sudo tee /etc/apt/sources.list.d/keybase.list
sudo apt-key del 656D16C7
sudo apt update
# sudo apt install keybase

Thank You for the link!

Just for the record, there's no need to use tee after gpg --dearmor, You can use -o option to write the output directly to any file.

curl -fsSL https://keybase.io/docs/server_security/code_signing_key.asc | sudo gpg --dearmor -o /usr/share/keyrings/keybase-keyring.gpg
julian-klode commented 2 years ago

JFTR, there's no need to dearmor either (gpg might in fact not be installed, that's the whole point of getting rid of apt-key), just make sure the filename ends with .asc if it's enarmored.

Espionage724 commented 2 years ago

JFTR, there's no need to dearmor either (gpg might in fact not be installed, that's the whole point of getting rid of apt-key), just make sure the filename ends with .asc if it's enarmored.

Thanks for this tip!

I don't quite like using sudo with wget directly to an important directory, but here's a one-liner I use:

wget -O '/tmp/code_signing_key.asc' 'https://keybase.io/docs/server_security/code_signing_key.asc' && sudo mv '/tmp/code_signing_key.asc' '/etc/apt/trusted.gpg.d/keybase.asc' && sync
heronhaye commented 2 years ago

Thanks, we're aware of the issue and will try to get a fix out in a few weeks.

smcgu commented 2 years ago

@rauldipeas the official needed key is stored here https://book.keybase.io/docs/server/our-code-signing-key

You can check fingerprint to make sure you have identical one

gpg --show-keys /usr/share/keyrings/keybase-keyring.gpg 
pub   rsa4096 2013-11-19 [SC] [expires: 2027-11-11]
      222B85B0F90BE2D24CFEB93F47484E50656D16C7
uid                      Keybase.io Code Signing (v1) <code@keybase.io>
sub   rsa4096 2013-11-19 [E] [expires: 2027-11-11]
# If you have no keybase installed, get key
curl -fsSL https://keybase.io/docs/server_security/code_signing_key.asc | sudo gpg --dearmor | sudo tee /usr/share/keyrings/keybase-keyring.gpg
# or if you have installed and get deprecation warning on apt update
sudo apt-key export 656D16C7 | sudo gpg --dearmour -o /usr/share/keyrings/keybase-keyring.gpg
#####
echo deb [signed-by=/usr/share/keyrings/keybase-keyring.gpg] http://prerelease.keybase.io/deb stable main | sudo tee /etc/apt/sources.list.d/keybase.list
sudo apt-key del 656D16C7
sudo apt update
# sudo apt install keybase

When will this configuration be distributed? I'm still seeing Keybase using apt-key. Separately, I had manually replicated this process for a number of systems only to find that Keybase configures a daily cron job to re-install the key using apt-key (#25240).

Also, in case it matters, my vote is against putting the key under /etc/apt/trusted.gpg.d/ because that continues the insecure nature of allowing the key to be broadly trusted by the system and goes against current guidance/defaults to use /usr/share/keyrings. 1, 2

If future updates to the key will be managed by an apt/dpkg package as recommended below, then it SHOULD be downloaded into /usr/share/keyrings using the same filename that will be provided by the package. If it will be managed locally , it SHOULD be downloaded into /etc/apt/keyrings instead.1

Also, I'm not sure if you've seen this guidance @julian-klode in regards to guidance that keys should be dearmored.

The reason why we avoid ASCII-armored files is that they can only be used by SecureApt in version 1.4 or later (which appeared in stretch). We also strongly recommend the use of HTTPS as it bypasses certain MITM attacks that would allow a hostile third party to inject OpenPGP key material in the repository setup. 1

  1. DebianRepository/UseThirdParty - Debian Wiki
  2. An exposed apt signing key and how to improve apt security
rphair commented 1 year ago

The problem still happens but (putting all the suggestions above together) I can convert the default installation into a compliant installation (assuming the keyid stays the same) with:

# apt-key export 656D16C7 > /usr/share/keyrings/keybase-keyring.asc
# cat > /etc/apt/sources.list.d/keybase.list
deb [signed-by=/usr/share/keyrings/keybase-keyring.asc] http://prerelease.keybase.io/deb stable main
# apt-key del 656D16C7
# apt update

Despite the deprecation warnings & what it says in the man page, apt-key is still functional in Ubuntu 22.10.

madzohan commented 1 year ago

@rphair it is recommended to store them in binary format gpg --dearmour -o ... also in case in future apt-key will be unavailable there is another trick to get the key :eyes: using gpg --keyserver

sudo gpg --keyserver pgpkeys.mit.edu --recv-key 656D16C7
sudo gpg -a --export 656D16C7 | sudo gpg --dearmour -o /usr/share/keyrings/keybase-keyring.gpg
julian-klode commented 1 year ago

The recommended action for 23.04 and forward will be a deb822 sources file with an embedded armoured key in the signed-by field.

Older releases do not show deb822 sources in software-properties and I think embedded key support started happening in 22.04 hence that wasn't practical before.

But then repo owners can provide a .sources file to drop in, run apt update and people can use it. So nice.

While technically not mandatory, the other plan was to upgrade existing .list files to deb822 .sources in 23.10, as it is sure nice to have uniform file formats.

I'll push updated guidance in various places once 23.04 is out

rphair commented 1 year ago

@madzohan: it is recommended to store them in binary format gpg --dearmour -o

Thanks... I scripted it that way because of this comment above (in case anyone else is unsure which format to use).

luke-hill commented 1 month ago

FYI 'my' installation instructions I have copied across 3 separate ubuntu installs (18/20/24) are as follows....

curl --remote-name https://prerelease.keybase.io/keybase_amd64.deb
sudo apt-get install -y ./keybase_amd64.deb
run_keybase
rm ./keybase_amd64.deb

At what point can I edit my quick install notes to not throw the warnings and/or is there something in script form that will do it. There seems to be a lot of discussion above for workarounds e.t.c. - It would be good to know "the" correct way to do it.

Cheers

julian-klode commented 1 week ago

Final call, I rewrote the internal parts of apt to not call apt-key anymore yesterday, and drop installing it. It may land next week in Debian unstable and Ubuntu plucky development series.

Relatedly, a change to stop trusting trusted.gpg, where keybase's key resides is also imminent. There have been deprecation messages for this for years as well. This will render existing keybase installs unable to upgrade.

This also contains the updated guidance for using embedded Signed-by in a .sources field.