DefectDojo Migration (Pro)

The DefectDojo Migration connector pulls the data of another DefectDojo instance into DefectDojo Pro. The source is usually an open source DefectDojo instance. The source can also be a DefectDojo Pro instance on a release that serves the export API. The connector reads the source over its export API. It changes only the read-only mode of the source, during each Sync. See Read-only mode during a Sync.

The DefectDojo Migration is a beta feature and is off by default. A superuser turns on DefectDojo Migration on the Feature Flags page. While it is off, the connector’s tile, its connections, the migration page and Activate and Invite do not show.

Use it to move an open source estate into DefectDojo Pro, or to consolidate two instances. You set it up in the Connectors UI, like every other Upstream Connector. On Connect > Upstream, its tile is DefectDojo Migration. You can run it again and again until you cut over. For the full migration procedure, and for the database dump path, see Migrating from Open Source to Self-Hosted DefectDojo Pro.

This page uses the open source names Product Type and Product. In DefectDojo Pro, they can show as Organization and Asset.

This connector ships in a coming DefectDojo Pro release.

Prerequisites

In DefectDojo Pro, only a superuser can create, change, delete or run a DefectDojo Migration connection. Only a superuser can change the Include boxes too. Other users who can see connectors can read the migration page.

The source must meet three requirements:

  • Version. The source runs DefectDojo 3.5.300 or later. Discover refuses an older source, so nothing migrates from it. Discover runs right after you save the connection.
  • HTTPS. The source URL starts with https://. The connector refuses a plain http:// URL, so the token never travels in clear text.
  • A superuser API token. Create an API v2 key for a superuser on the source. The connector sends it with every request.
Why a superuser token

The export API answers only a superuser. The export does not filter by permissions, and private notes cross. Its manifest lists every Product Type, every Product and every user of the instance. Only a superuser can read all of that in one place. A token of any other user gets a 403. The connector reports that when you save the configuration.

Create a user on the source for the connector alone, for example defectdojo-migration. Make it a superuser and create an API key for it. The connector reads the source with that key, and it turns read-only mode on and off with it. See Read-only mode during a Sync. If the key expires within 30 days, the preflight report warns you. Revoke the key after the cutover.

Connector Mappings

  1. Open Connect > Upstream, and click Add Configuration on the DefectDojo Migration tile.
  2. Enter the URL of the source in Location URL, for example https://dojo.example.com. The URL must start with https://.
  3. Enter the superuser API key in API Token.
  4. Keep the defaults of the fields in the table below, or change them. Auto-Mapping is always on for this connector, so the form does not offer it. See Records.
  5. For a migration you run once, keep One-Time in both Frequency fields. To delete the connection when the migration is done, turn on Delete the Connection After the Migration.
  6. Click Submit. With One-Time in Frequency, Discover starts at once and the connection’s migration page opens. The preflight report appears on it when Discover ends.
FieldDefaultWhat it does
Verify TLS CertificateOnChecks the certificate of the source. Turn it off only for a source with a self-signed certificate.
Include Inactive FindingsOnImports findings that are not active.
Include Duplicate FindingsOffImports findings that the source marked as duplicates.
Include FilesOnImports the files of findings, engagements and tests, and the proof of each risk acceptance.
Migrate Import HistoryOnCopies each test’s imports and reimports with the findings they touched. See What crosses.
Migrate Audit HistoryOnCopies the change history of each Product, engagement, test, finding, finding group and risk acceptance. This includes the older legacy audit entries. See What crosses.
ProvenanceReferencesReferences adds a Migrated from <source>/finding/<id> line to the references of each finding. None leaves it out.
Minimum SeverityInfoSkips findings below this severity. Info imports every finding.
Maximum File Size (MiB)10The largest file the connector imports, in mebibytes (1 MiB is 1,048,576 bytes). The highest value is 24. A larger file stays on the source. A stored size that is not a whole MiB shows rounded up, with the exact byte count under the field.
Frequency (Discovery and Synchronization)One-TimeOne-Time runs Discover or Sync only when you click its button. Daily, Weekly (on the weekday you pick) and Monthly (on the first day of each month) run it on a schedule instead, at the time you pick.
Delete the Connection After the MigrationOffShown when the Synchronization frequency is One-Time. When the migration ends without errors and DefectDojo Pro has imported its findings, the connection is deleted. The Products, findings and everything else the Sync brought stay.

When a One-Time Sync ends and DefectDojo Pro has imported its findings, one notification sums up the migration: the findings it brought, the users it created inactive, the users that were superusers on the source but are not superusers in DefectDojo Pro, and the settings to set up again. It also lists the warnings of the Sync, the first 20 and then a count of the rest. A warning names the objects that DefectDojo Pro rejected, the files that failed the upload checks and the imports that DefectDojo Pro discarded. It uses the Connector health warning notification, so it follows your settings for that notification, and it stays in the alerts after the connection is deleted.

