Subversion info: Collabnet Subversion Edge 3.2.2 SVN Version: 1.8.0 Apache HTTP Server 2.4.4 Using mod_authz_svn, no ldap

What I'm trying to do is allocate access of a Subversion project to all developers on the team, but have certain directories that only certain developers should be given access to. Rather than create dozens of entries like so:

@superdevs = trusteddev, projman
@devs = @specdevs, user1, user2, user3

* = rw

~@devs = 

~@superdevs = 

~@superdevs =

# the list goes on and on...

Is it possible to configure the path-based authorization file to define a file pattern instead of explicitly creating an entry for each restricted path? I'm hoping to avoid adding 200+ entries to the authorization file as I know more entries will affect performance of all SVN operations hosted on the server. This also seems like a lot of work to secure sensitive code that is necessary to build our final solution.

TL;DR; Can you define common file patterns when setting up Subversion's Path-Based Authorization file instead of defining a rule for each explicit file or directory you need to restrict?


I am familiar with externals, but we have not been able to get them to work with our continuous integration system, and the powers that be do not want to "waste time" to update or replace it at the moment.


The wildcard issue has been discussed for quite some time with svn, and there is an open bug report for it:


The last comment (from June 2013) included the following statement:

We concluded that this feature is worth implementing anyway. We can alert users to the fact that the feature can reduce server performance in some cases, and could even be used for denial of service attacks (as already mentioned in above comments to this issue).

The pre-commit hook svnperms.py has limited wildcard support, only for writes, not for reads: https://stackoverflow.com/questions/916758/set-up-svnperms-pre-commit-hook

  • Damn, that's some bad news. I ended up just writing a quick program to crawl through my working copy and generate the necessary entries for me to paste into my auth file. Jul 25 '13 at 14:11

Subversion 1.10 supports globbing wildcards in path-based authorization: https://subversion.apache.org/docs/release-notes/1.10.html#authzperf

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.