Closed kiblik closed 3 years ago
What is the url you're seeing this? I think after the import the user is redirect to the view test page of the test that was just imported.
http://localhost:8080/test/2
I know that showing 403 for Test makes sense but it is still confusing
Yes. I think the scan user was more designed for the API, but even there it needs some more permissions.
The scan_user role was actually designed for the API only. Using it in the UI seems to be an edge case for me, because you can't navigate to the Import page, you have to know the URL.
It is not easy to design the role for a scan_user. I personally have a script that gets the names for product, engagement and test. If it can't find the objects, it creates them and then does a reimport. Needs a lot of permission, the the user must be Maintainer.
Maybe it makes sense to give the scan_user role the permission to view the product and all objects underneath it (engagement, test, ...). Then the user can navigate to the product, import a scan result and view the result. But can't add or change anything manually.
If Scan_User was designed to interact only from API, standard access can be totally denied.
Would it be clearer to change the name of the role to API_SCAN_USER?
API_IMPORTER
?
"to import" is the only task for this user
Maybe it makes sense to give the scan_user role the permission to view the product and all objects underneath it (engagement, test, ...). Then the user can navigate to the product, import a scan result and view the result. But can't add or change anything manually.
A little bit late I suppose, but IMHO this is the better approach. It doesn't make much sense to create a role that is capable of interacting with the tool so much so as to update resources and not be able to see what it just did (?).
API_IMPORTER
suggests that you can do imports via API - but it still sounds vague, as one might think that you can bulk import users, products, engagements etc via the API, which doesn't seem to be the case.
renamed role in 1.15.0
Bug description
Scan_User has permission only to import test results. Even process is successful, DD returns HTTP 403. It is a bit confusing.
Steps to reproduce
Deployment method (select with an
X
)Environment information
DD_FEATURE_AUTHORIZATION_V2=True
[2021-04-23 12:37:15 +0200] 952ebd0c: Bump easymde from 2.14.0 to 2.15.0 in /components (#4343) [ (HEAD, upstream/dev)]
Screenshots