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

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

Avatar

1 badge earned

Collect

Participate in fun challenges

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

Challenges
Coins

Gift kudos to your peers

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

Recognition
Ribbon

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!

Leaderboard

Bitbucket Access Key Rotation

Edited

Given the limitation of the access key that it doesn't require a passphrase and cannot be associated with an account. It can be the case that one still have the read access of the private repository after his/her account revoked. Or worse, the leaked private key can causes an unauthorised third party gains access to the private repository. 

Is there a way to

  • rotate the access key
  • remind the admin/ creator of the key regarding the expiration of the key
  • control the creation of the key on an approval basis



1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 25, 2022

Hi @Jin Yu Tung,

Thank you for reaching out to the community.

Right now, there's no feature to manage repository Access keys' by setting policies such as rotating it periodically, or set an expiration, or controlling the creation.
We do have an existing feature request similar to it that can be located through this link. - https://jira.atlassian.com/browse/BCLOUD-21080
You can upvote and watch it for now so that you'll be notified of any updates from our team when the feature becomes available on Bitbucket Cloud.

For now, you'll have to manually rotate repository Access keys periodically by removing and generating new SSH keys.

For the workflow recommendation, I would recommend using the user's personal SSH keys instead and then managing their read access to the specific repository or workspace user groups.
This way, whenever a user is revoked, the SSH key will also be revoked.

Hope it helps and do let me know if you have further questions.

Regards,
Mark C

Hi Mark C, 
Is there a way to restrict a user from creating an access key currently? 

Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 26, 2022

Hi @Jin Yu Tung

Right now, only admins can create repository Access keys and there's no feature to restrict admins from creating an access key.
However, as long a user only has Read or Write access to the repository, they won't be able to create Access keys.

Let me know if you have further questions.

Regards,
Mark C

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events