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

Extend test connection functionality to account for server-side permissions #13

Closed
sephiroth-j opened this issue Nov 17, 2020 · 2 comments · Fixed by #94
Closed

Extend test connection functionality to account for server-side permissions #13

sephiroth-j opened this issue Nov 17, 2020 · 2 comments · Fixed by #94
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@sephiroth-j
Copy link
Member

Dependency-Track Plugin connection to Dependency-Track server is managed via "Configure System" and is provided with a Test Connection button.

The test connection functionality should be enhanced to account for server-side permissions

eg whether or not PROJECT_CREATION_UPLOAD permission exists when "Auto Create Projects" is checked in Jenkins.

imported from JENKINS-55661

@sephiroth-j sephiroth-j added the enhancement New feature or request label Nov 17, 2020
@sephiroth-j
Copy link
Member Author

All possible API-endpoints that may return this information are only available for administrators. A new endpoint would be required that returns such information for any given and valid API key.

@sephiroth-j
Copy link
Member Author

API endpoint requested - DependencyTrack/dependency-track#861

@sephiroth-j sephiroth-j self-assigned this Feb 13, 2022
@sephiroth-j sephiroth-j added this to the v4.2.0 milestone Feb 14, 2022
sephiroth-j added a commit that referenced this issue Apr 6, 2022
starting with DTrack 4.4.0 it is possible to check the permissions of a team.
the connection test will use the old behaviour for DT below 4.4.
for DT 4.4+ the new endpoint will be used to check for required permissions. this includes auto-creation (global + job) and sync-mode (job-only).

fixes #13
@sephiroth-j sephiroth-j linked a pull request Apr 6, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant