Is it possible to give access control on file level for a repository hosted in Stash? As per Stash's documentation, we can control permissions on global, project, repository and branch levels.
If it is not possible from Stash, is there an alternative for giving file level access control in GIT repo from GIT itself?
Hi Karthik,
Have you seen my answer here?
https://answers.atlassian.com/questions/252606/can-stash-or-a-stash-hook-manage-commit-permissions-on-specific-files-or-directories
Basically not at the moment, although it is technically possible as a plugin or pre-receive hook. Personally I would suggest you break your repositories into smaller modules and secure them that way.
Otherwise I've only ever seen this implemented in Gitolite, but it won't be possible to integrate that with Stash:
http://gitolite.com/gitolite/g2/aac.html
Cheers,
Charles
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.