When you submit, DefectDojo Pro checks the token and the version of the source. If either check fails, it tells you why.

If you delete the connection, or the Sync deletes it, and you add a new one for the same source later, the new connection continues where the old one stopped. It updates the objects the old one imported and makes no copies.

Read-only mode during a Sync

Every Sync locks the source with read-only mode. The connector turns read-only mode on when a Sync starts, and turns it off when the Sync ends, also when the Sync fails. While it is on, nobody can change the source, so the Sync reads one consistent state. Discover does not change the mode.

  • If read-only mode is already on when the Sync starts, the Sync does not start. It fails before it changes anything. Another migration can hold the lock, or an earlier Sync can have stopped. Wait for the other migration to end. Or turn off Read-only mode in System Settings of the source, then run the Sync again. Do not turn on read-only mode yourself before a Sync.
  • A Sync always turns read-only mode off when it ends. To keep the source frozen after the last Sync, turn read-only mode on after that Sync.
  • If the connector stops in the middle of a Sync, for example on a restart, the source stays read-only. The preflight report warns when the source is read-only. A superuser turns off Read-only mode in System Settings of the source, then runs the Sync again.
  • If the connector cannot read a reference list or the settings of the source, the Sync fails and the source leaves read-only mode. Run the Sync again.
  • A task that started on the source before the lock still writes until it ends.

Records

Discover creates one Record per Product on the source. The Record carries the Product’s name and Product Type. It also carries the tags, the business criticality, the SLA configuration and the owner emails. Mapping applies them to the Product.

Auto-Mapping is always on for this connector. Each Record gets a Product of the same name, under a Product Type of the same name. If DefectDojo Pro already has a Product of that name, the Record maps to it. The Managing Records page explains the order.

To leave a source Product behind, clear its Include box on the migration page. This connector has no records page: the migration page replaces it.

A Record is keyed on the install id of the source and the id of the Product. If the source moves to a new hostname, update the Location URL field. The Records stay the same.

The preflight report

Each Discover also stores a preflight report. It shows what a Sync brings before you run one. The report is on the connection’s migration page. To open the page, click Open Migration on the connector’s tile on Connect > Upstream, above Manage Configuration. After a save on Edit Configuration, the page opens too. Before the first Discover, the page says “No preflight report yet.” The report names source users. Only a user who can see the Users list sees those names. Other users see the counts.

The top of the page shows a short summary. Findings to Migrate counts the findings in the Products you include. The summary also shows the estimated duration and the number of warnings. Begin Migration is beside it. It asks you to confirm, then runs a Sync. The gear menu holds Discover and Edit Configuration. The button is off while a run is active and before a report exists. It is also off while users would migrate and DefectDojo Pro cannot send them email. Discover tests the mail server once, without sending a mail. The gate does not apply when DefectDojo Pro signs users in with SSO or LDAP, or on DefectDojo Pro cloud. Set up SMTP under Settings > System > Email, then run Discover again. The page links there for a user who can open it. The warnings also name each new user without an email address. Such a user still needs its link passed on by hand, or SSO. During a migration a progress bar counts the imported findings against the findings the connector sent. Under it the page says how many duplicates stayed on the source and how many files were not sent. It also counts the findings whose hash differs from the source at the last import. Then the summary shows Migration Complete with the imported count, or Migration Failed with the reason. If the connection deletes itself after the migration, it also shows Connection Deleted.

If an import stops before every finding arrives (for example, when a worker process is killed), the page shows Migration Stalled once no import has worked on it for 45 minutes. Click Begin Migration again to finish it: findings that already arrived are matched, not duplicated. A stalled migration sends no summary and never deletes its connection. Below the summary, the page shows the report in sections, and History lists every Discover and Sync. The table below lists the report sections.

Discover creates an empty Product in DefectDojo Pro for each source Product. In the Products section, each source Product has an Include box. Clear it before the Sync to leave that Product on the source. If Auto-Mapping created an empty Product for it, that Product is deleted. Select the box again to bring the Product back. The boxes are locked while a Sync runs.

