Unable to access exact web ui to delete SSH Key Pair Button #10831
|
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. Thanks! |
Replies: 5 comments
|
Thanks for opening your first issue here! Be sure to follow the issue template! |
|
Hello, @apraba05 This is the source code that controls the display of the 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: |
|
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! |
|
@apraba05, as far as I know, it’s currently only possible to hide UI sections by denying access to the APIs associated with those sections. For example, the image below shows the To completely remove sections from the UI, you would need to modify the source code. The UI development docs explain how the menu sections are configured and can be used as a reference for removing specific sections. |


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