Skip to content

Not able to upload a bom without ACCESS_MANAGEMENT permission when portfolio access control is enabled #4828

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
thucke opened this issue Apr 8, 2025 · 0 comments
Labels
defect Something isn't working in triage

Comments

@thucke
Copy link

thucke commented Apr 8, 2025

Current Behavior

Having a team with the following permissions:

  • BOM_UPLOAD
  • PORTFOLIO_MANAGEMENT
  • PROJECT_CREATION_UPLOAD
  • VIEW_POLICY_VIOLATION
  • VIEW_PORTFOLIO
  • VIEW_VULNERABILITY
  • VULNERABILITY_ANALYSIS

a new BOM could be uploaded to a specific parent project via API (regulary using maven plugin io.github.pmckeown.dependency-track-maven-plugin).

After portfolio access control has been activated the upload fails until the team got ACCESS_MANAGEMENT permission.
This is INHO a risk for access control as members having this additional permission could grant themselfes or others any permission.

Steps to Reproduce

  1. setup a team with the upper mentioned permissions
  2. add an empty project that should be parent for new uploads
  3. do an upload of a BOM via API behond the new parent project ==> success
  4. activate portfolio access control and add the parent project to the team used for this test
  5. do an upload of a BOM via API behond the prent project ==> fails "forbidden"
  6. add ACCESS_CONTROL to the team permissions
  7. do an upload of a BOM via API behond the prent project ==> success

Expected Behavior

Publishing new BOMs to Dependency Track via API should be possible without having ACCESS_CONTROL permission even when portfolio access control is enabled.

Dependency-Track Version

4.12.x

Dependency-Track Distribution

Container Image

Database Server

PostgreSQL

Database Server Version

No response

Browser

N/A

Checklist

@thucke thucke added defect Something isn't working in triage labels Apr 8, 2025
@thucke thucke changed the title Not able to upload a bom without ACCESS_MANAGEMENT permission when portfiolo access control is enabled Not able to upload a bom without ACCESS_MANAGEMENT permission when portfolio access control is enabled Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Something isn't working in triage
Projects
None yet
Development

No branches or pull requests

1 participant