02-19-2024 06:03 AM
Hey,
I am using Bitbucket Cloud and I want to connect my repository to Databricks. I am able to connect with my personal app password but what I am looking for is an authentication of a technical user.
I need the integration to point to my dbt repo, which will run as a workflow task and I don't want to use my personal git credentials for that because the service principal is the owner of the pipeline.
Is there a way of using non-personal access tokens to authenticate or is the only way creating a new technical user on Bitbucket?
Thank you!
02-19-2024 06:31 AM
Hi @Carsten03, Let’s explore the options for authenticating your Databricks integration with Bitbucket Cloud.
Databricks GitHub App (Recommended):
Bitbucket Cloud Repository Access Token:
git_username
other than the <hash>@bots
.Databricks Personal Access Token (PAT):
02-19-2024 06:31 AM
Hi @Carsten03, Let’s explore the options for authenticating your Databricks integration with Bitbucket Cloud.
Databricks GitHub App (Recommended):
Bitbucket Cloud Repository Access Token:
git_username
other than the <hash>@bots
.Databricks Personal Access Token (PAT):
02-20-2024 02:23 AM
Hi @Kaniz_Fatma,
thank you for your response! With this link you provided, I was able to authenticate with Bitbucket Cloud. The solution was to use x-token-auth as a username. I have tried with the generated email address before which didn't work. Thank you! Now I am facing the next issue.
I wanted to use the repository access to run dbt via workflows. I have added the git credential via terraform and checked with the cli that it is available, but I now I get the following error message:
[RepositoryCheckoutFailed] Failed to checkout Git repository: PERMISSION_DENIED: Missing Git provider credentials. Go to User Settings > Git Integration to set up your Git credentials
I want to run the workflow with a service principal as an owner and therefore don't want to set the git credentials for my personal user. How can the service principal get access to the git credential / repository?
02-20-2024 03:07 AM
I have created a new topic for this here: https://community.databricks.com/t5/administration-architecture/run-workflow-using-git-integration-w...
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.
If there isn’t a group near you, start one and help create a community that brings people together.
Request a New Group