-
Notifications
You must be signed in to change notification settings - Fork 190
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
Allow Setting Desired Rating Scheme for Reports/Clients #275
Comments
Thanks for submitting this as a feature request. I appreciate all the details and thought. Tags should help here, but you are right to assume tags may contain typos or be absent. Some other mechanism would be good to have for tracking something like this. |
@er4z0r I think this request is covered by custom fields released in v4.1. Does a custom field work for you? |
It sort of is. We can specify the rating scheme in a dedicated field now as opposed to a tag which makes it easier to spot and allows us to set a default value. One issue I can still see is the potential for typos e.g., if one of my colleagues misremembers or mistypes the value (e.g. I think I saw list/dropdown types mentioned as a future addition to custom fields. Is that correct? |
I'd like to support dropdown options. That would be a neat field. Maybe we can do something like track select options in the extra field spec and use that to fill a select field. Where it might be tricky is ensuring a submitted option is valid when submitted through the GraphQL API or if someone manually alters the field in the form POST data. The latter wouldn't break anything, but we'd need to add some validation that checks if the value for a select field is in your list of allowed options. Any thoughts @ColonelThirtyTwo ? |
This issue has been labeled as |
This issue is closed because it has been inactive for 14 days since being labeled |
This issue is closed but tracked on the road map. Adding a select box as a custom field was also brought up in #477. |
As a template maintainer I would like to keep the number of different templates to a minimum so I don't have maintain consistency among them.
One issue I'm currently facing is that reports need to look differently depending on the rating scheme. For example, when I use CVSS, the will be some extra lines/cells/whatever in the header of a finding to accommodate the score and the vector. When I'm not using CVSS I do not want to see in a non-CVSS report.
Describe the solution you'd like
As a template maintainer I would like to be able to access the desired rating scheme for a report from within the template so I could include/exclude different parts of the report. Example
Describe alternatives you've considered
Right now I either mantain an extra template for CVSS or I just create one template that has the CVSS stuff in it which I then need to remove after the export. In both cases it results in extra effort.
Once the tagging feature has rolled out, this could be used to implement a short-term solution. However, in the long run, I think making it a model property might be better:
rating:cvss3
might becomerating:cvss
,rating:cssv
etc.Also creating a full-blown model-property like
rating_scheme
might allow for some useful business-logic down the line such as:The text was updated successfully, but these errors were encountered: