You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to access exact web ui to delete SSH Key Pair Button #10828
I'm currently looking to find where the SSH Key Pair Button can be removed from the UI as our customers don't need this. I've dug through the chunk files but there is no clear indication as to where the exact file or where I can delete the UI is.
This is the current view but we are unable to find the exact source code as to where we remove these components as the user doesn't need access to this or needs to view this. Thanks!
The best approach to hide it from end users is by revoking access to the APIs that manage SSH key pairs, which essentially are: listSSHKeyPairs, createSSHKeyPair and deleteSSHKeyPair. To revoke the APIs access, I'd recommend creating a custom role based on the existing role that is in use by the end user accounts.
I'm actually just looking to remove it completely from the UI. This would then ensure that the user is unable to view it all. It's fine even if the Administrators are unable to view it too. I needed to do it for the Affinity Groups and User Data.
Activity
boring-cyborg commentedon May 7, 2025
Thanks for opening your first issue here! Be sure to follow the issue template!
apraba05 commentedon May 7, 2025
This is the current view but we are unable to find the exact source code as to where we remove these components as the user doesn't need access to this or needs to view this. Thanks!
bernardodemarco commentedon May 7, 2025
Hello, @apraba05
This is the source code that controls the display of the
SSH key pairssection:cloudstack/ui/src/config/section/compute.js
Lines 827 to 910 in 39c5641
The best approach to hide it from end users is by revoking access to the APIs that manage SSH key pairs, which essentially are:
listSSHKeyPairs,createSSHKeyPairanddeleteSSHKeyPair. To revoke the APIs access, I'd recommend creating a custom role based on the existing role that is in use by the end user accounts.apraba05 commentedon May 7, 2025
I'm actually just looking to remove it completely from the UI. This would then ensure that the user is unable to view it all. It's fine even if the Administrators are unable to view it too. I needed to do it for the Affinity Groups and User Data.
Thanks for your help @bernardodemarco!