Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


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


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
AUG Leaders

Atlassian Community Events