SectionWhat it shows
SourceThe URL and the version of the source. The user of the API token, if that user is a superuser, and when the token expires.
WarningsA warning names each test type that DefectDojo Pro already has with other settings. DefectDojo Pro keeps its own settings for it. Other warnings say that the token expires soon, or how many files are over the size limit. A warning also says that the source is already in read-only mode, or that another connection already migrates this source. DefectDojo Pro can already have an SLA configuration, regulation or note type with the same name but other values. A warning also names each one. DefectDojo Pro keeps its own values for them. An SLA configuration that the first Sync takes over gets no warning. The SLA warning reads the mappings at Discover. Run Discover again after you map a Product. See What crosses. When audit retention is on in DefectDojo Pro and audit events cross, a warning follows. It says that the next flush deletes migrated audit events older than the retention period. A warning also says when the source did not send its history counts. A Sync still migrates the history.
ProductsThe totals of the source, and one row for each source Product with its Include box and its counts: engagements, tests, findings, endpoints, notes, files, risk acceptances and finding groups. The totals also show Imports, Import Actions, Audit Events and Legacy Audit Entries. They show only when the source sends that history and its field is on. Endpoints counts every endpoint of a Product, also one with no finding. When the source sends them, the totals also show Tracking Files, Benchmarks, Answered Questionnaires, Jira Projects and Jira Links. Target shows where the Product lands: New, or the existing Product in DefectDojo Pro that it merges into. The summary counts the Products that merge into existing ones. After a run, Imported shows how many findings arrived for each Product. A search box filters the rows by name, and Include All and Include None set every visible row.
To Be CreatedThe users and the reference data that DefectDojo Pro does not have yet: SLA configurations, environments, regulations, note types and test types. A source user whose username already exists in DefectDojo Pro is reused. So is a source user whose email address matches exactly one user in DefectDojo Pro, under that user’s username. Reused Users lists them, and says which were matched by email. A warning icon marks a user whose email address differs from the source. Check that it is the same person before the Sync. The Users row says how many of the new users were inactive on the source. Notification Settings names the new users whose notification settings cross. System Settings names the settings that the first Sync changes.
Things to NoteThe steps to do by hand after the migration. Migrated users arrive inactive, with no password. Select them on the Inactive Users page and click Activate and Invite. Each user then gets an email to set a password, unless users sign in with SSO or LDAP. Jira projects arrive turned off. Jira instances have no API token, and GitHub configurations have no API key. The Jira and GitHub rows give their counts, and show only when the source has Jira projects or GitHub configurations. Add the tool credentials and the notification channels again, and create new API tokens. The card shows one row for each step: Users, Jira, GitHub, Tool Credentials, Notifications and API Tokens. It adds an Import History or Audit History row when you turn that field off. That history stays on the source.
Estimated DurationIn the summary at the top: how long a Sync of the findings in the included Products takes. Before the first Sync, the estimate uses a default rate. Then it uses the rate of the last successful Sync.
LicenseA warning above the summary when the license has too few free seats for the users to create. The same when it has too few free assets for the included Products.

The counts cover every Product on the source, also the Products you ignore.

What crosses

