CircleCI Ideas

Create Bitbucket SSH keys automatically

Currently it is a terribly painful process to create a Bitbucket SSH key.

It seems that the reason why we have to do this is because
"Bitbucket does not currently provide CircleCI with an API to create user keys. However, it is still possible to create a user key by following this workaround"

I could be completely wrong here, but looking at the Bitbucket API docs it seems that there is a clear way to do this?

Something which would probably take the engineering team 5 minutes to implement can save customers hours of manual work.

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Apr 7 2020
  • Taking votes
  • Attach files
  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    19 May 01:10am

    Bitbucket Workspaces (which contain projects and many repositories) also support 'global' SSH Access Keys. And while there doesn't seem to be an API for that which I can find, CircleCI could generate and store the private key and provide the public key for the admin to add manually to their bitbucket workspace. Pretty similar to how access to bitbucket works for other systems.