New to Kestra?
Use blueprints to kickstart your first workflows.
Audit OWASP DefectDojo vulnerability SLAs, monitor active critical and high CVE findings, classify compliance posture, and route Slack alerts via Kestra.
Continuously audits OWASP DefectDojo vulnerability management platforms by querying REST API v2 endpoints, validating active verified findings against SLA resolution deadlines, classifying organizational posture, and routing escalation alerts to Slack.
probe_products queries /api/v2/products/ using an API token to verify DefectDojo service health and active product tracking.probe_critical_findings queries /api/v2/findings/ filtered for active=true, verified=true, is_mitigated=false, and severity=Critical.probe_high_findings queries /api/v2/findings/ with identical filters for severity=High.classify_sla_status evaluates finding counts against configurable SLA thresholds using a Pebble conditional expression:CRITICAL_SLA_BREACH when active Critical findings exceed max_tolerated_critical_findings.HIGH_SEVERITY_WARNING when High findings exceed max_tolerated_high_findings.COMPLIANT when all findings remain within allowable limits.API_UNREACHABLE or PROBE_FAILED.route_by_sla_status branches workflow execution based on the classification:COMPLIANT: Logs compliant posture, tracked product counts, and current finding metrics.HIGH_SEVERITY_WARNING: Dispatches a Slack alert with finding IDs, titles, and CVE identifiers exceeding the high-severity threshold.CRITICAL_SLA_BREACH: Posts an urgent escalation alert to Slack naming exact Critical finding titles and CVEs requiring immediate patching.API_UNREACHABLE / PROBE_FAILED: Notifies on-call teams of API communication failures.log_audit_summary exports structured metrics capturing SLA classifications and finding counts for compliance verification.errors catches unhandled exceptions and posts a high-priority incident notice to Slack.Vulnerability backlogs in tools like DefectDojo grow continuously from daily automated scanner runs. Without active orchestration, critical findings slip past SLA deadlines unnoticed until an audit or incident occurs. Kestra provides declarative, reliable orchestration with unified secret management, robust HTTP probing, automated scheduling, and multi-channel incident alerting.
DEFECTDOJO_API_KEY: DefectDojo user API token used for HTTP Token authentication.SLACK_WEBHOOK: Incoming Slack webhook URL used by alert_high_warning_slack, alert_critical_breach_slack, alert_probe_failed_slack, alert_unreachable_slack, and the errors handler.DEFECTDOJO_API_KEY and SLACK_WEBHOOK as secrets in your Kestra namespace.git clone https://github.com/DefectDojo/django-DefectDojo && cd django-DefectDojo
./dc-build.sh && ./dc-up.sh
defectdojo_host: "localhost" or "defectdojo".COMPLIANT, and logs audit metrics.every_morning_weekday trigger to automate daily morning SLA monitoring.tags=production.