yarn icon indicating copy to clipboard operation
yarn copied to clipboard

Rotate Debian GPG signing key before October

Open Daniel15 opened this issue 9 years ago • 9 comments

Signing key expires on 5th October:

sub   4096R/9D41F3C3 2016-10-05 [expires: 2017-10-05]

We'll need to rotate it and add a new signing key before it expires.

In theory we could make a key that never expires, but I initially made it expire after a year for security reasons.

Daniel15 avatar Aug 25 '17 04:08 Daniel15

In theory we could make a key that never expires, but I initially made it expire after a year for security reasons.

I think having an expiry is a best practice for certificates. Is 1 year too short?

BYK avatar Aug 25 '17 09:08 BYK

New subkey added, expires 2019-01-01:

ssb  rsa4096/E074D16EB6FF4DE3
     created: 2017-09-10  expires: 2019-01-01  usage: S

Future releases will use this key.

Daniel15 avatar Sep 10 '17 20:09 Daniel15

Getting an error... Pub key should be updated again?

gbrusella avatar Jan 01 '19 20:01 gbrusella

Yep, sorry, I'll do that tonight.

Sent from my phone.

On Tue, Jan 1, 2019, 12:34 PM Gonzalo Brusella <[email protected] wrote:

Getting an error... Pub key should be updated again?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/yarnpkg/yarn/issues/4253#issuecomment-450755166, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFnHVYFvC8d_xEhoWExlBmuYVCar4k_ks5u-8ZcgaJpZM4PCOSB .

Daniel15 avatar Jan 01 '19 20:01 Daniel15

Should be fixed now... New key expires 2020-02-02 and I'll set up monitoring so we catch any issues next time.

Daniel15 avatar Jan 02 '19 05:01 Daniel15

I've updated the key a few days ago, now it says NO_PUBKEY again. And after updating the signing key (again), I get two keys both with expiration set to 2020-02-02:

pub   rsa4096 2016-10-05 [SC]
      72EC F46A 56B4 AD39 C907  BBB7 1646 B01B 86E5 0310
uid           [ unknown] Yarn Packaging <[email protected]>
sub   rsa4096 2016-10-05 [E]
sub   rsa4096 2019-01-02 [S] [expires: 2020-02-02]
sub   rsa4096 2019-01-11 [S] [expires: 2020-02-02]

Is the key being updated (again) or is it just me?

zypA13510 avatar Jan 17 '19 00:01 zypA13510

@zypA13510 Yeah there's an issue with how the repo is signed. The second key is supposed to only be for the nightly repo, but it's being accidentally used for the stable repo. This is being tracked in #6916

Daniel15 avatar Jan 17 '19 00:01 Daniel15

Also,

Is 1 year too short?

I believe Google is using signing keys with expiration of 3 years:

pub   rsa4096 2016-04-12 [SC]
      EB4C 1BFD 4F04 2F6D DDCC  EC91 7721 F63B D38B 4796
uid           [ unknown] Google Inc. (Linux Packages Signing Authority) <[email protected]>
sub   rsa4096 2016-04-12 [S] [expires: 2019-04-12]
sub   rsa4096 2017-01-24 [S] [expires: 2020-01-24]

zypA13510 avatar Jan 17 '19 00:01 zypA13510

Ha, I hope Google remember about their key that expires in April this year :)

Interesting... Maybe we should change the Yarn keys to be valid for three years instead of one.

Daniel15 avatar Jan 20 '19 00:01 Daniel15