Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659842 - [TRACKER] Non-GLEP63-conformant developer keys
Summary: [TRACKER] Non-GLEP63-conformant developer keys
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Developer account issues (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Infrastructure
URL:
Whiteboard:
Keywords:
Depends on: 659844 659846 659848 659850 659852 659854 659856 659948 659950 659952 659954 659956 659958 659960 659962 659964 659966 659968 659970 659972 659974 659976 659978 659980 659982 659984 659986 659988 659990 659992 659994 659996 659998 660000 660002 660004 660006 660008 660010 660012 660014 660016 660018 660020 660022 660024 660026 660028 660030 660032 660036 660038 660040 660042 660044 660046 660048 660050 660052 660054 660056 660058 660060 660062 660064 660066 660068 660070 660072 660074 660076 660078 660080 660082 660084 660086 660088 660090 660092 660094 660096 660098 660100 660102 660104 660106 660108 660110 660112 660114 660116 660118 660120 660122 660124 660126 660128 660130 660132 660134 660136 660138 660140 660142 660144 660146 660148 660150 660152 660154 660156 660158 660160 660162 660164 660166 660168 660170 660172 660174 660176 660178 660180 660182 660184 660186 660188 660190 660192 660194 660196 660198 660200 660202 660204 660206 660208 660210 660212 660214 660216 660218 660220 660222 660224 660226 660228 660230 660232 660234 660236 660238 660240 660242 660244 660246 660248
Blocks:
  Show dependency tree
 
Reported: 2018-07-02 12:41 UTC by Michał Górny
Modified: 2018-08-01 20:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-07-02 12:41:41 UTC
Tracker for issues related to GLEP 63 conformance.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-07-03 14:06:34 UTC
Ok, here are some generic tips on solving key problems.

Before you start, please make sure you understand the difference between the primary key (as a whole) and subkeys.  Replacing the whole key creates a lot of hassle, so avoid this unless the text explicitly tells you to do that.  Replacing subkeys is trivial and doesn't create hassle (it's enough if people --refresh keys).


[E] algo:dsa:short DSA key too short (has 1024 bits, should be 2048 bits)
[E] algo:rsa:short RSA key too short (has 1024 bits, should be at least 2048 bits)

  This means you're using a weak DSA/RSA key.  This is the only case when you
  need to generate a new key.  I'd suggest going for RSA-2048 (GLEP is in process
  of being updated to recommend this instead of RSA-4096; see GnuPG FAQ 11.4
  and 11.5 [1]).

  While updating the key, please make sure to follow the full transition process,
  including signing the new key with the old one and waiting for new key
  to propagate before revoking and removing old.  Note that infra needs ~6 hours
  for full rotation.  Apache has some graphic instructions on replacing keys [2].

[W] algo:dsa:discouraged RSA key is recommended (DSA is being used)

  This means you're still using DSA.  This meets the minimal spec but using RSA
  is recommended instead.  Please consider replacing the key, see above.

[E] expire:none No expiration date on public key (<3 years recommended, 5 years max)
[E] expire:long Expiration date is too long (is YYYY-mm-dd HH:MM:SS, <X years recommended, 5 years max)
[W] expire:long Expiration date is long (is YYYY-mm-dd HH:MM:SS, <X years recommended)

  GLEP 63 requires expiration dates on both primary key and all subkeys.
  The minimal spec allows for max 5 years (more than that gives [E]rror),
  recommendation is up to 3 years for primary key, up to 1 year for signing key
  (more than that gives [W]arning).  Remember that you can renew the expiration
  date at any time.

  In order to fix this, edit the key and update expiration dates.  Remember to
  send the updated key to the keyservers.

[W] expire:short Expiration date is short (is 2018-12-29 18:59:46, renewal every 12 months recommended)

  This is just a friendly notice that your key is nearing expiry and you should
  consider renewing it.

[E] validity:expired Public key has expired

  I think this one is pretty clear.  If you want to continue using this key, you
  need to update expiration date and send it to keyservers.  If you don't want
  to use it, remove it from LDAP, please.

[E] validity:revoked Public key has been revoked

  Please remove revoked keys from LDAP.  Given they're revoked, there's no reason
  why our git servers would want to accept commits made using those keys.

[W] subkey:multipurpose Subkey has multiple capabilities enabled (has: [XXX]; use dedicated subkeys!)
[E] subkey:none Having a dedicated signing subkey is required

  The first one indicates that you have one or more subkeys that have multiple
  capabilities enabled (it's a warning).  The second one indicates that your key
  lacks a dedicated signing subkey (using this subkey is a GLEP 63 requirement).

  Generally you should have multiple subkeys, each one dedicated to a particular
  capability, i.e. usually one signing subkey and one encryption subkey.  You may
  also want to have extra subkeys for authentication if you're using gpg-agent
  for SSH (see my blog post for more info on subkeys [3]).

  To fix this, edit your key.  Create new subkeys dedicated to each purpose,
  and set one capability on every one of them.  Then, revoke the old subkey
  and send your updated key to the keyservers.

[W] uid:nogentoo @gentoo.org e-mail not in key UIDs

  This indicates that none of your UIDs list your @gentoo.org account.  If you
  intend to use this key to commit to Gentoo, please add an UID with your
  @gentoo.org email to make it easier for users to find it.  If you do not intend
  to use it for Gentoo, please remove it from LDAP.


[1]:https://www.gnupg.org/faq/gnupg-faq.html#no_default_of_rsa4096
[2]:https://www.apache.org/dev/key-transition.html
[3]:https://blogs.gentoo.org/mgorny/2018/05/12/on-openpgp-gnupg-key-management/
Comment 2 Aaron W. Swenson gentoo-dev 2018-07-05 21:43:57 UTC
It may be helpful to have some instructions as to how to transition a key. Apache Foundation does have a how to at:

https://www.apache.org/dev/key-transition.html
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-07-06 05:32:59 UTC
(In reply to Aaron W. Swenson from comment #2)
> It may be helpful to have some instructions as to how to transition a key.
> Apache Foundation does have a how to at:
> 
> https://www.apache.org/dev/key-transition.html

It's in #c1, in the first section.
Comment 4 Aaron W. Swenson gentoo-dev 2018-07-06 11:18:52 UTC
(In reply to Michał Górny from comment #3)
> (In reply to Aaron W. Swenson from comment #2)
> > It may be helpful to have some instructions as to how to transition a key.
> > Apache Foundation does have a how to at:
> > 
> > https://www.apache.org/dev/key-transition.html
> 
> It's in #c1, in the first section.

So it is! I missed it the first time.