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
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