splitsh/lite

GPG signature is missing

mxr576 opened this issue · 7 comments

I have GPG signed commits in the monorepo but the commits in the read-only splits are not signed. Is it a missing feature or am I doing something wrong?

I guess this tool is being used to manage Symfony's monorepo and if I am not mistaken the same problem exists there. Commits are only signed in the monorepo but not in a split.

symfony/symfony@84b3359

vs.

symfony/web-profiler-bundle@cf4ed73

I don't think we can keep the signature as the commit is different (so the signature would be different).

Yes, this is what I thought so after I realized that split creates new commits. Although, if someone knows a way to keep it still that would be super cool.

That's impossible. That would mean the new commit needs to be signed (and we would need the PGP key for that). Let's close.

Hi,

Sorry for digging up this topic. I also have mono-repo/many-repo split with gitsplit (thank you for this great tool by the way) and have the same concern.
Especially, I recently noted the supply chain attack on packagist and read about several ideas on composer (here and here).

That's impossible. That would mean the new commit needs to be signed (and we would need the PGP key for that). Let's close.

I am not sure it is impossible. In order to ease the release process, I use a Github action where the GPG private key is passed as an env var.
Tell me if I am wrong, but gitsplit should be able to do the same and sign all commits and tags it creates.

With the signatures, it should also be possible to prevent supply chain attacks by having a list of trusted organisation key thumbprints or hashes.

stof commented

@Spomky but if the splitter signs automatically all commits it creates, you would always have signed commits in the subtree split even if a supply chain attack allowed an attacker to inject a commit in the mono-repo.