Each Sync imports every mapped Record. The connector sends:

  • The Product and its Product Type. Description, tags, business criticality, SLA configuration, lifecycle, platform, origin, regulations, user records and metadata. If DefectDojo Pro has no lifecycle, platform or origin with the source value, the connector creates it with the source name, icon and order. On a Product that DefectDojo Pro had before the migration, the connector fills only the empty fields. A flag or an SLA configuration that still has its default value there stays as it is.
  • The owners of the Product, as members. The source Product’s product manager, technical contact and team manager become members of the Product. They get the Maintainer role. DefectDojo Pro finds each of them by email address. The three fields of the Product point at the migrated users too. A person’s value in one of those fields stays. On each Sync, an owner gets that role again, also when an administrator changed it.
  • The access of each Product and Product Type, as members. The users in the Authorized Users list of a source Product become members of the Product. The users in the Authorized Users list of its Product Type become members of the Product Type. The connector gives a membership only on a Product or a Product Type that this connection created. It gives it only to a user that the migration created, or to a DefectDojo Pro user with the same email address as the source user. For every other entry, the Sync shows a warning with the number of memberships it did not give. For a Product Type, the connector also does this only when the connection maps every Product in that Product Type. Otherwise these users get no Product Type membership, so they get no access to the other Products in it. A user that was staff on the source gets the Maintainer role. Every other user gets the Writer role. A user that is already a member keeps the membership as it is. The connector gives each membership once. If an administrator removes a membership, a later Sync does not add it again. Only an owner of the Product differs, as described above. The connector skips an entry that names no user it migrated. Global roles follow the configuration permissions, as below.
  • A Product Type with no Product. It crosses with its name, description, critical flag and key flag. A DefectDojo Pro Product Type of the same name keeps its own values. The users in the Authorized Users list of the source Product Type become members by the same rule as for a Product Type with Products. A Product Type whose Products you left out does not cross.
  • Every engagement and every test, with their fields, notes and files. The engagement fields include the first contact date, the reason, the tracker and test strategy links, the threat model, API test, pen test and check list boxes, the progress and whether the engagement is active. An engagement keeps its SCM server, build server and orchestration engine: the CI/CD infrastructure rows cross, and a row with the same name and type in DefectDojo Pro keeps its own values. A test brings its percent complete. A test with no findings still crosses. An engagement with no tests crosses too.
  • Threat model files. The threat model file of an engagement crosses. DefectDojo Pro stores it where it stores its own threat models. The source path never crosses. DefectDojo Pro takes a .jpg, .png or .pdf file, like its upload form. A file of another type stays on the source. The size limits apply as for every file. A file that fails these checks stays on the source, and the Sync counts it in the warning for files that failed the upload checks. A later Sync writes the file again only when it changed on the source. A threat model that a person uploads in DefectDojo Pro stays.
  • Every finding, with every column. With Include Duplicate Findings on, a duplicate keeps the link to its original once both have arrived. If the source later changes or removes the link, the next Sync does the same. A finding also brings its tags, vulnerability ids, CWEs and endpoints with their status and tags. Its notes, files, request and response pairs and metadata come too. It lands in the engagement and the test it came from.
  • The edit history of each note. Each earlier text of a note crosses with its time and editor.
  • Risk acceptances, with their notes and their proof file, linked to the same findings. A risk acceptance on several engagements keeps every link, also across Products. One source acceptance stays one DefectDojo Pro acceptance. DefectDojo Pro marks it global once its accepted findings span more than one engagement. If a person changes that mark later, the change stays. A proof file that fails the upload checks stays on the source, and the Sync counts it in the warning for files that failed the upload checks.
  • Finding groups, with the same member findings. An empty finding group crosses too.
  • Endpoints and locations, also those that no finding uses. Every endpoint of a Product crosses, or every location when Locations is on. Each keeps its tags and its metadata. A re-sync updates a metadata value and never deletes a name. When both sides have Locations on, each location also keeps its product status, relationship and relationship data. If the source uses endpoints and DefectDojo Pro has Locations on, a source endpoint becomes a location. Its product status is Active when an active finding of the Product uses it. Otherwise the status is Mitigated. Its metadata becomes metadata of that location for that Product. If the source uses locations and DefectDojo Pro has Locations off, a source URL location becomes an endpoint. It keeps its metadata. A source location of another type does not cross then. If DefectDojo Pro has Locations on, a source location that is not a URL becomes a URL location. This is a known limit. In both modes, an entry whose URI does not parse does not cross. For example, the pkg: URI of a dependency does not parse. The Sync adds one warning that counts every entry that did not cross. In Locations mode, the connector converts the status of an endpoint by the same rule as the Locations migration. The first status that applies wins, in this order: risk accepted, false positive, out of scope, mitigated. The connector keeps who mitigated the endpoint and the status date.
  • Questionnaires. Each questionnaire crosses with its questions and choices. A question keeps its type, order, optional flag and text. A choice question keeps its multichoice flag and its choices. If DefectDojo Pro has a questionnaire with the same name and the same questions, the connector reuses it. That questionnaire keeps its own description and active flag. Otherwise the connector creates a new one. On every Sync, the connector adds the questions and choices that the source added. It removes nothing. Open questionnaire links cross with their response count, generated time and expiration. Answered questionnaires cross on each migrated engagement. Open responses, which have no engagement, cross too. An answered questionnaire keeps its assignee, responder, completed flag, answered date and answers. A re-sync updates the answers and removes the answers that the source removed. On a Product that DefectDojo Pro had before the migration, an answered questionnaire that DefectDojo Pro already has keeps its values and its answers. A re-sync only adds an answer to a question that has none. If a user did not cross, the assignee or responder stays empty. An answer to a question that is in no questionnaire does not cross.
  • Benchmarks. The catalog crosses: types, categories and requirements. DefectDojo Pro reuses a type with the same name and version. It reuses a category with the same type and name. It reuses a requirement with the same category, objective number and objective. A reused row keeps its own values. The connector creates each missing row. For each Product, the result of each requirement keeps its pass or fail flag, enabled flag and notes. Each benchmark summary keeps its desired level and its publish flag. DefectDojo Pro computes the scores itself. A re-sync updates all of these. On a Product that DefectDojo Pro had before the migration, a result or a summary that DefectDojo Pro already has keeps its values.
  • Tracking files. Each tracking file of a Product crosses with its name, path, folder, artifact, review status, tags and created time. DefectDojo Pro matches the review status by name, and creates it when it is missing. A re-sync updates a tracking file and makes no copy. Two source tracking files with the same values stay two tracking files.
  • Import history. With Migrate Import History on, each import and reimport of a migrated test crosses once. It keeps its type, version, build id, commit hash, branch or tag, import settings, and its created and modified times. Each action of an import crosses on the finding it touched, with its time. An action whose finding did not migrate is dropped, and the warnings of the Sync count it. The import that the Sync itself writes for each test stays as it is.
  • Audit history. With Migrate Audit History on, the change history crosses for each object that the migration created. These objects are findings, tests, engagements, finding groups and risk acceptances. A Product counts only when this connection created it. Each event keeps its time and its type: insert, update, delete or initial backfill. A field that names another object holds the object it became in DefectDojo Pro. It stays empty when that object did not cross. The lifecycle, platform and origin of a Product stay empty in its migrated events. The context of an event keeps its source values and gains migrated_from, which names the source install and the connection. A source user maps to the DefectDojo Pro user that it became. The older legacy audit entries of these objects cross too. They keep their time, action, changes text and object name, and they show under Legacy Audit Logs. Ids inside the changes text stay as the source wrote them. DefectDojo Pro also writes its own events when the migration creates the objects. Their context has source set to defectdojo_migration.
  • Users. Every user of the source crosses, also the users of a Product you ignore. A finding field that names a user, for example the reporter, points at these accounts. A user that was inactive on the source arrives inactive too. Activate and Invite skips it while it is inactive. Activate it on Edit User first, then run Activate and Invite again. The preflight report counts these users. If you delete a migrated user in DefectDojo Pro, a later Sync does not create it again.
  • Source staff users. A user that was staff on the source had access to every Product there. It gets the Maintainer role on every Product that this connection created. It also gets that role on every Product Type that the connection created and maps fully. The email address rule above applies to a staff user that DefectDojo Pro already had. The preflight report and the migration summary name these users.
  • Configuration permissions, as a global role. On the source, a staff user holds every configuration permission. In DefectDojo Pro, a source staff user that is not a superuser gets the global role DefectDojo Migration: Source Staff. That role carries every configuration permission that the source gave staff. Every other user with configuration permissions on the source gets a global role with them. This includes the permissions that its groups give it. The name of that role starts with DefectDojo Migration: Configuration. Users with the same permissions share one role. A source superuser gets only its user and group permissions, not the staff role. Only a user that the connector creates gets a role, once, when the connector creates it. A permission that the source grants later does not cross. A user that already exists in DefectDojo Pro keeps its roles. The connector skips a permission that DefectDojo Pro does not know. A Sync never changes the permissions of an existing role, so an administrator’s edit stays.
  • Reference data: SLA configurations, development environments, regulations, note types and test types. If DefectDojo Pro already has one with the same name, it keeps its own values. The preflight report warns when those values differ from the source. An SLA configuration with the same name is the exception, for example Default. The first Sync writes the source values onto it when no DefectDojo Pro Product outside this connection uses it. This happens once, when the connection first links the SLA configuration. A second source never changes it.
  • Finding templates, with their tags and vulnerability ids. A template belongs to the instance, not to a Product. If DefectDojo Pro already has a template with the same title, it keeps its own. The connector adds no copy.
  • Tool types and tool configurations, without passwords and keys. A tool type brings its name and description. A tool configuration brings its name, description, URL, authentication type, username and Title for SSH/API Key. It never brings its password, SSH key, API key or extras. The connector creates it with those fields empty. Tool types match by name, and a tool configuration matches by name within its tool type. If DefectDojo Pro already has one with the same name, it keeps its own values, passwords and keys included. For a configuration that the connector created, enter the password, SSH key, API key or extras in DefectDojo Pro yourself.
  • Engagement presets. Each preset brings its title, notes, scope, test types and network locations. An engagement keeps the link to its preset, and a test keeps the link to its API scan configuration. A preset matches by Product and title. A test type matches by name. The connector creates the test types that DefectDojo Pro lacks before it applies the presets. If a name still matches no test type, the connector skips it. A network location matches by its location text. If none matches, DefectDojo Pro creates it. A preset that DefectDojo Pro already has keeps its own values.
  • Jira instances and Jira projects. A Jira instance crosses as a classic Jira instance with no API token, because the password field stays empty. DefectDojo Pro creates it once and never changes it again. The Jira projects of a migrated Product cross. So do the projects of the engagements that the migration created. They cross turned off and linked to the migrated instance. If the DefectDojo Pro Product already has its own Jira project, the source project does not cross. The Sync warnings count it.
  • Jira issue links. The links of findings, finding groups and engagements (epics) cross with the same Jira key, id and dates. A link crosses only when its Jira project crosses. The project must also belong to the link’s own Product or engagement. If the DefectDojo Pro Product has its own Jira project, the links on the source Product project do not cross. The Sync warnings count every link that does not cross. A re-sync adds new links and updates the links that the connector made. It never deletes a link. No Sync calls Jira.
  • GitHub configurations and GitHub projects. A GitHub configuration crosses with its name and no API key. DefectDojo Pro creates it once and never changes it again. The GitHub project of a migrated Product crosses too, linked to the migrated configuration. If the DefectDojo Pro Product already has a GitHub project, the source project does not cross.
  • GitHub issue links. The GitHub link of a finding crosses with the same issue id and URL. It crosses only when the DefectDojo Pro Product has no GitHub project of its own. A project that this connection migrated does not count as its own. A finding that already has its own GitHub link in DefectDojo Pro keeps it. The Sync warnings count every link that does not cross. A re-sync updates the links that the connector made. It never deletes a link.
  • SonarQube issue links. The SonarQube issue of a finding crosses with its key, status, type and transitions. If DefectDojo Pro already has an issue with that key, the finding uses it. The connector does not change that issue. Each Sync links the finding to the issue again.
  • No call to GitHub or SonarQube. No Sync calls GitHub or SonarQube. If a person deletes a migrated GitHub configuration, project or link, a later Sync does not create it again. DefectDojo Pro does not reach SonarQube for a migrated link until a person adds credentials. The person adds an API key or a password to the SonarQube tool configuration of the Product. Then a scheduled task reads the SonarQube status every 3 hours, as on the source. An edit of the finding also sends its status to SonarQube.
  • Notification settings, once. The notification settings of each user cross, with their settings for each Product. The system notification settings and the template for new users cross too. The first Sync copies them, and a later Sync changes nothing, so a change in DefectDojo Pro stays. The system settings and the template cross once for each DefectDojo Pro instance. A second source does not change them. A user that the connector creates gets the source settings. A user that already exists in DefectDojo Pro, or that signed in before the copy, keeps its own settings. It only gets the Product settings that it does not have yet. A Slack, Microsoft Teams, email or webhook channel sends nothing until you set it up in DefectDojo Pro.
  • Deduplication rules. The rules set on the source for a scan type cross. A rule is the deduplication algorithm and the fields of the hash. A scan type that nobody changed on the source keeps the rule of DefectDojo Pro. A test type that the migration creates is the exception: it takes the rule of its first source test. A copied rule applies to deduplication and to reimport in DefectDojo Pro, before the first finding imports. The rule of a created test type arrives with its tests, after their findings import. If the rule changes the hash fields, DefectDojo Pro computes the hash of those findings again. A rule that a person edited in DefectDojo Pro stays, and the preflight report names its scan type. A rule also stays when DefectDojo Pro already has findings of that scan type. The preflight report lists it as kept, and the Sync adds a warning. When two sources migrate into one DefectDojo Pro, the first one to copy a rule keeps it. The rule that lets a hash ignore a missing CWE is a deployment setting on both sides. The preflight report names each scan type where it differs, so an administrator can set it in DefectDojo Pro.
  • System settings, once. The first Sync copies the behavior settings of the source. These include deduplication and the verified status rules. They also include product grading, SLA notifications and the risk acceptance defaults. Disclaimers, password rules and feature switches such as finding groups cross too. The switches Enable Questionnaires, Enable Benchmarks and Enable Product Tracking Files cross as well. So do Enable Checklists and Enable Endpoint Metadata Import. Enable Anonymous Survey Responses never crosses. A setting crosses only when DefectDojo Pro still has its default value, so a value that an administrator set stays. A password rule crosses only when the source rule is stricter. Duplicate deletion with its maximum, false positive history and retroactive false positive history cross only into a DefectDojo Pro with no findings yet. Engagement auto-close and product tag inheritance never cross. Five Jira settings cross the same way: Jira Minimum Severity, the Jira labels, Add Vulnerability ID as Jira Label, Enforce Verified Status - Jira and Enable SLA Breach Notifications for Jira Findings. Jira on or off, the Jira webhook switch and the webhook secret never cross. A later Sync changes nothing. The settings cross once for each DefectDojo Pro instance. A second source changes none of them. The preflight report names the settings that the first Sync changes.
  • API scan configurations. Each one brings its three service keys and points at the tool configuration it used on the source. A scan configuration matches by Product, tool configuration and first service key. The credentials are in the tool configuration. If the connector created it, enter them there.
  • Technologies and languages. The technologies of each Product cross with their version, confidence, links and tags. Its languages cross with their file and line counts, and a language type that DefectDojo Pro does not have yet arrives with the source color.
  • Tool settings per Product. Each setting crosses with its name, URL and project id, and points at the tool configuration it used on the source.
  • The requester and the report type of an engagement, its check list, the announcement and the login banner. The requester crosses as a contact, matched by email address. The check list keeps the findings it names. The announcement copies once, only when DefectDojo Pro has none. The login banner copies once, only onto the default banner.

