Skip to content

chore: remove API Scan Configurations and the six API pull parsers - #17149

Merged
blakeaowens merged 4 commits into
devfrom
chore/remove-api-scan-configurations
Dec 4, 2026
Merged

blakeaowens merged 4 commits into
devfrom
chore/remove-api-scan-configurations

Conversation

@blakeaowens

Copy link
Copy Markdown
Contributor

Description

Removes API Scan Configurations and the six API-based (pull) parsers, as announced in the 3.2 upgrade notes and declared for removal in 3.6.0 (api_scan_configuration in dojo/deprecations.py).

Removed:

  • Product_API_Scan_Configuration, its Classic UI pages (add, view, edit, delete) and their forms, templates and menu entries.
  • /api/v2/product_api_scan_configurations/ and /api/v2/asset_api_scan_configurations/.
  • Test.api_scan_configuration (UI, /api/v2/tests/, filters, product export, the api_v3 helper).
  • The api_scan_configuration parameter of /api/v2/import-scan/ and /api/v2/reimport-scan/. A request that still sends it is accepted and the key is ignored (DRF's default for an unknown field).
  • The parsers BlackDuck API, Bugcrowd API Import, Cobalt.io API Import, Edgescan Scan, SonarQube API Import and Vulners, their factory hooks (get_api_scan_configuration_hints, requires_tool_type), dedupe and hashcode settings, sample scans and tests.
  • What only worked through the dropped link: the SonarQube status sync (dojo/tools/tool_issue_updater.py and its beat entry; the issue_updater_option arguments stay as no-ops), the Tool Configuration connection test for these tools (dojo/tool_config/factory.py), and the DD_SONARQUBE_API_PARSER_HOTSPOTS setting with its System Settings field.
  • The four Product_API_Scan_Configuration_* permissions and their role grants, and the api_scan_configuration declaration.

Tool Types and Tool Configurations stay; they are the next removal. The Coverity API file parser and the SonarQube file parser are unchanged.

Migration 0317_remove_api_scan_configuration

Removes the test history triggers, drops api_scan_configuration from dojo_test and dojo_testevent, re-adds the triggers without the column, deletes dojo_product_api_scan_configuration, and drops sonarqube_api_parser_hotspots from System Settings. It does not null the column row by row first: dropping the column removes the links anyway, and an UPDATE would fire the test history trigger once per linked test. Measured on the released schema in Postgres 17, with 20,001 tests of which 10,001 were linked, in one transaction as Django runs it:

Time History rows written Tests after
UPDATE to NULL, then the drops 2.50 s 10,001 20,001
Triggers removed, then UPDATE, then the drops 0.46 s 0 20,001
The drops only (this PR) 8 ms 0 20,001

The migration depends only on 0316 and imports no application code.

Test results

  • unittests/test_api_scan_configuration_removed.py (new) asserts the six scan types are gone from the parser factory, the model is gone, both endpoints no longer resolve, and an import that still sends api_scan_configuration with a file scan succeeds. It fails on dev.
  • Ruff (ruff.toml) passes on the whole tree. The Django suite runs in CI.

Documentation

docs/content/releases/os_upgrading/3.6.md describes the removal and what to do before upgrading: on DefectDojo Pro, run migrate_api_parsers_to_connectors on 3.5.x first for Bugcrowd API Import, and set up a Connector by hand for the other five. The parser pages for the six are removed and their URLs alias to the upgrade notes.

The removal announced in 3.2 and declared for 3.6.0: Product_API_Scan_Configuration, its Classic views,
both /api/v2/*_api_scan_configurations/ endpoints, Test.api_scan_configuration, the importer option, the
BlackDuck API, Bugcrowd API Import, Cobalt.io API Import, Edgescan Scan, SonarQube API Import and Vulners
parsers, the SonarQube status sync and the SonarQube API hotspots setting that only they used, and the
api_scan_configuration deprecation declaration. Migration 0317 drops the column and the table without a
row-by-row data step, so the test history trigger does not write an event per linked test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@blakeaowens
blakeaowens requested a review from Maffooch as a code owner December 3, 2026 21:53
@blakeaowens blakeaowens added this to the 3.6.0 milestone Dec 3, 2026
@github-actions github-actions Bot added docker New Migration Adding a new migration file. Take care when merging. settings_changes Needs changes to settings.py based on changes in settings.dist.py included in this PR apiv2 docs unittests integration_tests ui parser labels Dec 3, 2026
@dryrunsecurity

dryrunsecurity Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

DryRun Security

This pull request contains multiple critical findings where the user 'claude' modified numerous sensitive codepaths, including models, views, and templates, without being on the allowed authors list. These unauthorized changes across various core components of the dojo application violate configured security policies.

🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/product/admin.py (drs_0c19dc29)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/product/admin.py' matches configured sensitive codepath pattern 'dojo/product/*.py' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/api_v2/views.py (drs_10d9855f)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/api_v2/views.py' matches configured sensitive codepath pattern 'dojo/api_v2/*.py' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/models.py (drs_1b525443)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/models.py' matches configured sensitive codepath pattern 'dojo/models.py' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/importers/base_importer.py (drs_26063b63)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/importers/base_importer.py' matches configured sensitive codepath pattern 'dojo/importers/*.py' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/templates/dojo/product.html (drs_26eda792)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/templates/dojo/product.html' matches configured sensitive codepath pattern 'dojo/templates/**/*.html' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/templates/dojo/add_product_api_scan_configuration.html (drs_275a4ea2)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/templates/dojo/add_product_api_scan_configuration.html' matches configured sensitive codepath pattern 'dojo/templates/**/*.html' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/finding/helper.py (drs_28f7ce6d)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/finding/helper.py' matches configured sensitive codepath pattern 'dojo/finding/*.py' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/authorization/roles_permissions.py (drs_2a78936a)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/authorization/roles_permissions.py' matches configured sensitive codepath pattern 'dojo/authorization/*.py' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/test/models.py (drs_463158fe)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/test/models.py' matches configured sensitive codepath pattern 'dojo/test/*.py' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/api_v2/serializers.py (drs_64be11e9)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/api_v2/serializers.py' matches configured sensitive codepath pattern 'dojo/api_v2/*.py' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/forms.py (drs_73b49535)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/forms.py' matches configured sensitive codepath pattern 'dojo/forms.py' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/authorization/authorization.py (drs_75985118)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/authorization/authorization.py' matches configured sensitive codepath pattern 'dojo/authorization/*.py' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/product/models.py (drs_77924468)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/product/models.py' matches configured sensitive codepath pattern 'dojo/product/*.py' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/templates/base.html (drs_856044a7)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/templates/base.html' matches configured sensitive codepath pattern 'dojo/templates/*.html' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/product/queries.py (drs_a15acc19)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/product/queries.py' matches configured sensitive codepath pattern 'dojo/product/*.py' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/authorization/query_registrations.py (drs_a1a41a67)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/authorization/query_registrations.py' matches configured sensitive codepath pattern 'dojo/authorization/*.py' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/db_migrations/0317_remove_api_scan_configuration.py (drs_ad259814)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/db_migrations/0317_remove_api_scan_configuration.py' matches configured sensitive codepath pattern 'dojo/db_migrations/*.py' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/templates/dojo/edit_product_api_scan_configuration.html (drs_b795b73d)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/templates/dojo/edit_product_api_scan_configuration.html' matches configured sensitive codepath pattern 'dojo/templates/**/*.html' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/authorization/api_permissions.py (drs_c295d3c0)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/authorization/api_permissions.py' matches configured sensitive codepath pattern 'dojo/authorization/*.py' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/api_v2/prefetch/registrations.py (drs_c567c26e)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/api_v2/prefetch/registrations.py' matches configured sensitive codepath pattern 'dojo/api_v2/**/*.py' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/templates/dojo/view_product_details.html (drs_cdfe5a6e)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/templates/dojo/view_product_details.html' matches configured sensitive codepath pattern 'dojo/templates/**/*.html' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/authorization/url_permissions.py (drs_cef8d13e)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/authorization/url_permissions.py' matches configured sensitive codepath pattern 'dojo/authorization/*.py' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/filters.py (drs_cf1528fb)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/filters.py' matches configured sensitive codepath pattern 'dojo/filters.py' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/importers/options.py (drs_d1360580)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/importers/options.py' matches configured sensitive codepath pattern 'dojo/importers/*.py' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/importers/default_importer.py (drs_d28f04f8)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/importers/default_importer.py' matches configured sensitive codepath pattern 'dojo/importers/*.py' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/tool_config/factory.py (drs_df4a7d60)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/tool_config/factory.py' matches configured sensitive codepath pattern 'dojo/tool_config/*.py' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/templates/dojo/view_product_api_scan_configurations.html (drs_f389c13e)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/templates/dojo/view_product_api_scan_configurations.html' matches configured sensitive codepath pattern 'dojo/templates/**/*.html' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/templates/dojo/view_test.html (drs_f5d45c01)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/templates/dojo/view_test.html' matches configured sensitive codepath pattern 'dojo/templates/**/*.html' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/templates/dojo/delete_product_api_scan_configuration.html (drs_faeba6b1)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/templates/dojo/delete_product_api_scan_configuration.html' matches configured sensitive codepath pattern 'dojo/templates/**/*.html' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.
🔴 Configured Sensitive Codepath Modified by Non-Allowed Author in dojo/importers/default_reimporter.py (drs_fea762c9)
Vulnerability Configured Sensitive Codepath Modified by Non-Allowed Author
Description File 'dojo/importers/default_reimporter.py' matches configured sensitive codepath pattern 'dojo/importers/*.py' and was modified by 'claude' (commit 8ca0750) who is not in the allowed authors list.

We've notified @mtesauro.


Comment to provide feedback on these findings.

Report false positive: @dryrunsecurity fp [FINDING ID] [FEEDBACK]
Report low-impact: @dryrunsecurity nit [FINDING ID] [FEEDBACK]

Example: @dryrunsecurity fp drs_90eda195 This code is not user-facing

All finding details can be found in the DryRun Security Dashboard.

The re-created insert, update and delete triggers on dojo_test referenced
NEW.NEW."archive_batch" / OLD.OLD."archive_batch", so every insert, update
or delete of a Test raised "missing FROM-clause entry for table new".
Use the SQL and hashes pghistory generates for the current model.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…perf test

Removing the tool issue updater drops its finding.test.test_type read from
every finding save: two queries per created finding (56 to 54, 3224 to 3024).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@blakeaowens
blakeaowens added this pull request to the merge queue Dec 4, 2026
Merged via the queue into dev with commit 6156006 Dec 4, 2026
44 checks passed
@blakeaowens
blakeaowens deleted the chore/remove-api-scan-configurations branch December 4, 2026 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apiv2 docker docs integration_tests New Migration Adding a new migration file. Take care when merging. parser settings_changes Needs changes to settings.py based on changes in settings.dist.py included in this PR ui unittests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants