git-fat icon indicating copy to clipboard operation
git-fat copied to clipboard

The safety of fat-store directory using git-fat

Open pengyu opened this issue 9 years ago • 5 comments

How secure is it to use git-fat with other people to manage the repository. In particular, it seems that everybody should have write access to the some fat-store directory. So anyone is able to delete something from fat-store? Is there something like pull request that allows each person has it own fat-store directory, yet allow pulling changes from others' fat-store directories?

pengyu avatar Apr 15 '15 02:04 pengyu

This is a filesystem issue, not a git-fat issue. (From a security perspective, it doesn't matter whether git-fat has an interface, it matters whether the underlying protocol and permissions system supports that operation.) If you would like to prevent other people from deleting your files, you can set the sticky bit. I don't want git-fat to need a custom server (too complicated and more surface area to secure).

jedbrown avatar Apr 15 '15 03:04 jedbrown

Would it be better to somehow allow something like pull request so that each one has its own fat-store repository? If everyone relies on a central fat-store repository, this sounds like not consistent with git's decentralization philosophy. Since git-fat is closely related with git, it is better to make it consistent with git in this aspect.

pengyu avatar Apr 15 '15 13:04 pengyu

This is a separate issue and the reason I want git-fat to have named remotes. We have discussed it a few times.

jedbrown avatar Apr 15 '15 15:04 jedbrown

OK. When do you think the named remote feature will be added?

pengyu avatar Apr 16 '15 01:04 pengyu

I can't promise a date, but see PR #28 for recent discussion.

jedbrown avatar Apr 16 '15 05:04 jedbrown