Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to store a file in SVN which cannot be seen by other users

Tags:

svn

I have a file which is kind of confidential which should not be seen by users other than my own . Is it possible?

like image 205
Jason Avatar asked Feb 26 '23 13:02

Jason


1 Answers

Subversion does Path Based Authorization, so yes. The linked documentation has an example with a "secret" directory. You can also use * = to take away all access by default, and then grant it again for a specific group like this:

[/path/to/secret]
* =
@secret_users = rw

[groups]
secret_users=alice,bob

When somebody without authorization tries to read the file, they will get a 403 Forbidden (if the repository is hosted with apache - I assume another similar error is shown if you use svnserve).

like image 112
Wim Coenen Avatar answered Apr 29 '23 08:04

Wim Coenen