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

document how to set up splitgpg for git #1964

Closed
mfc opened this Issue May 5, 2016 · 6 comments

Comments

Projects
None yet
4 participants
@mfc
Member

mfc commented May 5, 2016

https://www.qubes-os.org/doc/split-gpg/

I know most Qubes folks have set it up, I imagine it is not too complicated.

https://help.github.com/articles/telling-git-about-your-gpg-key/
https://help.github.com/articles/signing-commits-using-gpg/

this would be really nice to highlight for developers.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek May 5, 2016

Member

Besides standard gpg setup in git (setting keyid, automatic signing etc), the only thing required to enable usage of split gpg is:

git config --global gpg.program /usr/bin/qubes-gpg-client-wrapper

And of course set gpg backend domain name in /rw/config/gpg-split-domain, but that's a standard step in split gpg configuration in general.

Member

marmarek commented May 5, 2016

Besides standard gpg setup in git (setting keyid, automatic signing etc), the only thing required to enable usage of split gpg is:

git config --global gpg.program /usr/bin/qubes-gpg-client-wrapper

And of course set gpg backend domain name in /rw/config/gpg-split-domain, but that's a standard step in split gpg configuration in general.

@mfc mfc added this to the Documentation/website milestone May 6, 2016

@adrelanos

This comment has been minimized.

Show comment
Hide comment
@adrelanos

adrelanos May 6, 2016

Member

Not sure this will require #474. I am using split gpg, but failed setting up split gpg a while ago for git. Don't remember anymore exactly why. A new try just now revealed, that my config works. If someone has time to test and document this, please do so.

  1. Get split gpg to work.

  2. ~/.gitconfig

[user]
name = Patrick Schleizer
email = adrelanos@riseup.net
signingkey = 0x8D66066A2EEACCDA

[commit]
gpgsign = true

[gpg]
program = qubes-gpg-client-wrapper

## {{ https://forums.whonix.org/t/git-users-enable-fsck-by-default-for-better-security

[transfer]
        fsckobjects = true
        fsckobjects = true
[fetch]
        fsckobjects = true
        fsckobjects = true
[receive]
        fsckobjects = true
        fsckobjects = true

## }}
  1. usage: theupdateframework/tuf#255
Member

adrelanos commented May 6, 2016

Not sure this will require #474. I am using split gpg, but failed setting up split gpg a while ago for git. Don't remember anymore exactly why. A new try just now revealed, that my config works. If someone has time to test and document this, please do so.

  1. Get split gpg to work.

  2. ~/.gitconfig

[user]
name = Patrick Schleizer
email = adrelanos@riseup.net
signingkey = 0x8D66066A2EEACCDA

[commit]
gpgsign = true

[gpg]
program = qubes-gpg-client-wrapper

## {{ https://forums.whonix.org/t/git-users-enable-fsck-by-default-for-better-security

[transfer]
        fsckobjects = true
        fsckobjects = true
[fetch]
        fsckobjects = true
        fsckobjects = true
[receive]
        fsckobjects = true
        fsckobjects = true

## }}
  1. usage: theupdateframework/tuf#255
@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong May 6, 2016

Member

Another helpful thing to add: signing and verifying tags (using conventions specific to the Qubes OS Project). I seem to recall documenting this somewhere. Anyway, here's how I do it:

[alias]
        stag = "!id=`git rev-parse --verify HEAD`; git tag -s adw_${id:0:8} -m \"Tag for commit $id\""
        vtag = !git tag -v `git describe`
Member

andrewdavidwong commented May 6, 2016

Another helpful thing to add: signing and verifying tags (using conventions specific to the Qubes OS Project). I seem to recall documenting this somewhere. Anyway, here's how I do it:

[alias]
        stag = "!id=`git rev-parse --verify HEAD`; git tag -s adw_${id:0:8} -m \"Tag for commit $id\""
        vtag = !git tag -v `git describe`
@mfc

This comment has been minimized.

Show comment
Hide comment
@mfc

mfc May 25, 2016

Member

great! it would be awesome to have the Table of Contents of the page highlight that there is documentation on split-gpg & email and split-gpg & git within, not sure if I should make a separate ticket for that?

Member

mfc commented May 25, 2016

great! it would be awesome to have the Table of Contents of the page highlight that there is documentation on split-gpg & email and split-gpg & git within, not sure if I should make a separate ticket for that?

andrewdavidwong added a commit to QubesOS/qubes-doc that referenced this issue May 25, 2016

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
Member

andrewdavidwong commented May 25, 2016

@mfc: Done.

@mfc

This comment has been minimized.

Show comment
Hide comment
@mfc

mfc May 25, 2016

Member

awesome! looks great, thanks.

Member

mfc commented May 25, 2016

awesome! looks great, thanks.

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