I have a file which is kind of confidential which should not be seen by users other than my own . Is it possible?
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
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With