dependency-track
Dependency-Track is an intelligent Component Analysis platform that allows organizations to identify and reduce risk in the software supply chain.
About this chart
dependency-track
Dependency-Track is an intelligent Component Analysis platform that allows organizations to identify and reduce risk in the software supply chain.
Homepage: https://github.com/DependencyTrack/dependency-track
Maintainers
| Name | Url | |
|---|---|---|
| nscuro | [email protected] | https://github.com/nscuro |
Source Code
Requirements
Kubernetes: >=1.27.0-0
[!IMPORTANT] Chart v2.x is only compatible with Dependency-Track 5.0.0 and later. If you are running Dependency-Track 4.x, use chart v1.x instead.
[!IMPORTANT] Read the upgrade notes before you upgrade
appVersion. Dependency-Track releases can carry schema migrations and breaking changes that the chart does not shield you from.
- The upgrade guide covers the application-level procedure.
- The release notes of every version you skip past, not just the target one.
- UPGRADING.md covers the chart-level changes.
Quickstart
Evaluate the chart on any conformant Kubernetes cluster, no Postgres or KEK Secret needed:
helm install dt oci://ghcr.io/dependencytrack/helm-charts/dependency-track \
--create-namespace -n dependency-track \
-f https://raw.githubusercontent.com/DependencyTrack/helm-charts/main/charts/dependency-track/values-quickstart.yaml
kubectl -n dependency-track port-forward svc/dt-dependency-track-api-server 8080:8080 &
kubectl -n dependency-track port-forward svc/dt-dependency-track-frontend 8081:8080 &
Open http://localhost:8081 and login with the default credentials (admin / admin).
[!WARNING] The quickstart values bundle an inline Postgres and a fixture KEK Secret. They are NOT suitable for production. The Postgres has no persistence and the KEK is a public, deterministic fixture.
For real deployments, provision Postgres and the KEK Secret separately. Reference them via
database.existingSecret.nameandsecretManagement.database.kek.existingSecret.name.
Upgrading from chart 1.x
Chart 2.0 is a rewrite for Dependency-Track 5 and is not API-compatible with chart 1.x. See UPGRADING.md for the migration procedure.
OpenShift compatibility
The chart targets parity with OpenShift's restricted-v2 SCC and the Kubernetes Pod Security Admission
restricted profile. Every workload pod ships with:
allowPrivilegeEscalation: falsecapabilities.drop: [ALL]runAsNonRoot: trueseccompProfile.type: RuntimeDefaultreadOnlyRootFilesystem: true(except the frontend)- no
hostNetwork,hostPID,hostIPC,hostPath, orprivileged: true - no ports below 1024, no
NodePortdefault
OpenShift assigns UIDs and supplemental groups per namespace via the active SCC.
The chart's fsGroup: 1000 defaults fall outside most namespaces' allowed ranges.
Override on install:
apiServer:
podSecurityContext: ~
frontend:
podSecurityContext: ~
If the namespace's default SCC does not already grant restricted-v2,
bind it to the chart-created ServiceAccount:
oc adm policy add-scc-to-user restricted-v2 \
-z <release>-dependency-track \
-n <namespace>
Initializer
On startup, api-server pods run Dependency-Track's initialization tasks
(database schema migrations, default-object seeding, and partition maintenance),
serialized across pods by a Postgres advisory lock.
This needs no configuration and works for both Helm and GitOps installs.
Every pod runs these tasks on startup. They are idempotent, but each run still costs a little to check whether migrations are pending, whether default data already exists, and so on. With many replicas or autoscaling, that overhead repeats on every pod and every scale-up. The initializer Job confines it to a single run and lets all api-server replicas skip initialization entirely:
apiServer:
initializer:
enabled: true
When enabled, the Job becomes the sole initializer. It runs as a pre-install/pre-upgrade Helm hook
and completes before the api-server pods start, which then skip in-pod initialization.
Helm, Flux (its helm-controller runs hooks), and Argo CD (which runs pre-install hooks as a PreSync step)
all honor this with no extra annotations.
Do note however:
- Credentials must come from existing Secrets. The hook runs before the chart's own Secrets are created,
so set
database.existingSecret.name. Provision it separately. Chart rendering fails if the initializer is enabled withoutdatabase.existingSecret.name. - The Job runs on every sync. Argo CD re-runs
PreSyncon each sync. This is safe because the tasks no-op when the database is already current. If your team disables Helm hooks in Argo CD entirely, leave the initializer off and keep the default startup initialization.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| apiServer.additionalVolumeMounts | list | [] | |
| apiServer.additionalVolumes | list | [] | |
| apiServer.annotations | object | {} | Annotations on the Deployment(s). |
| apiServer.args | list | [] | |
| apiServer.command | list | [] | |
| apiServer.deployment.strategy | object | {"rollingUpdate":{"maxSurge":0,"maxUnavailable":1},"type":"RollingUpdate"} | maxSurge: 0 avoids cluster overcommit on multi-CPU pods. |
| apiServer.extraContainers | list | [] | |
| apiServer.extraEnv | list | [] | Extra env applied to web, worker and initializer. Don't set chart-managed variables (DT_DATASOURCE_, DT_CONFIG_PROFILE, DT_METRICS_, DT_MANAGEMENT_, DT_FILE_STORAGE_, DT_SECRET_MANAGEMENT_, DT_INIT_TASKS_). |
| apiServer.extraEnvFrom | list | [] | |
| apiServer.image.pullPolicy | string | "IfNotPresent" | |
| apiServer.image.registry | string | "" | Override image.registry for the API server. |
| apiServer.image.repository | string | "dependencytrack/apiserver" | Repository of the apiserver image. |
| apiServer.image.tag | string | "" | Tag name or sha256:<digest>. Defaults to the chart's appVersion. |
| apiServer.initContainers | list | [] | |
| apiServer.initializer | object | {"annotations":{},"backoffLimit":3,"enabled":false,"initContainers":[],"nodeSelector":{},"podAnnotations":{},"resources":{"limits":{"memory":"256Mi"},"requests":{"cpu":"150m","memory":"256Mi"}},"tolerations":[]} | Initializer Job settings. Runs DT's init tasks (migrations, default-object seeding, partition maintenance) as a pre-install/pre-upgrade Helm hook instead of in every starting api-server pod. Requires database.existingSecret. See the Initializer section in the README. |
| apiServer.initializer.annotations | object | {} | Annotations on the initializer Job itself. Merged with (and may override) the chart-managed helm.sh/* hook annotations. |
| apiServer.initializer.nodeSelector | object | {} | Node selector for the initializer Job's pod. Replaces the root-level nodeSelector when set to a non-empty value. |
| apiServer.initializer.tolerations | list | [] | Tolerations for the initializer Job's pod. Replaces the root-level tolerations when set to a non-empty value. |
| apiServer.podAnnotations | object | {} | |
| apiServer.podLabels | object | {} | |
| apiServer.podSecurityContext | object | {"fsGroup":1000} | fsGroup: 1000 matches the DT container UID so chart-mounted PVCs are writable. On OpenShift (and any cluster that assigns UIDs/GIDs via SCC or PSA), set podSecurityContext: ~ so the namespace picks the effective fsGroup. |
| apiServer.probes.liveness.failureThreshold | int | 3 | |
| apiServer.probes.liveness.initialDelaySeconds | int | 10 | |
| apiServer.probes.liveness.periodSeconds | int | 15 | |
| apiServer.probes.liveness.successThreshold | int | 1 | |
| apiServer.probes.liveness.timeoutSeconds | int | 5 | |
| apiServer.probes.readiness.failureThreshold | int | 3 | |
| apiServer.probes.readiness.initialDelaySeconds | int | 10 | |
| apiServer.probes.readiness.periodSeconds | int | 5 | |
| apiServer.probes.readiness.successThreshold | int | 1 | |
| apiServer.probes.readiness.timeoutSeconds | int | 5 | |
| apiServer.probes.startup | object | {"failureThreshold":60,"initialDelaySeconds":10,"periodSeconds":30,"successThreshold":1,"timeoutSeconds":5} | Startup probe timing. The budget covers schema migrations on first install and upgrades: 60 * 30s = 30 min, enough for any realistic single-step DT migration. For multi-hour upgrade migrations, bump this and pass helm upgrade --timeout 30m, since Helm's 5-minute default fires first. |
| apiServer.securityContext | object | {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}} | Container security context. Defaults target the restricted Pod Security Standard. |
| apiServer.service.annotations | object | {} | |
| apiServer.service.managementPort | int | 9000 | Management port (health + metrics) exposed only on the pod. |
| apiServer.service.nodePort | string | nil | |
| apiServer.service.port | int | 8080 | |
| apiServer.service.type | string | "ClusterIP" | |
| apiServer.serviceMonitor.enabled | bool | false | Whether to create a Prometheus Operator ServiceMonitor scraping the management port. |
| apiServer.serviceMonitor.labels | object | {} | |
| apiServer.serviceMonitor.namespace | string | "monitoring" | Namespace for the ServiceMonitor. Set it where your Prometheus selects ServiceMonitors. |
| apiServer.serviceMonitor.scrapeInterval | string | "60s" | |
| apiServer.serviceMonitor.scrapeTimeout | string | "30s" | |
| apiServer.topology | string | "monolith" | The topology to deploy. Possible choices are monolith (single Deployment), or split (separate web and worker Deployments, individually scalable). In the monolith topology, web values configure the single Deployment. |
| apiServer.web | object | {"affinity":{},"autoscaling":{"annotations":{},"behavior":{},"enabled":false,"maxReplicas":5,"minReplicas":1,"targetCPUUtilizationPercentage":70,"targetMemoryUtilizationPercentage":null},"extraEnv":[],"extraEnvFrom":[],"nodeSelector":{},"pdb":{"enabled":false,"maxUnavailable":null,"minAvailable":1},"priorityClassName":"","replicaCount":1,"resources":{"limits":{"memory":"2Gi"},"requests":{"cpu":"500m","memory":"2Gi"}},"revisionHistoryLimit":5,"terminationGracePeriodSeconds":120,"tolerations":[],"topologySpreadConstraints":[]} | Web role (API + UI). In monolith topology this configures the single Deployment. |
| apiServer.web.replicaCount | int | 1 | Number of web replicas. Default 1. Bump only after switching fileStorage.provider to s3 (or wiring an RWX-capable StorageClass). A multi-replica local PVC will not bind on cloud-default block storage. |
| apiServer.web.terminationGracePeriodSeconds | int | 120 | 120s allows in-flight BOM uploads to finish. |
| apiServer.web.topologySpreadConstraints | list | [] | Pod topology spread constraints. Recommended for production: - maxSkew: 1 topologyKey: kubernetes.io/hostname whenUnsatisfiable: ScheduleAnyway labelSelector: matchLabels: app.kubernetes.io/component: api-server |
| apiServer.worker | object | {"affinity":{},"autoscaling":{"annotations":{},"behavior":{},"enabled":false,"maxReplicas":5,"minReplicas":1,"targetCPUUtilizationPercentage":70,"targetMemoryUtilizationPercentage":null},"extraEnv":[],"extraEnvFrom":[],"nodeSelector":{},"pdb":{"enabled":false,"maxUnavailable":null,"minAvailable":1},"priorityClassName":"","replicaCount":1,"resources":{"limits":{"memory":"2Gi"},"requests":{"cpu":"500m","memory":"2Gi"}},"revisionHistoryLimit":5,"terminationGracePeriodSeconds":300,"tolerations":[],"topologySpreadConstraints":[]} | Worker role. Only rendered when topology: split. |
| apiServer.worker.autoscaling | object | {"annotations":{},"behavior":{},"enabled":false,"maxReplicas":5,"minReplicas":1,"targetCPUUtilizationPercentage":70,"targetMemoryUtilizationPercentage":null} | CPU/memory-driven HPA. For queue-backlog scaling, wire your own ScaledObject/HPA via extraObjects against the dt_dex_engine_* metrics. |
| apiServer.worker.terminationGracePeriodSeconds | int | 300 | 300s leaves room for multi-minute background tasks (BOM ingest, vuln analysis, repo meta sync) to drain. |
| database.existingSecret | object | {"name":"","passwordKey":"password","usernameKey":"username"} | Reference to an existing Secret. Credentials are mounted as files under /etc/dt/secrets/db/. |
| database.existingSecret.name | string | "" | Name of the existing secret. |
| database.existingSecret.passwordKey | string | "password" | Key in the secret that's holding the password. |
| database.existingSecret.usernameKey | string | "username" | Key in the secret that's holding the username. |
| database.jdbcUrl | string | "jdbc:postgresql://postgresql:5432/dtrack?reWriteBatchedInserts=true" | JDBC URL for the PostgreSQL database. Supports templating. |
| database.password | string | "" | Plain password. Ignored when existingSecret.name is set. Not recommended for production. |
| database.username | string | "" | Plain username. Ignored when existingSecret.name is set. Not recommended for production. |
| enableServiceLinks | bool | false | |
| extraObj |
Deploy dependency-track with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has dependency-track on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartdependency-track is pinned at v2.10.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply