Upgrading to v5.2.0¶
-
Service accounts reserve the
svc:username prefix. This release adds service accounts. Existing users whose username starts withsvc:, in any letter case, collide with that reservation.If such a user exists, the database migration fails and its error message lists the affected users. To find them before you upgrade, run this query against the database:
SELECT "USERNAME", "TYPE" FROM "USER" WHERE "USERNAME" ILIKE 'svc:%';Rename or delete affected managed users. Rename affected LDAP and OIDC users in your identity provider, then delete them from Dependency-Track. After the upgrade, LDAP and OIDC logins with a
svc:username fail, and the REST API rejects new users with that prefix.Team API keys keep working without changes.
-
Cargo package metadata comes from the sparse index. Earlier versions queried the crates.io API, which enforces rate limits. The Cargo resolver now reads the sparse registry index instead, which a CDN serves without rate limits. A database migration changes the URL of the default
crates.iorepository fromhttps://crates.iotohttps://index.crates.io, unless you changed that URL. Deployments with restricted egress must allowindex.crates.io.Custom Cargo repositories keep their URL. Point each of them to the sparse index of its registry, for example the URL after the
sparse+prefix in your Cargoconfig.toml. See Cargo's Using an Alternate Registry guide for details.The resolver now sends a Cargo repository token in the
Authorizationheader as-is, like Cargo does. Earlier versions added aBearerprefix. If your registry expects the prefix, add it to the token you configured. Repositories with a username still use basic authentication. -
The API server restricts outbound connections. See
dt.outbound.allowed-destinations. If an integration connects tolocalhost, for example a Trivy sidecar, addlocalhost. Prefer exact hostnames overloopback, which allows every loopback address. The restrictions apply to notifications, data sources, package repositories, vulnerability analyzers, and integrations like DefectDojo. -
The
allow-local-connectionsproperties no longer exist. This affects the email and Kafka notification publishers, the OSS Index vulnerability analyzer, and the NVD and JVN vulnerability data sources. The API server refuses to start if your configuration still sets any of them to prevent silent misconfiguration.dt.outbound.allowed-destinationsreplaces them. -
The API enforces a size limit for BOM and VEX uploads. See
dt.bom-upload.max-size-bytesanddt.vex-upload.max-size-bytes. Both properties default to 100 MiB. Increase them if your instances process documents larger than that. -
The API server container image no longer includes
curl. The image's health check now useswget. If you override the health check or runcurlin anexecprobe, switch towget:wget -q -Y off -T 3 -O /dev/null http://127.0.0.1:9000/healthIn Kubernetes, an
httpGetprobe against port9000needs no tool in the image at all. -
The API server container image no longer includes the Google Cloud SQL socket factory. If your database URL sets
socketFactory=com.google.cloud.sql.postgres.SocketFactory, the API server fails to connect after the upgrade. Add the socket factory as described in Google Cloud SQL.