apache / cloudstack

Apache CloudStack is an opensource Infrastructure as a Service (IaaS) cloud computing platform
https://cloudstack.apache.org/
Apache License 2.0
2.11k stars 1.11k forks source link

Operation Icons on Shared Network w/VLAN on non-root Accounts #9757

Open scottsignal opened 1 month ago

scottsignal commented 1 month ago
ISSUE TYPE
COMPONENT NAME
UI
CLOUDSTACK VERSION
4.19.1.1
CONFIGURATION
basic network
OS / ENVIRONMENT
Ubuntu 22.04.5
KVM
SUMMARY

Shared networks that contain specifyvlan=true can only be created/modified/deleted/restarted by a root admin. The operations icons are present on these networks on non-root admin accounts. This results in a 531 error messages. It seems like if specifyvlan=true is set on a shared network, then the operations icons should be hidden for non-root accounts.

STEPS TO REPRODUCE
  1. Log into as Root Admin
  2. Create Shared network and specify a VLAN. (It doesn't seem to matter at what domain level the VLAN is built)
  3. Log out
  4. Log in as Domain Admin under a Sub Domain
  5. Go to Networks --> Guest Networks
  6. Drill into the Shared network you created and observe the operations icons. Trying to delete/restart/update the network will resolve in an 531 error.
    Request failed. (531)
    Shared network Network {"id": 211, "name": "AB123-NET-01", "uuid": "e3a7e8cf-9485-452a-a6a9-afddb062d18b", "networkofferingid": 26} with specifyvlan=true can only be operated by root admin

image image

EXPECTED RESULTS
Operation Icons should not be present on a shared network if `specifyvlan=true` 
ACTUAL RESULTS
Operation Icons should not be present on a shared networks and generate an error