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

Using "Specs > Sensitive data encryption" with Java specs sshPrivateKey/sshPublicKey

Edited

Currently we are using the keys stored in plain text in a private location:

new BitbucketServerRepository().sshPrivateKey(privKey).sshPublicKey(pubKey);

We would like to switch to encrypted keys with "Specs > Sensitive data encryption", so we can store the encrypted keys in an open location.

What is the correct way to achieve this?

Do I just put the encrypted versions instead of plain text, like

new BitbucketServerRepository().sshPrivateKey(encryptedPrivKey).sshPublicKey(encryptedPubKey);

and Bamboo will figure it out automatically and decrypt when it will try to access the repository? Or some other steps should be done to get it working?

I'm using Bamboo 6.10.6, if it matters.

1 answer

I would also like to know how this works.

Unfortunately, the documentation on Bamboo Specs encryption is pretty bad. As well as the Bamboo Specs and Java Docs. I couldn't find anywhere how to use this.

Maybe someone from Atlassian team can show how to use this...!?

We're using Bamboo 7.2.

Suggest an answer

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

Bamboo Data Center 8.1 is now available

G’day Bamboo customers, Bamboo DC 8.1 is now available with it the following features and programs: SAML 2.0, OpenID Connect, and Crowd SSO In order to help admins with a simplified user manage...

172 views 0 4
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