Re: [FFmpeg-devel] [RFC] git and signing commits and tags
Aug 8, 2022, 16:50 by michael@niedermayer.cc:
Given the recent server issues, i wonder if we should suggest/recommand and document signing commits and tags
i tried to push such commit to github and it nicely says "verified" https://github.com/michaelni/FFmpeg/commit/75f196acd16fb0c0ca7a94f0c66072e7c...
Ive generated a new gpg key for this experiment as i dont have my main key on the box used for git development and also using more modern eliptic curve stuff (smaller keys & sigs) i will upload this key to the keyservers in case it becomes the one i use for git.
I sign all of my commits, I think it should be recommended but not required. One downside is that you can sign commits from others with your own key (for instance when pushing a patch from someone along with your commits, and signing all at once via rebase), which can be misleading, so it takes some work to reorder commits or push them in stages so this doesn't happen. It makes sense that it's the committer who's signing it, but git or github don't make a distinction when it comes to signing.
On Mon, Aug 08, 2022 at 09:26:52PM +0200, Lynne wrote:
Aug 8, 2022, 16:50 by michael@niedermayer.cc:
Given the recent server issues, i wonder if we should suggest/recommand and document signing commits and tags
i tried to push such commit to github and it nicely says "verified" https://github.com/michaelni/FFmpeg/commit/75f196acd16fb0c0ca7a94f0c66072e7c...
Ive generated a new gpg key for this experiment as i dont have my main key on the box used for git development and also using more modern eliptic curve stuff (smaller keys & sigs) i will upload this key to the keyservers in case it becomes the one i use for git.
I sign all of my commits,
I didnt notice, but thats good as it also proofs it works with no ill sideeffects Where can i find your public key ? it seems its not on the keyservers i checked
I think it should be recommended but not required.
yes, for now, thats certainly the right path. In the future this should maybe be reevaluated
One downside is that you can sign commits from others with your own key (for instance when pushing a patch from someone along with your commits, and signing all at once via rebase), which can be misleading, so it takes some work to reorder commits or push them in stages so this doesn't happen. It makes sense that it's the committer who's signing it, but git or github don't make a distinction when it comes to signing.
I dont see much harm if other commits are signed too. thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB I do not agree with what you have to say, but I'll defend to the death your right to say it. -- Voltaire
On Tue, Aug 09, 2022 at 12:36:53AM +0200, Michael Niedermayer wrote:
On Mon, Aug 08, 2022 at 09:26:52PM +0200, Lynne wrote:
Aug 8, 2022, 16:50 by michael@niedermayer.cc:
Given the recent server issues, i wonder if we should suggest/recommand and document signing commits and tags
i tried to push such commit to github and it nicely says "verified" https://github.com/michaelni/FFmpeg/commit/75f196acd16fb0c0ca7a94f0c66072e7c...
Ive generated a new gpg key for this experiment as i dont have my main key on the box used for git development and also using more modern eliptic curve stuff (smaller keys & sigs) i will upload this key to the keyservers in case it becomes the one i use for git.
I sign all of my commits,
I didnt notice, but thats good as it also proofs it works with no ill sideeffects
Where can i find your public key ? it seems its not on the keyservers i checked
Your key seems only on openpgp.org but that strips userids unless the owner approves it (i presume for GDPR) making the key not work gpg --keyserver hkps://keys.openpgp.org --recv-keys FE50139C680572CAFD521F8DA2FEA5F03F034464 gpg: key A2FEA5F03F034464: no user ID gpg: Total number processed: 1 gpg --list-keys FE50139C680572CAFD521F8DA2FEA5F03F034464 gpg: error reading key: No public key gpg --recv-keys FE50139C680572CAFD521F8DA2FEA5F03F034464 gpg: keyserver receive failed: No data [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Homeopathy is like voting while filling the ballot out with transparent ink. Sometimes the outcome one wanted occurs. Rarely its worse than filling out a ballot properly.
On Tue, Aug 09, 2022 at 12:59:52PM +0200, Michael Niedermayer wrote:
On Tue, Aug 09, 2022 at 12:36:53AM +0200, Michael Niedermayer wrote:
On Mon, Aug 08, 2022 at 09:26:52PM +0200, Lynne wrote:
Aug 8, 2022, 16:50 by michael@niedermayer.cc:
Given the recent server issues, i wonder if we should suggest/recommand and document signing commits and tags
i tried to push such commit to github and it nicely says "verified" https://github.com/michaelni/FFmpeg/commit/75f196acd16fb0c0ca7a94f0c66072e7c...
Ive generated a new gpg key for this experiment as i dont have my main key on the box used for git development and also using more modern eliptic curve stuff (smaller keys & sigs) i will upload this key to the keyservers in case it becomes the one i use for git.
I sign all of my commits,
I didnt notice, but thats good as it also proofs it works with no ill sideeffects
Where can i find your public key ? it seems its not on the keyservers i checked
Your key seems only on openpgp.org but that strips userids unless the owner approves it (i presume for GDPR) making the key not work
gpg --keyserver hkps://keys.openpgp.org --recv-keys FE50139C680572CAFD521F8DA2FEA5F03F034464 gpg: key A2FEA5F03F034464: no user ID gpg: Total number processed: 1
gpg --list-keys FE50139C680572CAFD521F8DA2FEA5F03F034464 gpg: error reading key: No public key
gpg --recv-keys FE50139C680572CAFD521F8DA2FEA5F03F034464 gpg: keyserver receive failed: No data
found your key with google here: https://lynne.ee/extra/A2FEA5F03F034464.asc thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB There will always be a question for which you do not know the correct answer.
Aug 9, 2022, 13:02 by michael@niedermayer.cc:
On Tue, Aug 09, 2022 at 12:59:52PM +0200, Michael Niedermayer wrote:
On Tue, Aug 09, 2022 at 12:36:53AM +0200, Michael Niedermayer wrote:
On Mon, Aug 08, 2022 at 09:26:52PM +0200, Lynne wrote:
Aug 8, 2022, 16:50 by michael@niedermayer.cc:
Given the recent server issues, i wonder if we should suggest/recommand and document signing commits and tags
i tried to push such commit to github and it nicely says "verified" https://github.com/michaelni/FFmpeg/commit/75f196acd16fb0c0ca7a94f0c66072e7c...
Ive generated a new gpg key for this experiment as i dont have my main key on the box used for git development and also using more modern eliptic curve stuff (smaller keys & sigs) i will upload this key to the keyservers in case it becomes the one i use for git.
I sign all of my commits,
I didnt notice, but thats good as it also proofs it works with no ill sideeffects
Where can i find your public key ? it seems its not on the keyservers i checked
Your key seems only on openpgp.org but that strips userids unless the owner approves it (i presume for GDPR) making the key not work
gpg --keyserver hkps://keys.openpgp.org --recv-keys FE50139C680572CAFD521F8DA2FEA5F03F034464 gpg: key A2FEA5F03F034464: no user ID gpg: Total number processed: 1
gpg --list-keys FE50139C680572CAFD521F8DA2FEA5F03F034464 gpg: error reading key: No public key
gpg --recv-keys FE50139C680572CAFD521F8DA2FEA5F03F034464 gpg: keyserver receive failed: No data
found your key with google here: https://lynne.ee/extra/A2FEA5F03F034464.asc
I just pushed it to keyserver.ubuntu.com, the only still working server I found, surprisingly. Seems a few months ago sks (a protocol/sever? to share keys between servers) was deprecated and most servers went down, and the GDPR also took some out. Sad. There's some work done to make a new protocol/server apparently. I'm very sure I pushed my key to the MIT server back when I made it in 2019, but that server also seems like it's forgotten my key and not accepting it. I once imported all maintainer keys listed in MAINTAINERS and found many were revoked (I think compn's), while some used triple DES. The oldest key I found for a maintainer is actually Nicolas George's key, a triple DES from 2001! Maybe we should clean up the list of keys.
On Tue, Aug 09, 2022 at 07:50:13PM +0200, Lynne wrote:
Aug 9, 2022, 13:02 by michael@niedermayer.cc:
On Tue, Aug 09, 2022 at 12:59:52PM +0200, Michael Niedermayer wrote:
On Tue, Aug 09, 2022 at 12:36:53AM +0200, Michael Niedermayer wrote:
On Mon, Aug 08, 2022 at 09:26:52PM +0200, Lynne wrote:
Aug 8, 2022, 16:50 by michael@niedermayer.cc:
Given the recent server issues, i wonder if we should suggest/recommand and document signing commits and tags
i tried to push such commit to github and it nicely says "verified" https://github.com/michaelni/FFmpeg/commit/75f196acd16fb0c0ca7a94f0c66072e7c...
Ive generated a new gpg key for this experiment as i dont have my main key on the box used for git development and also using more modern eliptic curve stuff (smaller keys & sigs) i will upload this key to the keyservers in case it becomes the one i use for git.
I sign all of my commits,
I didnt notice, but thats good as it also proofs it works with no ill sideeffects
Where can i find your public key ? it seems its not on the keyservers i checked
Your key seems only on openpgp.org but that strips userids unless the owner approves it (i presume for GDPR) making the key not work
gpg --keyserver hkps://keys.openpgp.org --recv-keys FE50139C680572CAFD521F8DA2FEA5F03F034464 gpg: key A2FEA5F03F034464: no user ID gpg: Total number processed: 1
gpg --list-keys FE50139C680572CAFD521F8DA2FEA5F03F034464 gpg: error reading key: No public key
gpg --recv-keys FE50139C680572CAFD521F8DA2FEA5F03F034464 gpg: keyserver receive failed: No data
found your key with google here: https://lynne.ee/extra/A2FEA5F03F034464.asc
I just pushed it to keyserver.ubuntu.com, the only still working server I found, surprisingly. Seems a few months ago sks (a protocol/sever? to share keys between servers) was deprecated and most servers went down, and the GDPR also took some out. Sad. There's some work done to make a new protocol/server apparently. I'm very sure I pushed my key to the MIT server back when I made it in 2019, but that server also seems like it's forgotten my key and not accepting it.
yes, i was also scratching my head yesterday about this keyserver apocalypse the script below was what i ended up writing but iam not sure its usefull #!/bin/bash gpg --keyserver hkps://pgp.mit.edu --recv-keys $* & gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys $* & gpg --keyserver hkps://keys.openpgp.org --recv-keys $* & gpg --keyserver hkps://keys.gnupg.net --recv-keys $* & gpg --keyserver hkps://keyserver.pgp.com --recv-keys $* &
I once imported all maintainer keys listed in MAINTAINERS and found many were revoked (I think compn's), while some used triple DES. The oldest key I found for a maintainer is actually Nicolas George's key, a triple DES from 2001!
Maybe we should clean up the list of keys.
yes maybe we also should collect the full public keys and not just the hashes this list of hashes came from a time where obtaining a key from a hash was trivial thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Take away the freedom of one citizen and you will be jailed, take away the freedom of all citizens and you will be congratulated by your peers in Parliament.
Hi, Am Montag, 8. August 2022, 21:26:52 CEST schrieb Lynne:
Aug 8, 2022, 16:50 by michael@niedermayer.cc:
Given the recent server issues, i wonder if we should suggest/recommand and document signing commits and tags
i tried to push such commit to github and it nicely says "verified" https://github.com/michaelni/FFmpeg/commit/75f196acd16fb0c0ca7a94f0c66072e7c...
Ive generated a new gpg key for this experiment as i dont have my main key on the box used for git development and also using more modern eliptic curve stuff (smaller keys & sigs) i will upload this key to the keyservers in case it becomes the one i use for git.
I sign all of my commits, I think it should be recommended but not required.
One downside is that you can sign commits from others with your own key (for instance when pushing a patch from someone along with your commits, and signing all at once via rebase), which can be misleading, so it takes some work to reorder commits or push them in stages so this doesn't happen. It makes sense that it's the committer who's signing it, but git or github don't make a distinction when it comes to signing.
Since Git is kind of a blockchain (it includes the hash of the predecessor commits) you technically sign the entire tree anyways not just the individual commit. Especially in a rebase, the original author signs the original commit hash (which changes in a rebase), so it is not possible to use the same signature again. But I understand that a direct mapping between author and singing person would be nice. For releases, I think that the attacker model is important. The typical scenario is that one clones the repository, than checkouts a tag and compiles FFmpeg. For that one wants to know that the code is not manipulated by a third party (a person not trusted by the FFmpeg project). If the last commit is signed then, the user know that they can trust the entire code. If they checkout a random commit that is not signed, they cannot be sure that the set of changes up to the next signed commit of an FFmpeg author comes from a person trusted by FFmpeg. But for that it doesn't matter which of the devs has signed the commit. So I think for end users a signed release commit is most valuable, individual commits are valuable, too, and it's important that the signature must always come from a person trusted by the FFmpeg project. Best, Gerion
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
participants (3)
-
Gerion Entrup -
Lynne -
Michael Niedermayer