Branches security automation

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
ICODev
Posts: 6
Joined: Thu May 02, 2013 2:11 pm

Branches security automation

Post by ICODev » Thu Oct 03, 2013 8:09 am

Hi,

We are currently using branches for RC and Release version of our code. The problem is that when branching, the folder security is kept. We want different groups of programmers to have access to each branches for better control over dev, quality control, hotfixes and final release.

The only option we have right now is when branching (manually or through CommandLine), to rapidly remove every rights we do not want and settings the new ones. But this causes a security flaw because our users can have access to the code during this maneuver and it's time consuming evry time we want to branch something.

Is there a solution to automate this process to limit flaws and security breaches?

Thanks!!

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Branches security automation

Post by Beth » Thu Oct 03, 2013 9:18 am

What should help you the most in this situation will be to use Groups so that changing security will just involved changing which group has access. I have some examples with Groups posted in this KB article: http://support.sourcegear.com/viewtopic ... 13&t=21607.

I can put in a feature request to change how security works with branches. Is it save to assume you would prefer the branch to start out with no rights on it and then you add rights?
Beth Kieler
SourceGear Technical Support

ICODev
Posts: 6
Joined: Thu May 02, 2013 2:11 pm

Re: Branches security automation

Post by ICODev » Thu Oct 03, 2013 1:25 pm

Thanks for your reponse.

We already have groups, multiple groups in fact (Read-only, Admin, etc) for each environnement (Dev,RC,Release) for every projects we have. So we have to make multiple manual operations for the time being.

This feature will be useful. In addition, if we can use admin function by command line (Clear rights, add rights, remove rights), we would be able with a Batch file to branch, clear rights and add the good ones.

We actually have a security flaw with the actual branching behavior, users may have access to protected source code (our Framework for exemple) during the interval we are manually changings access rights after branching. How long may it take for a feature request to be processed?

Thank you very much!

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Branches security automation

Post by Beth » Thu Oct 03, 2013 4:34 pm

I've added a feature request for command-line client administrator functions.
F: 17421

Right after you perform the branch, are you removing users rights from the branch?

I can't recreate a scenario where the user still has any rights after the security is changed. In my test, I had a user already open a branch and be viewing it. Then I changed security. The next time my client refreshed, the folder went away. Also, as soon as I tried to do anything with a file it gave me a no access error and refreshed. Can you tell me the steps you are performing that have a user still having access?

One work around might be to remove access from the original folder entirely before branching and then set all the appropriate access rights you need.
Beth Kieler
SourceGear Technical Support

GregM
Posts: 485
Joined: Sat Mar 13, 2004 9:00 am

Re: Branches security automation

Post by GregM » Fri Oct 04, 2013 9:57 am

Is the problem that you're branching it into a folder with different security than the one where it is currently located? Could you branch it into the same folder as it is currently in, so no one new has access, adjust the security there, and then move it to its final location?

ICODev
Posts: 6
Joined: Thu May 02, 2013 2:11 pm

Re: Branches security automation

Post by ICODev » Fri Oct 04, 2013 12:03 pm

Thanks for the feature request. Any estimated release date?

Yes we actually are removing user rights right after branching, but we have many subfolders to process to remove any unwanted access rights to the branch.The security is working great, but there is a timing issue when manually branching. If a user is refreshing when we are changing rights (again we have many subfolders at the same level in the branch to process, we start with the most sensitive folders) he may still have access to some code. With automated Batch file we want reduce that possibility.

We could also remove rights before and put them after as you suggest, but we want to have as little manual manipulation as possible for our developpers when branching on various projects and environment. The goal here is to limit any human mistakes. With admin batch commands we will be able to remove rights before or after branching.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Branches security automation

Post by Beth » Fri Oct 04, 2013 1:36 pm

I don't have a release date for the feature I just logged.
Beth Kieler
SourceGear Technical Support

Post Reply