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

SSH key restricted to repo?

SSH keys are perfect when you control the private key. But sometimes you have to use that as a way to enable other systems to talk to bitbucket.

For example, if I want to use codenvy or devtable, i would have to upload a private key there, and a public key to bitbucket, so the tool can checkout code and commit for me.

But of course, i only want the tool (and its developers) to access the public repo i intend to use the tool on. Not my private repos.

My work around is to create a 'headless user' for the tool, upload the public key there, and give full permissions to it on the public repo i onw. But it would be easier for me and generate less useless accounts on bitbucket (not to mention prevent me from crossing some line in the UELA of the service) if i could restrict keys to repositories.

I know it sound like a feature request, and it probably is, but posting here in case there is a way to do that that i am overlooking.

2 answers

2 votes

You can! This is exactly what deploy keys was mae for. Check that out and let us know in the comments if you have any other questions.

But that is read only access. Both applications i listed are code editors. I want to be able to write to those repositories.

Hi, did you ever figure this out? I'm after the same thing.

I'm also using role-based accounts for read-write purposes.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted 3 hours ago in United States

Atlassian Government Symposium

Good day members, Not sure if you are aware that Atlassian will be hosting a Government Symposium on May 1st, 2019 in Washington DC. For more details please click here If you have any questions...

12 views 0 0
View post

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