Endpoints with no finding, endpoint metadata, questionnaires, benchmarks and tracking files always cross. The connector asks for them on its own, and no field turns them off.

History adds time to each Sync. The connectors service writes the history of a Product to a temporary file before it sends it, so it needs free temporary disk space of about twice the size of that history. It also writes the whole export of a Product to a temporary file while it reads it, with the inline files. The disk must hold the export of the largest Product too. Set DD_CONNECTORS_DEFECTDOJO_MAX_SPOOL_BYTES on the connectors service to limit the size of the temporary file of one export. The value is a number of bytes. If the file of a Product passes the limit, the Sync of that Product fails, and the other Products still run. The source leaves read-only mode when the Sync ends. If you do not set it, the size has no limit.

A new user arrives inactive, with no usable password. It is never a superuser, also when it was one on the source. It does not use a license seat until it is activated. An administrator activates it with Activate and Invite. The user then sets a new password. If SSO or LDAP sign-in is on, the user signs in with SSO or LDAP instead. How Migrated Users Sign In explains the steps. If DefectDojo Pro already has a user with that username, the connector uses it and changes none of its fields. That user can still get the memberships above. The connector adds no user to a group. The default group rule of DefectDojo Pro still applies to a new user. That group can carry a global role. The memberships of a new user are in place before you activate it. The migration summary names the users that were superusers on the source, so you can decide who gets that role.

