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

Re: How to identify the users?

From
Andrew Ardill <andrew.ardill@gmail.com>
Date
Jan 31, 2013, 06:16 UTC
Message-ID
<CAH5451kaXQj3Qz0P_Ydd+BnXwiENvqGP8tg4hHOgU8i5J_x5Lg@mail.gmail.com>
In-Reply-To
<CACkbei+Jby13B7rsEb3iLQM2ZSFDgrkgvrYC5M7u4yatppvLxA@mail.gmail.com>

(resending previous response. Forgot to turn off HTML, and apprently gmail doesn't wrap lines automatically anymore?)

On 31 January 2013 16:52, Scott Yan <scottyan19@gmail.com> wrote:
Show 6 quoted lines
>
> The user info of git client (user name and email) is set by the users
> themselves, so , how to avoid userA pretend to be userB?
>
> Git server could authentication the user, but it do nothing about the
> user info of commit message.

The simplest thing is to have the server reject commits that have the 'committer' set to someone other then the authenticated user.

Of course, there are potential workflows that this would cause problems for, such as if you sync directly to another user's repository and then try and push those to a central server.

The most robust system would probably involve using signed tags to verify what is being pushed, however I am not aware of any set-ups that have done this yet.

Regards,
Andrew Ardill
Previous: Sitaram ChamartyNext: Scott Yan
Message 6 of 7 in “How to identify the users?”
  1. Scott YanJan 31, 2013
  2. Tomas CarneckyJan 31, 2013
  3. Sitaram ChamartyJan 31, 2013
  4. Scott YanJan 31, 2013
  5. Sitaram ChamartyJan 31, 2013
  6. Andrew ArdillJan 31, 2013
  7. Scott YanJan 31, 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.