webui-vue icon indicating copy to clipboard operation
webui-vue copied to clipboard

Hide SOL Console Button in Operations menu on Sidebar Based on User Privilege

Open FarahRasheed1 opened this issue 1 year ago • 0 comments

Describe the bug

The SOL (Serial Over LAN) console button is currently visible to all users in the sidebar under Operations, regardless of their privilege level. This can lead to unauthorized access to the SOL console.

Related to https://github.com/openbmc/webui-vue/issues/124

To Reproduce

Log in to the system with a user account that does not have the necessary privileges for accessing the SOL console (privilege role of operator or read only). Navigate to the 'Operations' section on the sidebar. Observe that the SOL console is visible and accessible.

Expected behavior

The SOL console button should be conditionally rendered in the 'Operations' section on the sidebar based on user privilege. Only users with the appropriate permissions should see and access this button. This ensures that unauthorized users cannot access the SOL console functionality.

Screenshots

image

FarahRasheed1 avatar Jul 26 '24 14:07 FarahRasheed1