Skip to content
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

sign: Implement storage for digital commit signatures #2557

Merged
merged 1 commit into from
Nov 12, 2023

Conversation

necauqua
Copy link
Contributor

@necauqua necauqua commented Nov 9, 2023

Recognize signature metadata from git commit objects, implement a basic version of that for the native backend.
Extract the signed data (a commit binary repr without the signature) to be verified later.


Third time's the charm :)
This change would be undoubtedly needed for any signing implementation, so might push it to main to make the diffs of any future changes smaller - trying to push the smallest atomic changes.

This time I'm planning to make the actual signature creation part of signing happen outside of the backend, which seems like an obvious idea, but I thought it would be easier to do the other way then

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added tests to cover my changes

@necauqua necauqua force-pushed the push-ustsxtrlqsrz branch 2 times, most recently from 5ff13a6 to 7736b00 Compare November 10, 2023 17:06
lib/src/git_backend.rs Outdated Show resolved Hide resolved
lib/src/git_backend.rs Outdated Show resolved Hide resolved
lib/src/local_backend.rs Outdated Show resolved Hide resolved
Recognize signature metadata from git commit objects, implement
a basic version of that for the native backend.
Extract the signed data (a commit binary repr without the signature) to
be verified later.
@necauqua
Copy link
Contributor Author

I've also added (well, re-added, initially it was there) a check that skips re-parsing the commit data if gix did not find the gpgsig header.

lib/src/git_backend.rs Show resolved Hide resolved
@necauqua necauqua merged commit e3a1e5b into main Nov 12, 2023
15 checks passed
@necauqua necauqua deleted the push-ustsxtrlqsrz branch November 12, 2023 01:37
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.

3 participants