git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add the commit.gpgsign option to sign all commits

From
Nicolas Vigier <boklm@mars-attacks.org>
Date
Nov 5, 2013, 11:28 UTC
Message-ID
<20131105112840.GZ4589@mars-attacks.org>
In-Reply-To
<xmqqppqfag2e.fsf@gitster.dls.corp.google.com>
On Mon, 04 Nov 2013, Junio C Hamano wrote:
Show 12 quoted lines
> Nicolas Vigier <boklm@mars-attacks.org> writes:
> 
> > If you want to GPG sign all your commits, you have to add the -S option
> > all the time. The commit.gpgsign config option allows to sign all
> > commits automatically.
> 
> I'm somewhat horrified to imagine the end-user experience this
> "feature" adds to the system; if one sets htis configuration and
> then runs "git rebase" or anything that internally creates or
> recreates commits, does one have to sign each and every commit, even
> if such a rebase was done merely as a trial run to see if a topic
> can be rebased to an older codebase, or something?

If the problem is users having to type their passphrase to sign each commit, we can suggest using an agent in the option description :

  commit.gpgsign::
	A boolean to specify whether all commits should be GPG signed.
	Use of this option when doing operations such as rebase can
	result in a large number of commits being signed. It is therefore
	convenient to use an agent to avoid typing your gpg passphrase
	several times.
An example of why someone might want to use this option is :

You use git to store deployement scripts for some servers. Those servers have a cron job that pull from the git repository and run the scripts as root. Anyone with root access on the server hosting the git repository can then gain root access to all your servers quite easily. You want to avoid this, so you decide that all commits should be gpg signed, and your servers will now do "git pull --verify-signatures". People who work on this repository will want to set "commit.gpgsign" so they don't have to add the -S option all the time.

Previous: brian m. carlsonNext: Junio C Hamano
Message 5 of 7 in “Add the commit.gpgsign option to sign all commits”
  1. Add the commit.gpgsign option to sign all commitsNicolas Vigier, Nov 4, 2013
  2. Junio C HamanoNov 4, 2013
  3. Nicolas VigierNov 5, 2013
  4. brian m. carlsonNov 5, 2013
  5. Nicolas VigierNov 5, 2013
  6. Junio C HamanoNov 5, 2013
  7. Add the commit.gpgsign option to sign all commitsNicolas Vigier, Nov 6, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.