-
-
Notifications
You must be signed in to change notification settings - Fork 934
GPG signatures for source validation #612
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
Comments
Thanks for offering your help in increasing the trustworthyness of GitPython releases! For now this is only assured by github, as it allows only a few select people to push into this repository. |
This would be highly appreciated as currently we cannot fully trust the downloads. GPG would be much of a help. |
For a start, here is my public gpg key. I have made it known to github will use it to sign all my commits from now on.
So far I have never produced archives for use in distribution. In that area I would need a few more hints on how you suggest this should be accomplished. Personally I would be happiest if the current machinery using What do you think about that? For completeness, find below my public gpg key.
|
thanks! twine looks good for pypi. Please use gpgit for the github source tarballs and everything will be good to go :) |
@NicoHood There are no source-tarballs on github and I wasn't planning to release it that way. Pypi provides tarballs as well along with signatures. |
@Byron Thanks. There are always auto generated github source tarballs. But it is more secure to generate your own (for example with GPGit). Please also sign gitdb and smmap: Also the pypi versions seem to be outdated. On Github you have smmap 2.0.3 and on pypi 0.9 |
Thanks for the clarification! To keep things simple though, I would like to refer people to the signed tarballs on pypi instead. |
@Byron No the pypi guys can NOT sign the tarballs. The idea behind signing is security, not having a signature. If you upload it to them, they cannot verify if its uploaded really by you (account compromised etc). You need to sign it always in order to have the trustchain way up to the end user. We as package maintainer package the software and sign them with our gpg keys which are trusted by the Archlinux keyring. However we also need to have a signature from you that we trust. So in the end the user trusts us (package maintainers) and also you. If you add another spot (pypi signatures) makes it less secure. And you cannot avoid signing your sources anyways. There is no way around that you sign the sources that you develop. |
@NicoHood I think I understand exactly what you mean. This is also why I am confused - after all the tarball/binaries I upload (see screenshot) ship with a signature I created. Once you have trusted the key that signed them is truly mine, you can verify the tarball was created by me. However, your comment seems to indicate that you cannot trust or use the files provided on pypi. Is there something I don't see? |
It is all fine now unless you keep your key secret with a strong passphrase. We do not need to trust pypi, as your sources are signed now. But if they would resign them with their key (as you suggested) this would be bad. As we need to trust them, that they verify your software correct. Its just another risk in the chain we want to avoid. As it is right now, it is perfect. Thanks a lot! |
@Byron The GPG key used for signing the gitpython tarballs has recently changed. In order to verify the sources properly we cannot blindly trust the new key. Can you please give me some more information why the key changed and which fingerprint is the new one? It would be best to write the key down somewhere in the readme. In the current readme the old key is still present. This is the old key: makepkg reports me the new (short) keyid: Edit: talking about the signature for release 2.1.8 |
@NicoHood That's true! I changed my key in this commit (c7f657f) as my previous one was susceptible to that new attack which derives the private key from a public key. Thus I generated new keys in software and placed them on my yubikey. Indeed, my previous key was revoked without a reason, but I think it was just me missing that flag on the command-line. Additionally I tried to understand why the alleged signing key fingerprint is You will also find that all my commits are signed with the new key already. |
Alright. Make sure to also edit the readme then with the new key :) |
@NicoHood Thanks a lot for hinting at it once again :)! Totally forgot that was there :D! |
The gpg key got revoked. See gitpython-developers/smmap#36 (comment) Please reopen or fix the issue. |
Sorry for the late reply. I have published version 2.1.11 with my most recent key in the hopes that this fixes the issue you encountered. |
As we all know, today more than ever before, it is crucial to be able to trust
our computing environments. One of the main difficulties that package
maintainers of Linux distributions face, is the difficulty to verify the
authenticity and the integrity of the source code.
The Arch Linux team would appreciate it if you would provide us GPG signatures
in order to verify easily and quickly your source code releases.
Overview of the required tasks:
GPGit is meant to bring GPG to the masses.
It is not only a shell script that automates the process of creating new signed
git releases with GPG but also comes with this step-by-step readme guide for
learning how to use GPG.
Additional Information:
Thanks in advance.
PS: I plan to use this module in gpgit soon. However this and #611 is a blocking issue for this to happen. Would be really nice to see gpg signatures as well as this project part of gpgit.
The text was updated successfully, but these errors were encountered: