Skip to content

Dependency-Track: move the module to v5 #8148

Description

@stephdl

The module still runs Dependency-Track v4. Upstream v4 is end of life. No more fixes, no more analyzer updates.

I want the module on v5, released as version 2.0.0.

The obstacle is the database. v5 changed the schema, and upstream ships no online migration. So the upgrade cannot be an ordinary update-module.

Proposed solution

Ship v5 as module version 2.0.0.

Set org.nethserver.min-from=2.0.0, so Software Center never offers the update to a 1.x instance.

Add a migration script an admin runs by hand on an existing instance. It drives the upstream migrator with the application down, then hands over to update-module.

v5 cannot decrypt what v4 encrypted, so the settings are not carried over. The data is: projects, components, vulnerabilities, findings, audit history, policies, users, teams, permissions and API keys.

Document the procedure and what has to be reconfigured after it.

Alternative solutions

Migrate inside update-module. Rejected. The migration needs the services down, can run long, and can leave a half-replaced database. That does not belong in an unattended update.

Keep v4. Rejected. No upstream support.

Additional context

Implementation, and the details of the script: NethServer/ns8-dependencytrack#133

See also

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

testingPackages are available from testing repositories

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions