Skip to content

Normal users with granted permission on listconfigurations/updateconfiguration are able to list and update global configurations #5494

Closed

Description

@weizhouapache
ISSUE TYPE
  • Bug Report
COMPONENT NAME
API
CLOUDSTACK VERSION
master
CONFIGURATION

N/A

OS / ENVIRONMENT

N/A

SUMMARY

as titile

STEPS TO REPRODUCE
1. create a role from Role 'User'
2. add listconfigurations and updateconfigurations to allow lists
3. create an account/user from the new role
4. list and update configuration by the user
EXPECTED RESULTS
user can only be able to list/update account settings
ACTUAL RESULTS
user is able to list/update account settings, domain settings, cluster settings, global settings, etc

Activity

  1. weizhouapache commented on Sep 22, 2021

    @weizhouapache
    MemberAuthor

    I have discussed with @Pearl1594
    It seems many apis have similar issue (not sure if it is a real issue).
    some APIs have authorized = {RoleType.Admin in APICommand annotation, but many old APIs do not have it.

  2. yadvr commented on Sep 22, 2021

    @yadvr
    Member

    I don't necessarily see this as bug at least for domain admin, but agree on normal user accounts/roles

  3. yadvr commented on Sep 22, 2021

    @yadvr
    Member
  4. added this to the 4.16.0.0 milestone on Sep 22, 2021
  5. davidjumani commented on Sep 23, 2021

    @davidjumani
    Contributor

    I can add a fix to restrict users as well, as part of #4339

  6. modified the milestones: 4.16.0.0, 4.16.1.0 on Sep 23, 2021
  7. modified the milestones: 4.16.1.0, 4.17.0.0 on Oct 4, 2021
  8. moved this to Dev In Progress in Apache CloudStack 4.17.0on Feb 7, 2022
  9. Repository owner moved this from Dev In Progress to Done in Apache CloudStack 4.17.0on Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions