You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Jani Averbach <ja...@cc.jyu.fi> on 2003/03/28 16:58:23 UTC

Restrict read-access of inside part of the repository

Hello!

Is there any way to restrict read access of some directory inside of
repository in httpd.conf? Could I use the path to inside the repository in
the location-block in httpd.conf? Or is there some other way to do this?

Thanks in advance,
Jani

-- 
Jani Averbach


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Restrict read-access of inside part of the repository

Posted by Jani Averbach <ja...@cc.jyu.fi>.
On 28 Mar 2003, Ben Collins-Sussman wrote:

Thanks for quick reply!

> And it's very easy for *multiple* opaque urls to map to a single
> resource.  There's basically no way for httpd.conf to control
> authorization on this many-to-one mapping.
>
> So the party line has always been:  "for fine grained authorization,
> use hook scripts in the repository."
>

This is something that I was afraid about.

> Unfortunately, we don't have any read-hook scripts yet.  :-(

Is there anykind of document or plans or something else about this
somewhere?

I have been thinking this, and if there is read-hook, should it be
executed for every descending dir (this would be costly, but this is
probably what should to do)?

I also saw a note about property svn:acl in model.texi, is this still
planned or is the current plan to go with read-hook?


BR, Jani

-- 
Jani Averbach


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Restrict read-access of inside part of the repository

Posted by Ben Collins-Sussman <su...@collab.net>.
Jani Averbach <ja...@cc.jyu.fi> writes:

> Is there any way to restrict read access of some directory inside of
> repository in httpd.conf? Could I use the path to inside the repository in
> the location-block in httpd.conf? Or is there some other way to do this?

The problem is that httpd.conf is only able to control authorization
on *public* urls within the subversion repository.  For example, ones
like:

   http://host/repos/foo/bar
   http://host/repos/baz/bop/boom

But most of the http requests sent by svn clients are on opaque urls
that are interpreted internally by mod_dav_svn:

   http://host/repos/!svn/wrk/boo/bah
   http://host/repos/!svn/bc/23/foo.c
   http://host/repos/!svn/wbl/19/bar/foo.c

And it's very easy for *multiple* opaque urls to map to a single
resource.  There's basically no way for httpd.conf to control
authorization on this many-to-one mapping.

So the party line has always been:  "for fine grained authorization,
use hook scripts in the repository."

Unfortunately, we don't have any read-hook scripts yet.  :-(

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org