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

This widget could not be displayed.

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...

This widget could not be displayed.

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

This widget could not be displayed.

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.

Hi, I was wondering whether this has been resolved, a solution found. 

I'm attempting to upload the results of a pipeline to downloads and all the docs I've come across suggest that I use BITBUCKET_REPO_OWNER for the user credentials (which is the team).

I'm still slightly confused as to how you can run a pipeline as a particular user (given a number of users could commit?) as in doing so doe sthis not provide access for those users to someone else's authorization?

 

 

Hi,

I never found a solution. I gave up after a while, as it was a nice to have and not a need to have for me.

I am using buildship.com now.

Good luck!

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published 3 hours ago in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

27 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