Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-2958

authz path wildcards with backreferences

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • trunk
    • 1.10-consider
    • libsvn_repos
    • None

    Description

      I've been managing an academic installation where several users need access to
      their own paths in the repository, but to nobody else's.  Our authz file looks
      something like:
      
      # One for each student
      [/student/jstudent]
      jstudent = rw
      
      [/student/scoobydoo]
      scoobydoo = rw
      # and so on...
      
      # One for each student
      [/student/jstudent/project1/tags/final]
      jstudent = r
      
      [/student/scoobydoo/project1/tags/final]
      scoobydoo = r
      # and so on...
      
      As is readily obvious, this approach becomes very tedious, very quickly.  What
      would be great is a wildcard mechanism for the username, something like:
      
      [/student/$user]
      $user = rw
      
      [/student/$user/project1/tags/final]
      $user = r
      
      Looking into the way that our authorization code checks access, this isn't as
      straight forward as one would think, mainly due to authz file caching and path
      lookup.  I'm filing this issue so I don't forget the idea, and so I can attach
      some tests to it.
      

      Attachments

        1. 1_authz_path_wildcards.patch
          4 kB
          Hyrum Kurt Wright

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hwright Hyrum Kurt Wright
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: