* Ensures that all properties follow a consistent naming and format pattern.
* Removes shim for legacy `alpine.*` or unprefixed properties.
* Renames `VulnerabilityAnalysisTask` to `PortfolioAnalysisTask` as it better reflects what it does (i.e. schedule analyses for all projects in the portfolio).
* Adds validation during startup to catch misconfigurations early.
Not great to do this in the RC phase, but better now than post GA.
Signed-off-by: nscuro <nscuro@protonmail.com>
Verified manually that the schema produced by the Flyway baseline match the schema produced by Liquibase. No point in adding an automated test for this.
Also verified that an instance with existing Liquibase schema migrates cleanly to Flyway, including removal of Liquibase's `databasechangelog` and `databasechangeloglock` tables.
To compensate for the removal of the Liquibase Maven plugin, a new `migrate` command has been added to the apiserver CLI. As a side effect, this now allows users without a full development setup to generate SQL migration files.
Signed-off-by: nscuro <nscuro@protonmail.com>
The action appears to be buggy and barely maintained. The script should be sufficient while not requiring any special GitHub permissions.
Signed-off-by: nscuro <nscuro@protonmail.com>
Liquibase 4.30.0 introduced analytics and enabled it per default for the OSS version. Since DT is deployed in regulated environments, we explicitly disable analytics.
Signed-off-by: nscuro <nscuro@protonmail.com>
The script spawns a fresh PostgreSQL container, generates the changelog against it, and removes it again.
Signed-off-by: nscuro <nscuro@protonmail.com>