Create App Password for Team

Hi all,

according to https://confluence.atlassian.com/bitbucket/deploy-build-artifacts-to-bitbucket-downloads-872124574.html I have to create an APP Password for the repository owner in order to upload build artefacts to the download section of the repository pages.

The repository in question is "owned" by a "team".

I see how I can create an APP Password for my user but I don't find the same link/page for the team.

Is this a glitch in the UI or a missing feature or am I looking in the wrong place?

Thanks for your help.

D.

3 answers

I was able to make this 'work' by using the 'API Key' associated with the team. But not an App Password associated with my administrator account.

Still not considered safe or a good idea. as I have exposed my pipelines to my account. Being able to create a least-permissioned api key for the team is necessary to integrate various pipelines, builds to trigger other builds, etc...

0 votes

Hi Dominik! Team administration changed and now you can no longer manage repositories with a team account. Now, team members use their individual Bitbucket accounts to access the team and commit changes. This was announced at Team account changes.

That team shouldn't have an email address associated to it, are you still able to log in to that team using the team's email address? If you are, please let us know the name of the team, as that needs to be fixed.

Best regards,

Ana

Hi Ana,

yes I know about the changes. No I cannot login as "team" (I think).

But it appears that the repository (only created a few days ago) is OWNED by the team and I guess that is the reason the build-pipeline cannot upload the build artefacts.

Or why else does uploading the files fail?

Thanks for your help & best regards,

Dominik

0 votes

Hi, Dominik! Thanks for the info. In this case, an App Password can be created by a user who has Admin rights over the repo or Team. If you're an admin for that team you can create an App password using your individual Bitbucket account and use it for the team. Otherwise, if you're a normal user, you'll need to contact one of the admins to follow the steps at https://confluence.atlassian.com/bitbucket/app-passwords-828781300.html

Hope this helps!

Ana

Hi Ana,

thanks for you reply.  I am admin for the team.

As stated in my first message, I did create an app password, but it still does not work.

Can you tell me what is wrong. Why does the authorization fail.

Cheers,
Dominik

 

I'm seeing the same issue, and I think the behavior changed recently because it was working a week or so ago.

Predicates:

  1. User is a member of Team
  2. User is admin of Repository
  3. Repository is private
  4. Repository has a file X in downloads

Steps:

  1. As User, create an App password
  2. Attempt to fetch X with curl:
curl -O -L --user User:AppPassword https://bitbucket.org/Team/Repository/downloads/X

This now always returns an HTTP 401 Unauthorized error.

Edit: This also fails for POSTs, trying to upload files.

Further information: the REST API appears to work, at least for some functions:

curl -i -O -L --user User:AppPassword "https://api.bitbucket.org/2.0/repositories/Team/Repository/downloads/X"

does work.

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

673 views 0 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot