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

Support GPG signing #42

Open
swisspol opened this issue Mar 2, 2016 · 19 comments · May be fixed by #691
Open

Support GPG signing #42

swisspol opened this issue Mar 2, 2016 · 19 comments · May be fixed by #691

Comments

@swisspol
Copy link
Contributor

swisspol commented Mar 2, 2016

No description provided.

@berkus
Copy link

berkus commented Mar 4, 2016

👍 very much used feature for me, constantly reverting to git tag -s in cmdline

@killercup
Copy link

I imagine this will be much more popular now that GitHub shows GPG signature verifications.

@jpadilla
Copy link

jpadilla commented Apr 5, 2016

Was hoping that by setting the following in my global config, it would have worked in GitUp, but it didn't seem to work though.

[commit]
  gpgsign = true

@swisspol
Copy link
Contributor Author

swisspol commented Apr 5, 2016

GitUp doesn't use the Git tool at all but libgit2. Support for GPG signing would need to be implemented inside GitUpKit.

@olarivain
Copy link

@swisspol any idea how big a task that would be? Does git just use the gpg binaries under the hood?

Also, do you have a design in mind for implementing this, would you be open to a PR for this?
Not saying I'd do it right away, but I'd be very interested in that, and would contemplate scratching my own itch on this one.

@swisspol
Copy link
Contributor Author

I'm not sure, some research needs to be done. PRs are always welcome as long as they meet the contributing requirements 😄

@olarivain
Copy link

Looks like libgit2 supports adding the signature through https://libgit2.github.com/libgit2/#HEAD/group/commit/git_commit_create_with_signature.

Sounds like this means gitup would have to perform the actual signing though. Docs on libgcrypt look pretty arid though, so haven't had much more time to dig through that.

@frdmn
Copy link

frdmn commented Apr 26, 2016

👍

@jjasonclark
Copy link

It looks like the main git code just calls the GPG program to do the signing. That should lower the difficulty in implementing commit signing.

https://github.com/git/git/blob/master/gpg-interface.c#L160

    gpg.argv = args;
    gpg.in = -1;
    gpg.out = -1;
    args[0] = gpg_program;
    args[1] = "-bsau";
    args[2] = signing_key;
    args[3] = NULL;

    if (start_command(&gpg))

@Sega-Zero
Copy link

MacGPG2 would be better than just a gpg program. SourceTree uses it and it's great.

@deepsweet
Copy link

hey guys, any ETA?.. this is the only missing feature that prevents me from using awesome GitUP instead of SourceTree – Setup GPG to sign commits within SourceTree.

@davisonio
Copy link
Contributor

Would love this feature. At the moment I have to commit on the command line because GitUp can't sign the commits. If this feature would be added I could go almost 100% GitUp!

@frdmn
Copy link

frdmn commented Aug 22, 2016

Same problem here, using GitUp GUI since about 3 months for everything besides commiting :/

Any news on this?

@swisspol
Copy link
Contributor Author

I'm sorry to say I have no plan to implement new features like this in GitUp. For context, GitUp is a product that I originally built for my needs. It's already quite powerful and useful out of the box. But GitUp is free (and even open-source!), and I just don't have bandwidth to put work on a free product (even more so on features I don't personally need). And it's not like these are trivial features: if you want it done right and with the high-bar that GitUp has (with undo / redo among other things), it takes quite a bit of time. If GitUp were to be paid product, things would most likely be different.

@frdmn
Copy link

frdmn commented Aug 22, 2016

Thanks for letting us know, Olivier. Perhaps someone else can pick up the work required for this nonetheless.

Von meinem iPhone gesendet

Am 22.08.2016 um 21:49 schrieb Pierre-Olivier Latour [email protected]:

I'm sorry to say I have no plan to implement new features like this in GitUp. For context, GitUp is a product that I originally built for my needs. It's already quite powerful and useful out of the box. But GitUp is free (and even open-source!), and I just don't have bandwidth to put work on a free product (even more so on features I don't personally need). And it's not like these are trivial features: if you want it done right and with the high-bar that GitUp has (with undo / redo among other things), it takes quite a bit of time. If GitUp were to be paid product, things would most likely be different.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

@rkusa
Copy link

rkusa commented Mar 22, 2017

But GitUp is free (and even open-source!), and I just don't have bandwidth to put work on a free product (even more so on features I don't personally need).

Completely understandable! Since I am possibly not the only person willing to pay for GitUp, I just wanted to ask, if you would consider adding this feature if you are payed for your time appropriately? If so, we could consider gathering a bounty through http://bountysource.com. I am asking beforehand, because I don't really want to set a bounty that is unlikely to be claimed.

Edit: there is of course also the possibility of someone else jumping in, because of the bounty... so maybe it makes sense to put one up anyway

@OdNairy
Copy link

OdNairy commented Nov 13, 2018

Just wanna to say that I've implemented core gpg signing features in my branch but still need a lot of work to fulfill high GitUp repo requirements to pull requests.
My current implementation uses gpgme library to communicate with gpg agent. GPG Suite (gpgtools.com) works great, haven't tested GnuPG (gnupg.org) yet. If somebody feels motivated to help me finish this ticket you are welcome!
The current implementation uses git config to get user key id and to enable gpg signing.

You can check my implementation on this WIP PR:
OdNairy#1

@rye rye mentioned this issue Jun 12, 2019
@lourenci
Copy link

Any ETA on this? Thank you guys.

@OdNairy OdNairy linked a pull request Jul 3, 2020 that will close this issue
27 tasks
@jankuca
Copy link

jankuca commented Mar 21, 2023

This should really get implemented.

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

Successfully merging a pull request may close this issue.