Details
-
Bug
-
Resolution: Fixed
-
Low
-
None
-
Severity 3 - Minor
-
216
-
5
-
Description
Issue Summary
While adding more than 10 access keys on a repository, you are only able to see 10 of the latest and you are unable to browse them.
Without being able to browse them, you cannot delete or view old ssh keys information without deleting the ones that are displayed at the top, as an example.
Steps to Reproduce
- Add 11 ssh keys on the repository settings "Access key" page
- Leave the page (e.g. go to the "Repository Details" page)
- Go back to the "Access key" page and notice only 10 keys are displayed.
Expected Results
The page would display all SSH keys or provide a way to browse them through different pages
Actual Results
Only the latest 10 results are displayed.
Workaround
As a workaround for now you can use the following Bitbucket API to retrieve all the access keys associated with the repository -
curl -u username:password -X GET https://api.bitbucket.org/2.0/repositories/workspace/reposlug/deploy-keys/
Use your BItbucket account and the password to specifying the credentials. If you are using SSO or 2FA for the authentication then use the App password. You can create the App password from this link. Use this link to get more information about the above API.
Once you have the list of access keys from the previous command, you can delete the keys with the following API call:
curl -u username:password -X DELETE https://api.bitbucket.org/2.0/repositories/workspace/reposlug/deploy-keys/key_code
Use this link to get more information about the above API.
Attachments
Issue Links
- relates to
-
BCLOUD-20455 Adding more than 10 SSH key in Access-keys will only show the latest 10 keys
- Closed