Skip to content

Name, Severity and Category are now required Findings attributes#557

Merged
J12934 merged 6 commits intomainfrom
maintenance/make-findings-schema-stricter
Jul 27, 2021
Merged

Name, Severity and Category are now required Findings attributes#557
J12934 merged 6 commits intomainfrom
maintenance/make-findings-schema-stricter

Conversation

@JohannesZahn
Copy link
Contributor

Description

Closes #544

Checklist

  • Test your changes as thoroughly as possible before you commit them. Preferably, automate your test by unit/integration tests.
  • Make sure npm test runs for the whole project.
  • Make codeclimate checks happy

Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
@JohannesZahn JohannesZahn added persistence Implement or update a persistence store maintenance labels Jul 22, 2021
@JohannesZahn JohannesZahn requested a review from J12934 July 22, 2021 08:48
@JohannesZahn JohannesZahn self-assigned this Jul 22, 2021
return openPorts.map(openPort => {
return {
name: openPort.service,
name: openPort.service || `Open Port: ${openPort.port}`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to use the v3 release to make this more consistent and use the Open Port: ${openPort.port} format for all open port findings.

Maybe with the openPort.service appended in brackets if it exists:
like "Open Port: 8080 (http-apache)" or "Open Port: 10250"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I implemented it, have a look at the recent changes

Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
@J12934 J12934 enabled auto-merge July 27, 2021 07:35
@J12934 J12934 merged commit 1b7db4f into main Jul 27, 2021
@J12934 J12934 deleted the maintenance/make-findings-schema-stricter branch July 27, 2021 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance persistence Implement or update a persistence store

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add additional required fields to Findings Schema

2 participants