Branch restrictions in Stash

We have recently started working on Stash and currently evaluating how we can restrict write access on branches in a GIT repositories using Stash. Using the Branch Permission option in Stash, we added only certain users to have write access to the Branch...but surprisingly, even after such a setting, all users are able to push their changes to this branch. Are we missing something here ? 

  Note: We are having v3.3.1 Stash instance for evaluation.

5 answers

Vijay,

If you are specifically looking for Branch permission options I'd recommend upgrade to at least Stash 3.10 because there is a significant change towards this in the release. Please see the release notes for more information. I hope that helps.

https://confluence.atlassian.com/stash/stash-3-10-release-notes-749314613.html

That seems very odd. Maybe include a screenshot of your branch settings screen? If you've set them up correctly, then people not on the list should not be able to push to that branch.

Hi Mark,

Thanks for your advise. We did upgrade our stash instance to 3.11.2. Again there, I see that a developer for whom is not on the list of valid users with write access to a branch (in our case master branch) is able to push the changes to this restricted branch. Is there any how, i can check what is happening behind the scene so that I can decipher this issue.

Vijay,

As Tim Crall asked, could you please share a screenshot of your branch settings screen?

Hi

Attaching the screenshot of branch permission setting as well as the commits that were made after this setting was made.

CommitsMadeAfterPermisisonsWereSet.jpgBranchPermission.jpg

 

I can't read those

I am re-attaching the screenshots. Please advise

That looks like it should work. Not sure why it isn't; sorry...

Branch Permissions.

Branch-Permissions.jpg

Commits Made After Branch Permissions Were Defined

Commits-Made-After-Branch-Permissions-Where-Changed.jpg

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

174 views 20 8
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you