[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: new idea: authz regex path matching

From: Lieven Govaerts <lgo_at_mobsol.be>
Date: 2005-12-22 21:00:59 CET

Bryan,

Wait a few days till the devs ship 1.3 and then introduce it again :)

No seriously. The use regular expressions in the authz_svn module has been
discussed on the dev list before, there's even been a patch submitted
to that list:
http://svn.haxx.se/dev/archive-2005-02/0631.shtml
It wasn't accepted though, and the author seems to have given up on it.

Last week I described on this list how regular expressions would help me
manage the 50+ projects we will have to maintain next year.
( see http://svn.haxx.se/users/archive-2005-12/0887.shtml, the last 10
lines ).

We have two use cases for regular expressions:
1. wildcard matching of paths, to allow groups automatic write access on
all branches of the same type.

2. capturing groups: reuse the name of the repository as prefix for the
group name, so not all 50 repositories have to be configured individually.

A typical svnaccess.conf with reg. ex. would look something like this
( might not be technically correct ):

[groups]
a001_dev = account1, account2
a001_admin = account3

# access definition ( where ?P<repo> is a named capturing group regex )
[(?P<repo>.*):/]
@(?P=repo)_admin = rw

[(?P<repo>.*):/branches/DEV_(.*)]
@(?P=repo)_dev = rw
...

What are your or other peoples requirements? Would be nice to finish a
complete
proposal here.

Lieven.

> -----Original Message-----
> From: Bryan Drewery [mailto:bryan@shatow.net]
> Sent: donderdag 22 december 2005 20:26
> To: users@subversion.tigris.org
> Subject: new idea: authz regex path matching
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I couldn't find this mentioned on the lists anywhere. I saw
> one mention of using <Location> directives in apache's
> dav_svn.conf, this works great, but native support seems like
> a good idea as well.
>
> Thoughts?
>
> - --
> Bryan
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (MingW32)
>
> iD8DBQFDqv29l+t6ETqAlpQRAij6AJ9kzQfYnn2loVB8tWJL89BhiGQRnQCfbg5N
> T++z6DDu990ixCZQskhRi3g=
> =3ryO
> -----END PGP SIGNATURE-----
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.371 / Virus Database: 267.14.3/209 - Release
> Date: 21/12/2005
>
>

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.3/209 - Release Date: 21/12/2005
 
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Dec 25 01:51:10 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.