git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Security and permissions in git
@ 2009-01-29 20:34 Jay Renbaum
  2009-01-29 22:13 ` Daniel Barkalow
  0 siblings, 1 reply; 3+ messages in thread
From: Jay Renbaum @ 2009-01-29 20:34 UTC (permalink / raw)
  To: git

When setting up a public repository is there a way to control who has access 
to various directories within the repository or is everything equal once you 
are in?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Security and permissions in git
  2009-01-29 20:34 Security and permissions in git Jay Renbaum
@ 2009-01-29 22:13 ` Daniel Barkalow
  2009-01-29 23:23   ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Barkalow @ 2009-01-29 22:13 UTC (permalink / raw)
  To: Jay Renbaum; +Cc: git

On Thu, 29 Jan 2009, Jay Renbaum wrote:

> When setting up a public repository is there a way to control who has access 
> to various directories within the repository or is everything equal once you 
> are in?

Every commit contains a version of the complete contents, so people have 
to be able to read the contents of all directories and write some 
directory contents. However, you can prohibit users from pushing content 
to the repository unless particular directories (or files) match what's 
there already. This is generally what people want when they have this 
requirement.

It's also possible to use submodules to have a project contain parts that 
some users don't have any access to, while still being able to produce 
commits to the main project (in combination with the above check so that 
try can't replace the submodule entirely with content they do have access 
to, or submodule commits they've seen referenced previously)

	-Daniel
*This .sig left intentionally blank*

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Security and permissions in git
  2009-01-29 22:13 ` Daniel Barkalow
@ 2009-01-29 23:23   ` Jeff King
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff King @ 2009-01-29 23:23 UTC (permalink / raw)
  To: Daniel Barkalow; +Cc: Jay Renbaum, git

On Thu, Jan 29, 2009 at 05:13:41PM -0500, Daniel Barkalow wrote:

> Every commit contains a version of the complete contents, so people have 
> to be able to read the contents of all directories and write some 
> directory contents. However, you can prohibit users from pushing content 
> to the repository unless particular directories (or files) match what's 
> there already. This is generally what people want when they have this 
> requirement.

If this is what you want, see Shawn's contrib/hooks/update-paranoid,
which lets you specify ACLs in the config.

-Peff

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-01-29 23:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-29 20:34 Security and permissions in git Jay Renbaum
2009-01-29 22:13 ` Daniel Barkalow
2009-01-29 23:23   ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).