Is it possible to save the file in SVN, which cannot be seen by other users

I have a file that is confidential, which should not be noticed by users other than mine. Is it possible?

+4
source share
1 answer

Subversion does path-based authorization , so yes. In the related documentation there is an example with a "secret" directory. You can also use * = to remove all default access and then grant it again for a specific group, for example:

 [/path/to/secret] * = @secret_users = rw [groups] secret_users=alice,bob 

When someone without authorization tries to read the file, he will receive 403 Forbidden (if the repository is hosted with apache - I assume that another similar error is displayed if you use svnserve ).

+8
source

Source: https://habr.com/ru/post/1333146/


All Articles