Commit graph

10 commits

Author SHA1 Message Date
nscuro
9cffad6397
Bump CWE dictionary to v4.14
Also removes `cwe-dictionary-generate.py`.

Dictionary generated with:

```
jbang gen-cwe-dict@DependencyTrack --version 4.14 --package org.dependencytrack.parser.common.resolver --output src/main/java/org/dependencytrack/parser/common/resolver/CweDictionary.java --jakarta
```

Signed-off-by: nscuro <nscuro@protonmail.com>
2024-06-06 20:06:24 +02:00
nscuro
c5eda9271e
Transfer copyright from Steve Springett to OWASP Foundation
Signed-off-by: nscuro <nscuro@protonmail.com>
2024-03-20 18:39:35 +01:00
nscuro
c607330120
Bump CWE dictionary to v4.13
Signed-off-by: nscuro <nscuro@protonmail.com>
2024-02-24 16:00:02 +01:00
Sebastien Delcoigne
d1a44a6f92 Adds possibility to enter an attribution date value when adding a vulnerability to a project, used in cloning operation.
Fixes #3464

Signed-off-by: Sebastien Delcoigne <sebastien.delcoigne@gmail.com>
2024-02-22 22:57:13 +11:00
nscuro
b112c1997c
Preprocess CWE dictionary
The current setup is parsing the CWE dictionary XML at runtime and persisting it to the database (`CweImporter`), just to load it from the database again into memory (`CweResolver`). Both `CweImporter` and `CweResolver` end up holding the entire CWE dictionary in static `Map`s, which is unnecessary.

CWEs are synchronized with the database on startup, where each CWE is processed in a database transaction. That is over 1400 transactions before anything meaningful is done.

As of v4.5 (https://github.com/DependencyTrack/dependency-track/issues/1467), CWEs are stored as serialized list in the `VULNERABILITY` table. The `CWE` table is thus not required anymore, as nothing is referring to it. Lookups can be served immediately from in-memory maps.

With this change, the CWE dictionary is pre-processed with a Python script. It generates a Java class that holds all entries in a static `LinkedHashMap`. Persistence logic around CWEs is removed, and the `CWE` table is dropped.

This is a backport from Hyades.

Signed-off-by: nscuro <nscuro@protonmail.com>
2023-12-08 23:52:59 +01:00
nscuro
2ebcb56e29
Add avg. event processing duration to Grafana dashboard
Signed-off-by: nscuro <nscuro@protonmail.com>
2023-11-04 19:36:04 +01:00
nscuro
173d876c41
Add script to update SPDX license list
Signed-off-by: nscuro <nscuro@protonmail.com>
2023-09-01 22:35:17 +02:00
nscuro
437627e52f
Add dev script to launch local Jekyll with Docker
Signed-off-by: nscuro <nscuro@protonmail.com>
2023-08-27 20:54:52 +02:00
nscuro
0bcaed748e
Add auto-provisioning of Grafana to dev Compose setup
Signed-off-by: nscuro <nscuro@protonmail.com>
2023-07-09 00:50:54 +02:00
nscuro
df196b5ec8
Move Compose files and scripts to dev directory
To make it clear that these Compose files are only meant for dev and testing work. Avoiding confusion with the existing `src/main/docker/docker-compose.yml`, which is also used as quickstart.

Signed-off-by: nscuro <nscuro@protonmail.com>
2023-05-29 18:46:14 +02:00