-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PGP keys used by scala-lang to the security policy #1672
base: main
Are you sure you want to change the base?
Conversation
|:-------------------------------------------------:|:---------:|:-----------------------------------------------------------------------------------------------------------------------:| | ||
| 86DA 41A5 E169 9C9C EBE9 64A8 A905 2B1B 6D92 E560 | RSA-4096 | [Download Public Key](https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x86da41a5e1699c9cebe964a8a9052b1b6d92e560) | | ||
| ACF3 9CCD ED38 E2C6 F089 8BF2 8F7F 6C04 5196 7B84 | RSA-4096 | [Download Public Key](https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xacf39ccded38e2c6f0898bf28f7f6c0451967b84) | | ||
| 2A5E 8B33 8438 CAC7 033F 9D8F B8A0 45C0 A6EC 398E | RSA-4096 | [Download Public Key](https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2a5e8b338438cac7033f9d8fb8a045c0a6ec398e) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hamzaremmal shall we try to finish this one up? |
Yes !! |
@hamzaremmal okay, so, what remains to be done? one question is whether |
a fellow wrote me a few months ago and said he noticed the expired key:
I tried the same thing on my Mac and got:
I have very little knowledge of this stuff and I'm not sure how to proceed. I could try to research this stuff and educate myself but tbh I'm sort of hoping you'll just tell me what I should do. either here, or on a shared video call
but that's future work, that doesn't affect the mergeability of this PR, right? |
@hamzaremmal oh, I just found this Slack message from you:
so that's what I should start using for Scala 2 releases as well? |
|
||
| Fingerprint | Algorithm | Public Key | | ||
|:-------------------------------------------------:|:---------:|:-----------------------------------------------------------------------------------------------------------------------:| | ||
| 86DA 41A5 E169 9C9C EBE9 64A8 A905 2B1B 6D92 E560 | RSA-4096 | [Download Public Key](https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x86da41a5e1699c9cebe964a8a9052b1b6d92e560) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned by @SethTisue - this key - which expired:
$ gpg --list-public-keys C03EF1D7D692BCFF
pub rsa4096 2018-02-13 [SC] [expired: 2020-02-13]
86DA41A5E1699C9CEBE964A8A9052B1B6D92E560
uid [ expired] Scala Project <[email protected]>
sub rsa4096 2018-02-13 [E] [expired: 2020-02-13]
sub rsa4096 2018-02-14 [S] [expired: 2020-02-13]
was used to create signature:
$ gpg --verify org/scala-lang/scala-library/2.13.15/scala-library-2.13.15.pom.asc org/scala-lang/scala-library/2.13.15/scala-library-2.13.15.pom
gpg: Signature made Fri 20 Sep 2024 21:25:22 CEST
gpg: using RSA key C03EF1D7D692BCFF
gpg: Good signature from "Scala Project <[email protected]>" [expired]
after expiration time.
So either the signing tool was forced to use expired key, or the key at signature creation place was updated and not expired at the time. In the latter case - may I ask for that key to be sent to keyservers, please?
aha, okay, updating the expiration date on 86DA41A5E1699C9CEBE964A8A9052B1B6D92E560, as @pzygielo suggests, seems like something we should go ahead and do I found some instructions at https://superuser.com/a/1141251 so, I downloaded https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x86da41a5e1699c9cebe964a8a9052b1b6d92e560 which gave me an then I did then then at the prompt I did
I don't think I am in possession of the secret key for this public key, in order to proceed further. @lrytz @hamzaremmal do either of you have it? |
I meant that it had probably been done already, given the key was used to create signatures after expiration time of published key. (As GPG will by default refuse to sign with expired key, I suppose expiration time was changed at the place where secret key is available.) |
hmm.... I don't see any evidence of anything like that occurring at https://app.travis-ci.com/github/scala/scala/jobs/627511892 , and there's nothing about it in our build scripts that I can see we use https://github.com/sbt/sbt-pgp for signing, and it's a quite old version of the plugin, https://github.com/sbt/sbt-pgp/releases/tag/v1.1.0 . if I understand correctly, it uses BouncyCastle rather than command-line gpg at sbt/sbt-pgp#158 (comment) one person wrote:
so that seems to confirm that the behavior (of ignoring that the key is expired) is coming from BouncyCastle (and perhaps from some antiquated version of it) |
BC could work differently, true. I was somehow influenced by:
Only now I've found that Maven Central has section dealing-with-expired-keys, so this might happen quite often... Thanks for checking this expiration case anyway 👍 |
No description provided.