Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,677
Community Members
 
Community Events
165
Community Groups

Restrict origin of users' SSH keys

Edited

We run Bitbucket Server (will soon "switch" to Bitbucket Data Center, as Server licenses are going away). Up until now, we have not enabled the bundled Apache Mina SSHD server to provide SSH access to Git repositories, but we want to do that. However, due to internal security restrictions, we cannot allow users to upload any arbitrary SSH key to their account. Rather, all the SSH keys we use within our organization are issued/signed by a central authority. So, we need to restrict the SSH keys that users upload to their accounts so that they are from this trusted source and not something they have arbitrarily generated on this machine.

Is it possible, in Bitbucket, to in any way restrict the keys that users upload? If not, we would not be able to use the SSH feature.

So, at the time I posted this, I had not been given all the information about what exactly we needed, so I did not ask the correct question...

Our organization-provided key pairs do not contain any kind of special data that identifies them as coming from our organization. So, what we actually need is a way to enable SSH key access for all users but permit only Bitbucket administrators the ability to add keys for the users (in other words, users would not be able to upload their own SSH keys). The Bitbucket administrators would be responsible for uploading the organization-provided public keys to Bitbucket.

Is this possible?

1 answer

So, at the time I posted this, I had not been given all the information about what exactly we needed, so I did not ask the correct question...

Our organization-provided key pairs do not contain any kind of special data that identifies them as coming from our organization. So, what we actually need is a way to enable SSH key access for all users but permit only Bitbucket administrators the ability to add keys for the users (in other words, users would not be able to upload their own SSH keys). The Bitbucket administrators would be responsible for uploading the organization-provided public keys to Bitbucket.

Is this possible?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,231 views 2 9
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you