# Migrating from Dependency-Track

Qualor takes the SBOMs your pipelines send to Dependency-Track. It checks their packages for new
vulnerabilities and shows where a package is used. You change the upload step: Qualor has no
Dependency-Track API, and nothing is imported.

**Qualor adds SPDX.** It reads SPDX 2.2 and 2.3 JSON besides CycloneDX. Dependency-Track reads
CycloneDX only.

## The mapping

| Dependency-Track | Qualor |
|---|---|
| Project | a [project](https://qualor.dev/docs/users-projects-tokens.md), created first |
| Project version | a [version](https://qualor.dev/docs/releases.md) of that project, set by `--version` |
| One project per image | the same: a project of its own for an image ([Precedence](https://qualor.dev/docs/sbom-upload.md#precedence)) |
| BOM upload (`PUT /api/v1/bom`) | `PUT /api/v0/projects/sbom`, or `qualor upload-sbom` ([SBOM upload](https://qualor.dev/docs/sbom-upload.md)) |
| API key | a project analysis token, or a personal token with the `analysis:write` scope |
| Component search | the **Packages** page, and `qualor_package_usages` in the [MCP server](https://qualor.dev/docs/mcp.md) ([Where used](https://qualor.dev/docs/dependency-vulnerabilities.md#where-used)) |
| Components tab | the **Dependencies** tab |
| Vulnerability audit: analysis state, justification, comment | a [status with a VEX reason](https://qualor.dev/docs/dependency-vulnerabilities.md#statuses-and-reasons) and a comment |
| Suppressing a finding | the status **Not affected (false positive)** or **Affected, won't fix** |
| VEX and SBOM export | [SBOM and VEX export](https://qualor.dev/docs/dependency-vulnerabilities.md#export-sbom-and-vex-business-and-enterprise) (Business and Enterprise) |
| Vulnerability notifications | [Alerts](https://qualor.dev/docs/dependency-vulnerabilities.md#alerts-business-and-enterprise) (Business and Enterprise) |
| The Jira notification publisher | [Jira](https://qualor.dev/docs/jira.md): a Jira issue for each new vulnerability at or above a severity, with its status. Every edition |

Differences that matter:

- A Qualor project holds many versions. Dependency-Track keeps one project per name and version.
- Qualor can open a merge request that bumps a vulnerable dependency, which Dependency-Track does not do ([Fix merge requests](https://qualor.dev/docs/fix-merge-requests.md)).
- A decision covers a package and a vulnerability id for the whole project, not for one version
  ([One decision, a wide scope](https://qualor.dev/docs/dependency-vulnerabilities.md#one-decision-a-wide-scope)).
- The server checks packages against its own copy of the Trivy database, and re-checks tracked
  versions when it changes ([The vulnerability database](https://qualor.dev/docs/vulnerability-database.md)).
- Which versions are tracked follows a rule per project
  ([Which versions are tracked](https://qualor.dev/docs/releases.md#which-versions-are-tracked)).

## Change a pipeline

1. Create the project in Qualor, and a [project token](https://qualor.dev/docs/users-projects-tokens.md).
2. Replace the upload step.

Before, with Dependency-Track:

```sh
curl -fsS -X PUT "$DT_URL/api/v1/bom" -H "X-Api-Key: $DT_API_KEY" \
  -H 'Content-Type: application/json' \
  -d "{\"projectName\":\"shop\",\"projectVersion\":\"$TAG\",\"autoCreate\":true,\"bom\":\"$(base64 -w0 sbom.json)\"}"
```

After, with Qualor:

```sh
docker run --rm -v "$PWD":/work -w /work \
  -e QUALOR_URL -e QUALOR_TOKEN -e QUALOR_PROJECT_KEY=acme/shop \
  qualor/scanner:0.17 upload-sbom sbom.json --version "$TAG"
```

[An image SBOM in CI](https://qualor.dev/docs/sbom-upload.md#an-image-sbom-in-ci) shows the whole step, with Trivy or
Syft.

## What Qualor does not do

| Dependency-Track feature | In Qualor |
|---|---|
| The upload API (`/api/v1/bom`, `X-Api-Key`, the token poll) and tools built on it, such as `gh-upload-sbom` | not offered. Use `qualor upload-sbom` or the Qualor API |
| A multipart upload (`POST /api/v1/bom` with form fields) | not offered. The Qualor API takes the file as the request body ([With the API](https://qualor.dev/docs/sbom-upload.md#with-the-api)) |
| `autoCreate`: a project made by the first upload | not offered. The project must exist, or the upload answers `PROJECT_NOT_FOUND` |
| Parent projects, project tags, `isLatest` and `active` | not offered. A rule per project decides which versions are tracked (see above) |
| CycloneDX 1.0 and 1.1 | refused. Export CycloneDX 1.2 or later |
| CycloneDX XML | refused. Export CycloneDX JSON |
| Components without a purl | skipped and counted |
| Component search by CPE or hash, or by a version range such as `< 2.17` | not offered. Search by package name or purl, and an exact version |
| Vulnerability sources and analyzers besides one Trivy database: the NVD, GitHub Advisories, OSV, OSS Index, Snyk | not offered |
| Vulnerabilities and VEX sections of the uploaded BOM | ignored. Qualor finds the vulnerabilities itself |
| An SBOM with several distributions | refused. Split it, one file per image |

Other limits: [SBOM upload](https://qualor.dev/docs/sbom-upload.md#limits).