Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to add an Access Key with Write permission?

I am trying to set up Sparkle Share (http://www.sparkleshare.org/) for an artist on my team who needs read-write access to our project, but doesn't want to deal with Git (Sparkle Share behaves like DropBox).

Sparkle Share provides an SSH client id, which I add as an "Access Key" to my Free BitBucket Repo. This works; the repo is properly download to the clients machine. However, any changes they make cannot be uploaded, because that Access Key only has "Read" permission.

On GitHub there is just a little "allow write" check box when you add an SSH key, but I can't find anything on BitBucket.

Is this possible?

3 answers

Bitbucket cloud has been an exceedingly disappointing experience... Similar to JIRA, it's missing many features, and Atlassian doesn't seem capable of delivering them. How about some pre-commit hooks?

Yea, access keys with optional write access seems like a pretty important feature. Github has this exact behavior with their "deploy keys". Now with github offering free private repos, it's hard to justify sticking with Atlassian.   

Like # people like this

Honestly, this is unacceptable for a product as big as this not to have such basic functionality, for anyone else that needs a 'workourand': 

Instead of adding the public ssh key as an access key on the repo, add it as a public ssh key of a user that has write access to the repo.

Unfortunately this user will be the 'scapegoat' if something goes wrong ;-)

Like # people like this
legga I'm New Here Aug 28, 2020

You usually create a service account for this sort of things instead of adding that key to a real user's account.

2 votes
carolyn french Community Leader Jul 11, 2018

Hi Matt, and welcome to Community!

From what I see in the Bitbucket documentation, you can only do read/write in Bitbucket Server Access Keys, not Bitbucket Cloud.

Someone else may have some sort of workaround for you...

Carolyn

0 votes
legga I'm New Here Aug 28, 2020

I know its 2020, but I needed to do a similar thing recently. Here's how I did it.

When you add an SSH key to your repo, you essentially give an anonymous user called "git" a Read access to your repo as long as they provide that key. Such access seems to be limited to read-only by design.

Instead of adding an SSH key to the repo I created a BitBucket user for my service account (i.e. srv-acct-001) and added SSH key to that user. Now if you give that BB user Write permissions to your repo, they will be able to read and write AS LONG AS they use that user's name instead of "git" and provide their SSH key, for instance:

git clone srv-acct-001@bitbucket.org:<repo>

This way it will consume one user account, of course.

Workspaces also has access keys. Adding key there gives you write access.

I tried the "make a user for the svc account" approach, but ran into issues validating the invite. SSO prevented me from logging in as the svc account.   

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,849 views 0 7
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