sahib / brig

File synchronization on top of ipfs with git like interface & web based UI
https://brig.readthedocs.io
GNU Affero General Public License v3.0
567 stars 33 forks source link

Refactor/repo layout #86

Closed sahib closed 3 years ago

sahib commented 3 years ago

So, this is still work in progress and might change a little.

In summary the changes are:

TODO:

evgmik commented 3 years ago

Shall we abandon all password locking? If repo is locked for other users with no read/write permission, then nobody but a user can access it anyway. If one wants to move it another computer, then the copy either protected by the same means or should be send in an encrypted way (locked archive). But there is no need to build such capability in brig. Password protected zip or scp are OS provided solutions.

sahib commented 3 years ago

Good point. I would still make the pack commands available as an experiment. My argument is that many people might no even be aware that it's a good idea to move the repository in an encrypted way. Offering a command that does the "right" thing (including checking for running daemon & fixing the permissions if needed) lowers the barrier to do it. Sometimes you might not have access to the proper tools or are working in an environment where other people work, e.g. imagine you live together with some room mates that use a common file server, then you want to make sure that after every use the brig repository is locked - sure, that's not the normal way to use our tool, but the first thing people do is to misuse it anyways. Also, it's not a lot of code & if it turns out that nobody uses it, I'll happily remove it.

Reminds me to check that the repo is created with the right permissions. Anyways, I don't want to put a lot of work into it now.