Commit graph

21 commits

Author SHA1 Message Date
nscuro
a6f962a7c5
Dockerfile tweaks
* Uses recommended JSON array notation for `CMD` directives.
* Suppresses warnings for `sun.misc.Unsafe` usage (for Lucene) emitted by Java 25.
* Removes undesired `|| true` and `|| exit 1` occurrences as they don't provide any benefit.
* Specifies `--chown` for COPY directives to make ownership more explicit.
* Switches from `wget` to `curl` for health check as it has the same flags in Alpine and Debian, which wget does not have.

Signed-off-by: nscuro <nscuro@protonmail.com>
2026-01-02 15:57:04 +01:00
nscuro
4def88d583
Add apiserver health check to Compose files
It seems Podman / Podman Compose doesn't pick up the health check from the container itself.

Fixes https://github.com/DependencyTrack/dependency-track/issues/1388

Signed-off-by: nscuro <nscuro@protonmail.com>
2025-06-07 12:08:55 +02:00
nscuro
9c109dec99
Prevent duplicate tag names and relationships
Signed-off-by: nscuro <nscuro@protonmail.com>
2025-04-18 21:13:56 +02:00
nscuro
7d59c3f930
Implement basic telemetry collection
Signed-off-by: nscuro <nscuro@protonmail.com>

# Conflicts:
#	dev/docker-compose.yml
2025-02-23 16:03:35 +01:00
nscuro
0b73ab128d
Fix incomplete API key migration
Fixes #4652
Fixes #4683

Signed-off-by: nscuro <nscuro@protonmail.com>
2025-02-23 15:01:00 +01:00
nscuro
23a8e1cc4c
Update quickstart Compose file to use Postgres instead of H2
Since we don't recommend using H2, and H2 keeps causing issues, we shouldn't have it as a default for new users.

Relates to #4573

Signed-off-by: nscuro <nscuro@protonmail.com>
2025-01-22 11:25:40 +01:00
nscuro
42b91e887a
Fix project.active being nullable
Ensure the field defaults to `true`, both in Java and the database. During upgrade, migrate all values that are currently `null` to `true`.

Solidify this change by switching `project.active` from `Boolean` to `boolean`. Adjust logic that previously had to check for `null`.

Fixes #4410

Signed-off-by: nscuro <nscuro@protonmail.com>
2024-11-27 22:10:16 +01:00
nscuro
dd85630cd4
Fix docker-compose.mssql.yml
Signed-off-by: nscuro <nscuro@protonmail.com>
2024-09-12 19:30:07 +02:00
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
5bf8eda95b
Add dev Compose file for Trivy
Signed-off-by: nscuro <nscuro@protonmail.com>
2024-04-20 19:58:10 +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
39d9a3aa24
Align retry configuration and behavior across analyzers
* Align property names
* Durations are now specified in milliseconds instead of seconds
* Reduce retry attempts and retry durations for OSS Index; The previous values were excessive
* Ensure that retries are only performed under certain transient error conditions, not for *any* error
* Provide a common mechanism to log when retries are performed, when max attempts were exceeded, or errors were not considered for retries

Signed-off-by: nscuro <nscuro@protonmail.com>
2024-02-24 22:16:46 +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
54175762bf
Recommend READ_COMMITTED_SNAPSHOT isolation for MSSQL
In response to #3133

Signed-off-by: nscuro <nscuro@protonmail.com>
2023-10-28 18:36:36 +02: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