Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Bitbucket Server #1965

Closed
meysholdt opened this issue Oct 8, 2020 · 12 comments
Closed

Support Bitbucket Server #1965

meysholdt opened this issue Oct 8, 2020 · 12 comments
Labels

Comments

@meysholdt
Copy link
Member

meysholdt commented Oct 8, 2020

It would be awesome if Gitpod self-hosted would not only support bitbucket.org, but also Bitbucket Server.

Here is what I know so far:

  1. Bitbucket Server does not have the capability to act as an identity provider (e.g. via OAuth). Instead, Bitbucket is typically hooked up to an external identity provider, such as Keycloak or Atlassian Crowd. Gitpod would need to be hooked up to that external identity provider as well.

  2. To run git clone, Gitpod would need the user's access token from Bitbucket. It seems like bitbucket's PUT /rest/access-tokens/1.0/users/{userSlug} REST API can create such a token.

@akosyakov akosyakov added the type: feature request New feature or request label Oct 9, 2020
@jgallucci32
Copy link
Contributor

jgallucci32 commented Oct 21, 2020

Technically speaking the Application Links between the Atlassian Server products already support and use OAuth so in theory Gitpod would need to be configured in a similar manner. Not sure what the limitations are but you can configuring Incoming Authentication for OAuth. The required fields are:

  • Consumer Key
  • Consumer Name
  • Public Key (SSL cert)

Optionally you can specifcy the Consumer Callback URL which you would want for consistency with Github/Gitlab integration.

@stale
Copy link

stale bot commented Mar 16, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label Mar 16, 2021
@stale stale bot closed this as completed Mar 26, 2021
@gtsiolis
Copy link
Contributor

Re-opening in case this is now possible.

@gtsiolis gtsiolis reopened this Oct 21, 2021
@stale stale bot removed the meta: stale This issue/PR is stale and will be closed soon label Oct 21, 2021
@gtsiolis gtsiolis added team: webapp Issue belongs to the WebApp team component: dashboard labels Oct 21, 2021
@ajhalili2006
Copy link

Just a quick note that Bitbucket Server and other Atlassian Server products will go EOL on February 4, 2024, as per https://www.atlassian.com/migration/assess/journey-to-cloud. Maybe focus on Bitbucket Data Center instead?

@jgallucci32
Copy link
Contributor

@ajhalili2006 Yes, definitely. Bitbucket Server and Bitbucket Data Center at the core are the same product. The former has a perpetual license and the latter an annual subscription with some minor features added. Integrations into Data Center edition are likely to be backward compatible with Server edition.

@U1F984
Copy link

U1F984 commented Nov 26, 2021

I've investigated this for a bit, here's what I found out:

  • As mentioned before Bitbucket supports "Application Links". Internally this is using OAuth v1, which is a different protocol to v2 (docs)
  • The permissions granted are very broad, or at least I can't see any way to scope them apart from read/write (granting access to everything the user can do (docs)
  • A possible alternative could be personal access tokens which can be used both for cloning and talking to the REST API and can be scoped to a project/repository level, but must be manually setup (<5 minutes)

Alternatively also #167 could be implemented (+ authenticated raw urls and manually triggered prebuilds).

@jgallucci32
Copy link
Contributor

jgallucci32 commented Nov 26, 2021 via email

@ghuntley
Copy link
Contributor

Sorry if I went down a rabbit hole here, just wanted to throw out some potential solutions I’ve seen in other environments.

Thank you for going down the rabbit hole and providing your research!

@janstadt
Copy link

Has there been any movement on this or a plan to support Bitbucket Datacenter? Would really be great if you supported this for self hosted instances of gitpod.

@gtsiolis
Copy link
Contributor

Haven't seen any updates regarding this issue, @janstadt!

Looping in @jldec in case this is something we could prioritize or investigate.

@jldec
Copy link
Contributor

jldec commented Feb 14, 2022

OAuth2 for Bitbucket Server and Datacenter was announced with v7.20
https://confluence.atlassian.com/bitbucketserver/bitbucket-data-center-and-server-7-20-release-notes-1101934428.html

Tracking basic Gitpod support in #7957

@AlexTugarev
Copy link
Member

Done in #8499

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

10 participants