Each test keeps the test type and the scan type of the source test, exactly as written. A custom test type keeps its own name. A test with no scan type on the source has none in DefectDojo Pro either. Only a test with no test type on the source gets the test type DefectDojo - Connectors Import. Each Sync sets both again, so a test follows its source when its test type changes.

A test type that DefectDojo Pro lacks is created with the name and the settings of the source type. These settings are static tool, dynamic tool, active and dynamically generated. It also takes the deduplication rule of its first source test: the algorithm and the hash fields. When the rule of that test changes on the source, the next Sync changes the rule of the type too. Other tests of the type can use another rule on the source. Then the type keeps the rule of its first test, and the Sync adds a warning that names the type. A person’s edit of that rule, or Reset to Default, stays on later Syncs, like a copied deduplication rule. A test type that DefectDojo Pro already has keeps its own settings. Warnings names it when its static tool, dynamic tool or active setting differs from the source. Its rule stays as it is, unless the deduplication rules above change it.

Each finding keeps its found_by list of test types. When both instances use the same rule, the deduplication hash of each finding stays equal to the source hash. The hash can differ for a test type that keeps its own rule in DefectDojo Pro. It can also differ for a test with another source rule than the first test of its type. The migration page counts the findings whose hash differs from the source at the last import.

All Audit Logs shows the last 31 days by default. A migrated event older than that shows on the history page of its object. It also shows when you change the date filter. See Audit Logs Timeline.

