Blacktide
Docs Start free

Blacktide/DefectDojo

GitLab and DefectDojo, one map.

Blacktide mirrors your GitLab into DefectDojo and keeps it current: organizations, assets, engagements, people and findings, updated within seconds of a change in GitLab. Part of Enterprise.

GitLabDefectDojo
  1. Top-level groupacme
    Organizationacme
  2. Projectacme/payments-api
    Assetacme/payments-api
  3. Protected branchmain
    CI/CD engagementmain · In Progress
  4. Protected branchproduction
    CI/CD engagementproduction · In Progress
  5. Member, Reporter or above@dana
    User, authorised on the assetdana
  6. Full scan of a branchpipeline on main
    Re-import into the engagementdeduplicated

Three clocks

Fast when it can be. Certain when it must be.

A change reaches DefectDojo the moment GitLab says so. If a webhook is missed, the poll catches it; if both miss, the hourly reconcile walks everything. Twenty pushes to one project become one sync.

Webhook
SecondsPush, rename, move, members added or removed
Poll
Every 3 minutesProjects GitLab reports as recently active
Reconcile
Every hourEverything, and once at start-up

A branch's life, as an engagement.

  • In Progress

    The branch exists

    Full scans of it are re-imported here with its commit. Fixed findings close on their own.

  • Not Started

    It never existed

    The project has no such branch yet. The engagement is ready for the day it does.

  • On Hold

    It was deleted

    History stays in DefectDojo; nothing is thrown away with the branch.

It only touches what it owns.

  • Never deletes. A project gone from GitLab is tagged gitlab:unreachable, and its history stays.
  • Keeps your edits. Tags, statuses, users and technical contacts people set by hand are left alone.
  • Knows the owner. The namespace user for personal projects; the creator, or the senior human maintainer, for group projects.
  • Tags what matters. Group, owner, visibility and topics as tags; the GitLab details as metadata.

The sync, answered.

How do I sync GitLab projects to DefectDojo?
Blacktide Enterprise takes a GitLab token (personal, or an instance admin token for everything) and a DefectDojo API key. It creates an asset for every project, grouped by top-level group, and keeps them in sync through a GitLab system hook, a poll every few minutes and a full reconcile every hour.
How are GitLab branches mapped to DefectDojo engagements?
Each project gets a CI/CD engagement for main, master, prod and production: In Progress if the branch exists, Not Started if it never did, On Hold if it was deleted. Each carries its commit and its own deduplication.
Do developers get DefectDojo accounts?
Yes. Members with the Reporter role or above become DefectDojo users with access to their project's asset. A new account's one-time password is shown once, after the person signs in to Blacktide with GitLab, and DefectDojo asks them to change it.
Does Blacktide delete anything in DefectDojo?
No. The sync never deletes and only changes what it owns: tags, statuses and users that people added by hand are kept. A project that disappears from GitLab is tagged gitlab:unreachable.
Which DefectDojo version does Blacktide support?
DefectDojo 3.x. Blacktide's Docker Compose file can run DefectDojo next to it, or it can connect to the one you already have.

DefectDojo sync comes with Blacktide Enterprise.