Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

BitBucket Server lets ANYONE view ANYTHING and AUTOMATICALLY adds them to our licence count

Nathan Pledger
Contributor
September 3, 2019

Hi,

As the subject says, our BitBucket (10 licence version):

* Allows anyone with an AD login access to anything

* Automatically adds that user to our stash-users so it contributes to our licence count

We trialled the product and were really impressed by it, but this could be terminal. We cannot entertain this scenario from a cost/operational and security perspective.

I can't see how we can prevent this behaviour.

We:

* Do not have Public repos

* Operate on a private network (Active Directory managed)

* Have a single group ("stash-users") within a small team of developers. No-one else should have access.

I'd welcome guidance on this.

Thanks very much

 

Nathan

2 answers

2 votes
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 3, 2019

Hi Nathan,

 

It sounds like your directory settings are bit mixed up.

The two options you'll probably have to look at are 

Default Group Memberships, which determines which groups a user will be added to upon login, and User Object Filter, which allows you filter users by group membership by for instance adding (memberOf=cn=stash users,ou=some unit,dc=company,dc=com) as filter criterion so that only users who are members of this group are actually able to authenticate.

For more see:

https://confluence.atlassian.com/bitbucketserver/delegating-bitbucket-server-authentication-to-an-ldap-directory-776640402.html

Cheers,

Christian

Premier Support Engineer

Atlassian

1 vote
Nathan Pledger
Contributor
September 3, 2019

Developing:

It _seems_ that a user who has not been in the system before is allowed in and is automatically added to the *stash-users* group.

This is very bad from a licensing and security perspective.

If I _remove_ that user explicitly from the *stash-users* group, the next time they try they get the "You do not have permission to access Bitbucket" message and can't log in.

Which suggests BitBucket has _rememberd_ they had access and this was removed. 

That sounds too crazy to be actually true.

Julius Davies [bit-booster.com]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 3, 2019

 

Yes, "stash-users" is a very special group - upon successful login, anyone who tries to login to Bitbucket (the first time) gets added to it.

I would keep the "stash-users" group as it is, but remove it from Global Permissions.

Then in Global Permissions designate a different group (one from AD) as your "Bitbucket User" group.

The reason to keep "stash-users" group (but not associate it with any permissions) is that it's still very handy to have a quick way to see who has tried to login.

Like Nathan Pledger likes this
Nathan Pledger
Contributor
September 4, 2019

Aaaaahh, that makes sense. I'll try that. Thanks!

Nathan Pledger
Contributor
September 5, 2019

That's fixed it. Thanks very much. Shame this was not made abundantly obvious.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events