Project

General

Profile

Actions

Refactor #13642

closed

Issue new archive signing GPG key

Added by Dominic Cleal over 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Debian/Ubuntu
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

The GPG key used to sign the Foreman apt archives is valid until 2016-06-30 (http://theforeman.org/security.html#GPGkeys), so we need to start preparing to cycle it now.

Actions #1

Updated by Dominic Cleal over 8 years ago

Debian issues a new GPG key per release and signs each release's Release file with the release it's for and the keys of the previous release (so Wheezy's is signed by the Wheezy and Squeeze keys, Jessie by Jessie and Wheezy).

Freight seems more limited as it only uses a single GPG key for signing the archive. Ideally we'd generate a new key now and have a period of 3-4 months (including a new stable release) with them both signing the archive until the old one expires and we remove it.

It seems like we'd have to do a hard switch over, or patch Freight. (I think I'll probably work on the latter, it looks trivial - though the patch won't be accepted at the moment as it's unmaintained.)

Actions #2

Updated by Dominic Cleal over 8 years ago

https://github.com/rcrowley/freight/pull/69 adds support for signing with multiple GPG keys.

Actions #3

Updated by Anonymous about 8 years ago

starting with apt 1.2.7:

W: gpgv:/var/lib/apt/lists/deb.theforeman.org_dists_jessie_Release.gpg: The repository is insufficiently signed by key 7059542D5AEA367F78732D02B3484CB71AA043B8 (weak digest)
W: gpgv:/var/lib/apt/lists/deb.theforeman.org_dists_plugins_Release.gpg: The repository is insufficiently signed by key 7059542D5AEA367F78732D02B3484CB71AA043B8 (weak digest)

The Debian recommended gpg settings for generating a new key would be:

# Prioritize stronger algorithms for new keys.
default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 BZIP2 ZLIB ZIP Uncompressed
# Use a stronger digest than the default SHA1 for certifications.
cert-digest-algo SHA512

and to use SHA512 per default for signing:

personal-digest-preferences SHA512

Actions #4

Updated by Dominic Cleal about 8 years ago

  • Status changed from New to Assigned
  • Assignee set to Dominic Cleal

I've generated and added the new key to the configuration, fingerprint AE0A F310 E2EA 96B6 B6F4 BD72 6F86 00B9 5632 78F6. It's currently on the regenerated stagingdeb server and will run on deb.tf.org on its next push. Both keys will be used to sign the archives until the expiry of the 2014 key at the end of June.

If there are no obvious problems from it, I'll send an e-mail to -announce/-users on Monday.

Actions #5

Updated by Dominic Cleal about 8 years ago

  • Status changed from Assigned to Resolved
Actions

Also available in: Atom PDF