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,299,604
Community Members
 
Community Events
165
Community Groups

Using BitBucket with repository under VPN

We would like to use BitBucket to manage our GIT repo that is on a server that is under VPN.

Therefore is it possible to use BitBucket with a repo that's on another server and how can it access it if its under VPN? Are there some IPs we can whitelist to give BitBucket access to the repo?

 

Many thanks,

Robert

2 answers

0 votes
Charlie Misonne Community Leader Sep 06, 2021

Ok I get it now.

If you want to use the repository import Bitbucket Cloud will need access to your server indeed.
My first answer has the URL to the page with Atlassian's IP addresses you could whitelist.

But to be honest I would just do a {{git push <remote_url> --all}} to push all the branches to Bitbucket Cloud

Ah Right,

Makes sense!

 

And if we want to keep the repo on our server then we have to install the premium version on the machine the repo is currently on?

Charlie Misonne Community Leader Sep 06, 2021

(Didn't mean to create a new answer, sorry!)

No premium is also Bitbucket Cloud and it can not connect with remote storage.

If you want to install Bitbucket on you own infrastructure there is only 1 option and that is Bitbucket Data Center. But it that case you'll have to manage upgrades and maintenance yourself.

Understood,

 

Thanks for your help.

 

Robert

0 votes
Charlie Misonne Community Leader Sep 02, 2021

Hi Robert, welcome to the Atlassian Community!

I'm not sure I understand you question correctly.

You want to install your own instance of Bitbucket and via the Bitbucket user interface you want to manage a git repo that is on another server than where you would install Bitbucket?

Or do you want to do this with Bitbucket Cloud (SaaS)?


Either way: you could just store the repo in Bitbucket and pull it to your server.

The Bitbucket Cloud IP ranges are listed here: What are the IP addresses to configure a corporate firewall? 
And if you'd host your own instance that depends on your environment of course

Hi Charlie,

Thanks for trying to answer my question :)

 

Basically we have our GIT Repo on one of our servers than is under a VPN and we want to manage that repo using Bitbucket cloud.

 

So i'm assuming that when we setup a new bitbucket repo we have to import our current repo? and if so, can that be done if it is under VPN?

 

Thanks for your help,

 

Robert

Charlie Misonne Community Leader Sep 06, 2021

Hi Robert,

If you want to store your current  GIT repo in Bitbucket Cloud: yes you need to import the repo into Bitbucket Cloud. There is no way to use Bitbucket Cloud with "remote" storage on your own infrastructure if that's what you were wondering.

I'm not sure what you mean with "under VPN" but you have to know Bitbucket Cloud is a SaaS application on the internet. Of coruse the repositories are proteced with user authentication.
But if you need more protection you can opt for the premium version and enforce 2 factor authentication or even use an IP filter. See: Control access to your private content 

Thanks Charlie,

Under VPN means that that machine the repo is currently on only allows access to certain IP Ranges so if I want to import it, bitbucket cloud wont be able to access it.

Which is why i asked if there were some IPs we could whitelist to allow it to access the server our repo is on at the moment?

 

Thanks,

Robert

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,243 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