Audit retention can delete migrated events. The flush runs when DD_AUDITLOG_FLUSH_RETENTION_PERIOD is 0 or above. It deletes audit events older than that many months, migrated events included. A period of 0 deletes every event. The flush keeps legacy audit entries. The preflight report warns about this when audit events cross. To keep older migrated events, raise the retention period before the Sync. You can also set DD_AUDITLOG_FLUSH_RETENTION_PERIOD to -1 to turn the flush off. See Configuration and retention.

What does not cross

  • Secrets and instance settings. Jira API tokens, GitHub API keys, other API tokens and passwords. The Slack, Microsoft Teams, email and webhook setup. The system settings that hold a secret or describe the source instance also stay. These are the Jira on and off switch, and the Jira webhook switch and secret. They also include the sender address, the URL prefix and the team name. Read-only mode, API error details and the GitHub switch stay too. So do the calendar, CVSS display and table search switches, which DefectDojo Pro manages another way. A tool configuration also keeps its password, SSH key, API key and extras on the source. Configure them in DefectDojo Pro yourself.
  • History of other data. Users, finding templates, Product Types, endpoints, locations, tags and other reference data keep no source history. A Product that you mapped to an existing Product keeps only the history of DefectDojo Pro. The history of an object that the source deleted does not cross, because the object does not cross.
  • History you turn off. With Migrate Import History or Migrate Audit History off, that history stays on the source. Findings then arrive with their current status.
  • The creator of a finding group.
  • Files over Maximum File Size (MiB). They stay on the source. The preflight report counts them. The export also keeps a file on the source when the files of one finding, engagement or test pass 48 MiB together. The connector also skips a file that does not fit its transfer budget for the Product. The summary notification after the migration counts every file that stayed. This covers engagement files, test files and risk acceptance proofs. The migration page and the migration summary say how many files it skipped.
  • Small fields. The creator of a finding group, the creation dates of engagements and tests, the done_testing box of an engagement, and the join and last sign-in dates of a user.
  • Duplicates, unless you turn on Include Duplicate Findings.
  • Removed GitHub and SonarQube links. A link that the source removes stays in DefectDojo Pro.
  • The Pro data of a DefectDojo Pro source. Only the open source data crosses. The priority and risk scores, asset types, custom fields, groups and roles stay on the source. So does the history of that Pro data.

The export API page lists everything the source leaves out of its export.

Turn on Jira after the migration

The migrated Jira projects are off, and the migrated instances have no API token. Nothing reaches Jira until you act. The migration page names this step under Things to Note. After the last Sync, pick one path:

  • Classic Jira. On each migrated Jira instance, add the API token. Turn on Jira in System Settings. Then turn on each Jira project.

  • Downstream Connectors. The conversion sets up automatic pushes only for a Jira project that is on and pushes all issues. So, after the last Sync:

    1. Keep Jira turned off in System Settings. With Jira off, a project that you turn on sends nothing to Jira.
    2. Through the API, turn on each migrated Jira project that pushed all issues on the source. The forms that turn a project on show only while Jira is on. Send PATCH /api/v2/jira_projects/<id>/ with the body {"enabled": true}. To find the ids, send GET /api/v2/jira_projects/?enabled=false&push_all_issues=true&jira_instance=<id>, with the id of the migrated Jira instance. Without it, the list can include a project that was already off in DefectDojo Pro.
    3. Run the classic Jira conversion on the Downstream Connectors page, as Migrating to the Jira Downstream Connector describes. The conversion turns the classic projects off again.
    4. Add the API token on the new connection.

    The conversion works on every classic Jira setup in DefectDojo Pro, not only the migrated ones. It skips engagement epics.

