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

Re: Setting up Password protected repositories?

From
Junio C Hamano <junkio@cox.net>
Date
Sep 17, 2006, 02:18 UTC
Message-ID
<7v8xkj8ccy.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<E1GOm3h-0005jq-5u@jdl.com>
Jon Loeliger <jdl@jdl.com> writes:
Show 11 quoted lines
> So, like, the other day Junio C Hamano mumbled:
>> 
>> It all depends on how you start git-daemon, but the last
>> parameters to git-daemon are path whitelist so presumably
>> placing the private repository outside of it should be enough.
>> 
>> Or am I missing something deeper?
>
> I want git-daemon to serve up the repository.
> I just want to have it served to people who can
> supply a password or have an ssh key in place.

Sorry, git-daemon was written as anonymous download service from the beginning and there is no provision for something like that in place (as you probably have noticed when you hacked on it recently ;-)).

Letting them ssh-in, and if you do not trust them giving them git-shell as their login shell, might be an option. I do not think of anything else offhand that is already available.

Previous: Jon LoeligerNext: Shawn Pearce
Message 4 of 7 in “Setting up Password protected repositories?”
  1. Jon LoeligerSep 17, 2006
  2. Junio C HamanoSep 17, 2006
  3. Jon LoeligerSep 17, 2006
  4. Junio C HamanoSep 17, 2006
  5. Shawn PearceSep 17, 2006
  6. Jon LoeligerSep 17, 2006
  7. J. Bruce FieldsSep 17, 2006

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.