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

Re: [RFC/PATCH] connect: add GIT_SSH_{SEND,RECEIVE}{,_COMMAND} env variables

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Jan 4, 2018, 17:20 UTC
Message-ID
<87608hczht.fsf@evledraar.gmail.com>
In-Reply-To
<20180104155325.GA18376@sigill.intra.peff.net>
On Thu, Jan 04 2018, Jeff King jotted:
Show 21 quoted lines
> On Thu, Jan 04, 2018 at 11:10:17AM +0100, Ævar Arnfjörð Bjarmason wrote:
>
>> That's badly explained, sorry, when I say "push" I mean "push and/or
>> pull".
>>
>> I don't know about Github, but on Gitlab when you provision a deploy key
>> and associate it with a repo it must be *globally* rw or ro, there's no
>> way to on a per-repo basis say it should be rw ro.
>>
>> I have a job that's fetching a bunch of repos to review code in them
>> (for auditing purposes). It then commits the results of that review to
>> other git repos.
>>
>> Thus I want to have a ro key to all those reviewed repos, but rw keys to
>> the audit repo itself (and it'll also pull with the rw key).
>
> OK, that part makes sense to me.
>
> But I'm not sure how your patch solves it. When you "git fetch" on the
> audit repo, wouldn't your GIT_SSH_RECEIVE_COMMAND kick in and use the
> wrong key? What am I missing?

I add both the ro and rw key to some projects. Those are a tiny subset of the overall number.

Previous: Jeff KingNext: Junio C Hamano
Message 7 of 8 in “connect: add GIT_SSH_{SEND,RECEIVE}{,_COMMAND} env variables”
  1. connect: add GIT_SSH_{SEND,RECEIVE}{,_COMMAND} env variablesÆvar Arnfjörð Bjarmason, Jan 3, 2018
  2. Junio C HamanoJan 3, 2018
  3. Ævar Arnfjörð BjarmasonJan 4, 2018
  4. Jeff KingJan 4, 2018
  5. Ævar Arnfjörð BjarmasonJan 4, 2018
  6. Jeff KingJan 4, 2018
  7. Ævar Arnfjörð BjarmasonJan 4, 2018
  8. Junio C HamanoJan 4, 2018

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.