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

Not able to retrieve badge from the API without ACCESS_MANAGEMENT permission #4575

Open
2 tasks done
nvkhoa666 opened this issue Jan 22, 2025 · 0 comments
Open
2 tasks done
Labels
defect Something isn't working in triage

Comments

@nvkhoa666
Copy link

Current Behavior

With the default "Badge Viewers" team in Dependency Track, the API to retrieve a project's vulnerabilities badge (/v1/badge/vulns/project/:project/:version) returns 403. If the permission ACCESS_MANAGEMENT is added to that team, then it will work as expected.

Steps to Reproduce

  1. Use the API Key from the default "Badge Viewers" to query the API /v1/badge/vulns/project/:project/:version
  2. Server returns 403
  3. Add the permission ACCESS_MANAGEMENT to the "Badge Viewers" team
  4. Use the API Key from the default "Badge Viewers" to query the API /v1/badge/vulns/project/:project/:version
  5. Server returns 200

Expected Behavior

API requests to retrieve badges should work with only VIEW_BADGE permission

Dependency-Track Version

4.12.2

Dependency-Track Distribution

Container Image

Database Server

PostgreSQL

Database Server Version

No response

Browser

N/A

Checklist

@nvkhoa666 nvkhoa666 added defect Something isn't working in triage labels Jan 22, 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