DependencyTrack / hyades

Incubating project for decoupling responsibilities from Dependency-Track's monolithic API server into separate, scalable services.
https://dependencytrack.github.io/hyades/latest
Apache License 2.0
61 stars 18 forks source link

Defect Dojo integration require a server restart #1485

Open worming004 opened 2 months ago

worming004 commented 2 months ago

Current Behavior

DefectDojo sync only works after a server restart.

As pointed out in #1484, this is a behavior already known. Feel free to close this issue if needed

Steps to Reproduce

Start configuration : sync is deactivated through UI, TASK_CRON_DEFECTDOJO_SYNC is setup with value "/1 *" to run sync every minute

11:49: api-server is restarted 11:51: activated through UI 11:54: no effect

Expected Behavior

After 11:51, we expect the sync to happens

Hyades Version

(using docker images)

All quarkus component: 0.6.0-SNAPSHOT

hyades-apiserver:5.5.0 hyades-frontend:5.5.0

Repository Type

Hyades apiserver

Browser

N/A

Checklist

nscuro commented 2 months ago

Indeed a different issue than #1484. The task is only scheduled on startup when enabled in the config: https://github.com/DependencyTrack/hyades-apiserver/blob/1f5f736b12d0257db1a3bb13b7d305aaf9986fa5/src/main/java/org/dependencytrack/tasks/TaskScheduler.java#L107-L109