-
Notifications
You must be signed in to change notification settings - Fork 10
Always re-use discovery dates per default if the data key matches #624
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
base: master
Are you sure you want to change the base?
Conversation
|
do we consider this as a breaking change from a semantical PoV? |
97103dd to
bd09956
Compare
Looking at the findings types which will now also re-use the discovery dates:
I think for |
bd09956 to
6e5a163
Compare
Instead of hardcoding a list of finding types for which to re-use
discovery dates, re-use them by default if the data key (i.e. their
identity) matches. This behaviour may be adjusted per finding type
(e.g. for vulnerabilities, only re-use if the package and CVE match).
Finding types can still be configured via the findings-cfg to not honour
existing discovery dates at all, e.g.:
```
- type: finding/<type>
reuse_discovery_date:
enabled: true | false
max_reuse_time: 30d
```
Signed-off-by: Jonas Brand (8R0WNI3) <[email protected]>
Since the data key is used per default now, these code paths (which also (indirectly) implemented a check against the data key) became obsolete now. Signed-off-by: Jonas Brand (8R0WNI3) <[email protected]>
Signed-off-by: Jonas Brand (8R0WNI3) <[email protected]>
6e5a163 to
a6ab805
Compare
do we know whether there are other usages of sast-extension than our own (gardener)? if not, we can still mark this as breaking, but we will not need to take any precautions w.r.t. rollout. |
No, there are no other (active) usages yet.
Agree, I have adjusted the release-note accordingly. |
What this PR does / why we need it:
Instead of hardcoding a list of finding types for which to re-use discovery dates, re-use them by default if the data key (i.e. their identity) matches. This behaviour may be adjusted per finding type (e.g. for vulnerabilities, only re-use if the package and CVE match).
Finding types can still be configured via the findings-cfg to not honour existing discovery dates at all, e.g.:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: