Skip to content
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

Portfolio access control not respected in API requests? #4370

Open
2 tasks done
thomashucke opened this issue Nov 13, 2024 · 0 comments
Open
2 tasks done

Portfolio access control not respected in API requests? #4370

thomashucke opened this issue Nov 13, 2024 · 0 comments
Labels
defect Something isn't working in triage

Comments

@thomashucke
Copy link

Current Behavior

New projects / versions are created in root though project access should be limited by porfolio access control policy to one existing (parent) project.

Steps to Reproduce

  1. Create a new project "Parent project"
  2. Set up a team "Gitlab-CI publish only" with minimal permissions to upload SBOMs and create new projects (BOM_UPLOAD, PROJECT_CREATION_UPLOAD)
  3. Enable portfolio access control
  4. For team "Gitlab-CI publish only" only enable project access only to "Parent project"
  5. POST a new SBOM using CURL without parameter "parentName" or "parentUUID"

Expected Behavior

POST should fail because of the access limitation by porfolio access control policy

Dependency-Track Version

4.12.1

Dependency-Track Distribution

Container Image

Database Server

PostgreSQL

Database Server Version

No response

Browser

Mozilla Firefox

Checklist

@thomashucke thomashucke added defect Something isn't working in triage labels Nov 13, 2024
@thomashucke thomashucke changed the title Porfolio access control not respected in API requests? Portfolio access control not respected in API requests? Nov 13, 2024
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