开发者

blocking SVN access to certain users

开发者 https://www.devze.com 2023-03-12 03:02 出处:网络
All, I have an SVN repository hosted/exposed over HTTP through an Apache2 webserver. I have 30 user base, at some point I want to disable the access to most of them except few users without having to

All, I have an SVN repository hosted/exposed over HTTP through an Apache2 webserver. I have 30 user base, at some point I want to disable the access to most of them except few users without having to change the access p开发者_运维问答olicy and restart the server. The goal is to allow only certain users to have access to SVN for a period of time in which other users can not access the repository.

is it possible in SVN?

Thanks.


What you normally do is to change your svn auth file that defines the users, groups and access rights for your subversion repository. See the documentation about "path based authentication" how to do that.

Your workflow would go like that:

  1. Download the svn auth file from your server.
  2. Change the rules like you want them to have.
  3. Upload the changed file to your server at the location.

The svn auth file is read every time a request is sent to the server, there is no need to restart the server.

A variant could be (more advanced setting):

  • Setup a repository that contains the svn auth file.
  • Define a post-commit-hook that copies the changed file to the right server location.
  • Checkout the directory that contains the svn auth file.
  • Change it locally
  • Commit it
  • The server will copy the file at the right location.

So you only have to update and commit locally, the rest will be done by the post-commit-hook.

0

精彩评论

暂无评论...
验证码 换一张
取 消