Closed adulau closed 4 months ago
Thank you for this !
As discussed here I focus on finishing the user management system (creation, management of accounts) with a simple case of submitting a new vulnerability. Just to not have a huge PR. It won't be small PR. But it will be ready soon. I'll make first a draft PR for it. And after we can add the comments in another PR.
And since you raise the problem of 'type' of users, I would like to make clear the different roles we need for the moment.
To summarize, an authenticated user (not an admin) can have several roles/permissions ? For example:
Or a same type of authenticated user (not admin) is able to comment and report, without distinction ?
The roles seen are the following:
admin
full access to everything including update of other comments or bundles or vulnerabilitiescommenter
allow to create new comment or edit their own commentsreporter
is also a commenter
but can also submit/edit vulnerabilities their own vulnerabilities Thanks for the information. I did the self-creation of accounts (creation by the admin was already done). The new user receives an email in order to verify the account. When the app is executed in debug mode, the email is simply written in a file. I will update the roles and permissions now.
For the graphical interface I have something like this in mind.
Related vulnerabilities view, almost no change:
The new view for the comments/bundles:
It's just a draft.
Looks great! Maybe another tab for the bundles
listing the reference if the vulnerability is referenced in a bundle.
yep, indeed it's better.
Should the admin of the platform review the comments before they get published ?
@cedricbonhomme That would be ideal (maybe to have it optional).
The last version of the JSON schema is available here, @adulau. There are minor changes to what you proposed. But maybe we need some more updates.
Some suggestions/ideas/questions:
don't hesitate if you have feedback.
if you want to see the result with the markdown editor:
@cedricbonhomme Good point. The description field should be indeed mandatory. For the array of vulnerabilities, it was just if we wanted to have the same descriptions for many vulnerabilities.
Vulnerability-lookup will allow logged user (with validated account) and with type "commenter" or "admin" to create
comment
orbundle
.The format of the JSON foreseen (draft) is the following:
comment
,bundle
markdown
,text