Turn on GitHub after the migration

The migrated GitHub configurations have no API key, and GitHub is off. Nothing reaches GitHub until you act. The migration page names this step under Things to Note. After the last Sync:

  1. Add the API key on each migrated GitHub configuration.
  2. Turn on GitHub in System Settings.

Keep the migrated GitHub project of each Product. A migrated link names an issue in that project.

Re-runs

Run Sync as often as you need until you cut over. Each run updates what an earlier run created. It makes no copies:

  • A finding keeps its identity through its source id and its hash. A run with no change on the source changes nothing in DefectDojo Pro.
  • A finding that changed on the source updates in DefectDojo Pro.
  • A finding that the source deleted from a test closes in DefectDojo Pro. It is marked mitigated, not deleted. The test must still exist on the source.
  • A finding that the fields now skip closes too. The source can mark a finding as a duplicate while Include Duplicate Findings is off. The finding can become inactive while Include Inactive Findings is off. It can fall below Minimum Severity. In each case, the next run does not send the finding, and DefectDojo Pro marks it mitigated.
  • A note or a file keeps its identity too. A run updates it instead of adding a copy.
  • A run adds only the history that the source made since the last run: imports, import actions, audit events and legacy audit entries. It never adds one a second time.
  • A test that the source deleted closes its findings in DefectDojo Pro, as above. The test itself stays.
  • A run removes a migrated benchmark note that the source removed. It also removes an answer that the source removed, except on a Product that DefectDojo Pro had before the migration. It also updates the response count and the expiration of an open questionnaire link.
  • The links of a risk acceptance follow the source within each Product. A run adds and removes the links in a Product to match the source. The links in other Products stay.
  • A run adds new Jira links and updates the links that it made. It never deletes a link. A Jira instance and a Jira project change only once, on the first Sync that creates them.
  • A run adds the tags of an endpoint or a location, and never removes one. The tags of a tracking file follow the source exactly.
  • A run adds the finding tags that the source added since the last run. It removes the finding tags that the source removed. A tag that a person added in DefectDojo Pro stays. So does a tag that the finding inherits from its Product. A finding can have no record of its source tags yet. Then the run adds the missing source tags and removes none.
  • If the source moves a Product to another Product Type, the next run moves the DefectDojo Pro Product too. A Product Type that the source renames counts as a move to the new name. The Product goes to the Product Type with the new name, which the run creates when it is missing. The run writes the description and the flags of the source type onto that Product Type. A value that a person set there stays. The old Product Type stays. A Product that a person moved in DefectDojo Pro stays where the person put it.
  • If the source moves an engagement to another Product, or a test to another engagement, the next run creates it in the new place. It closes the findings of the old copy, as above. The old engagement or test stays.
  • A re-run removes no other object that the source deleted. An engagement, test, file, finding group or risk acceptance that the source deleted stays in DefectDojo Pro. A note stays too, except a benchmark note as above. A deleted risk acceptance stays linked to its findings, and the next run marks those findings as not accepted. A member that an administrator removed from a migrated Product stays removed, because the connector gives each membership once. Only an owner of the Product comes back.

A Product that was deleted on the source after Discover is skipped with a message in the operation’s history. Run Discover again to drop its Record. If a Sync stops in the middle of a Product, the next Sync imports that Product again. The source ids and the hash keep it free of duplicates.

A Sync overwrites changes made in DefectDojo Pro to migrated engagements, tests, findings, notes, test tags and risk acceptances. It also creates again a migrated engagement, test, finding, note, finding group or risk acceptance that a person deleted in DefectDojo Pro. On a Product that the migration created, a Sync also replaces the questionnaire answers and the benchmark results made in DefectDojo Pro. A Product that DefectDojo Pro had before keeps them. Changes to Product details, settings, users, and Jira and GitHub configurations stay. When a team starts to work on a Product in DefectDojo Pro, clear its Include box. Do this before the next Sync. A Product name or description that a person changed in DefectDojo Pro stays as changed.

One connection serves one source. If a second connection points at the same source, its preflight report warns, and its Sync writes nothing. Delete the second connection. Or delete the first one before you set up the second. The second then takes over what the first migrated.

Check the finding count after a Sync

A Sync operation shows Success when the connector has sent the data. DefectDojo Pro then imports the findings in the background. For a large Product, the import goes on for some minutes after Success. The migration page shows Migration Complete when the import ends.

Before you trust a Sync, open each Product and check its finding count. Compare it with the findings count of that Product in the preflight report. The count in DefectDojo Pro is lower by the findings that your fields skip. Duplicates, findings below Minimum Severity and, with Include Inactive Findings off, inactive findings are not imported.