StackStorm / StackStorm/st2

RBAC action_list is not resource-specific

Open
#2,914 1 comment 0 reactions 1 assignee View on GitHub

@Kami is already working on this.

Since Sep 20, 2016.

feature
Dominant language
Python
Stars
6.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

I am using the RBAC feature (st2 v1.5.1, Enterprise Linux) and am confused by action_list. When I put that in a role in the context of a particular pack I can see _all_ the packs, not just the expected pack.

I would expect that I could only see/list the packs and actions that I am permitted to see. Instead, if I am a member of a role that includes action_list then I can see all the packs and actions (in the Web UI and via st2 action list).

Below is a sample role definition.


---
name: "mc_salt_owner"
description: "Owner of mc_salt pack"
enabled: true
permission_grants:
    -
        resource_uid: "action:mc_salt.chef_solo"
        permission_types:
            - "action_list"

    -
        resource_uid: "pack:mc_salt"
        permission_types:
             - "pack_view"
             - "pack_create"
             - "pack_modify"
             - "pack_delete"
             - "pack_all"
             - "action_view"
             - "action_execute"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.