Skip to content

Fix SSH signature verification for Jujutsu commits - #216

Open
fedeizzo wants to merge 1 commit into
nlewo:mainfrom
fedeizzo:fix-ssh-commit-payload
Open

fedeizzo wants to merge 1 commit into
nlewo:mainfrom
fedeizzo:fix-ssh-commit-payload

Conversation

@fedeizzo

Copy link
Copy Markdown

Comin rejects valid SSH-signed Jujutsu commits because go-git drops the change-id header when rebuilding the signed content.

Verify the original commit bytes instead, removing only the signature header. Added tests for extra headers and tampering.

Checked with go test -race ./..., go vet ./..., and go build.

@nlewo

nlewo commented Nov 4, 2026

Copy link
Copy Markdown
Owner

I'm actually waiting for go-git/x#13 to remove all this code base from comin, because I'm not comfortable in maintaining these SSH signatures in comin :/

Do you know if your usecase would be supported by go-git/x#13 ?

Also, I'm sorry because I currently don't have enough bandwidth to review your PR.
Do you think you could provide help (testing for instance) on the above go-git PR?
Once supported by go-git, i will however have no issue at all in bumping our go-git version ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants