Skip to content

Portfolio access control doesn't work when a user is member of different teams with different ACL's/projects #5295

@jkvbe

Description

@jkvbe

Current Behavior

I wanted to give user "write" access to a limited set of projects and view access to all the other projects in dependency track. Therefore I created 2 teams. One (teamA) with the permissions allowing to update attributes of projects/vulnerabilities and one (team B) with view only permissions.

In the Portolio Access Control tab, I assigned a limited set of projects to teamA and the remainder of the projects to teamB.

I've made a user member of teamA and teamB.

The user can modify attributes of all the projects now (e.g., vulnerability analysis data)

Steps to Reproduce

  1. Create teamA with permissions PORTFOLIO_MANAGEMENT, VULNERABILITY_ANALYSIS and VULNERABILITY_MANAGEMENT
  2. Create team B with all VIEW* permissions
  3. Assign teamA to projectA and team B to projectB and projectC
  4. Assign a user to team A and team B

The user is able to update vulnerability attributes (e.g., analysis data) of project B and C

Expected Behavior

I would have expected that it would refuse updates of vulnerability analsysis data of project B and C

Dependency-Track Version

4.13.3

Dependency-Track Distribution

Container Image

Database Server

PostgreSQL

Database Server Version

No response

Browser

N/A

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions