Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,367,808
Community Members
 
Community Events
168
Community Groups

Possible to add a single workspace SSH key for many pipeline deployments?

I have a server with many different projects running on it, and am wondering if there's a way to configure an SSH user at the workspace level to run deployments.

It's a pain to generate a new key for each repo and add to authorized_keys for my deployment user, and if I ever needed to invalidate those keys, I would need to go through every repo and generate a new one.

I'm just hoping there's an easier way to do this. The other alternative I thought of was to save a key as a workspace environment variable, and then pass it to the various pipelines that way, but it seems there are security issues with this method, so I was hoping to avoid it.

 

Thanks in advance!

1 answer

0 votes
Syahrul Atlassian Team Aug 16, 2022

Hello, @bobby jenrow 

G'day.

Is your repositories under the same Workspace "bitbucket.org/<WorkspaceId>"?

If yes, I believe you can add the SSH key on your Workspace level, allowing the SSH key to be used with all repositories under your Workspace.

You can find these settings under the Workspace settings SSH key  or access it at the following URL by changing the Workspace ID with yours:

https://bitbucket.org/<WorkspaceID>/workspace/settings/ssh-keys

Cheers,
Syahrul

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events