dependency-track

by OWASP Dependency-Track

Helm chartv2.10.0App 5.2.2Verified publisher

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

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

  1. The upgrade guide covers the application-level procedure.
  2. The release notes of every version you skip past, not just the target one.
  3. 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.name and secretManagement.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: false
  • capabilities.drop: [ALL]
  • runAsNonRoot: true
  • seccompProfile.type: RuntimeDefault
  • readOnlyRootFilesystem: true (except the frontend)
  • no hostNetwork, hostPID, hostIPC, hostPath, or privileged: true
  • no ports below 1024, no NodePort default

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 without database.existingSecret.name.
  • The Job runs on every sync. Argo CD re-runs PreSync on 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

KeyTypeDefaultDescription
apiServer.additionalVolumeMountslist[]
apiServer.additionalVolumeslist[]
apiServer.annotationsobject{}Annotations on the Deployment(s).
apiServer.argslist[]
apiServer.commandlist[]
apiServer.deployment.strategyobject{"rollingUpdate":{"maxSurge":0,"maxUnavailable":1},"type":"RollingUpdate"}maxSurge: 0 avoids cluster overcommit on multi-CPU pods.
apiServer.extraContainerslist[]
apiServer.extraEnvlist[]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.extraEnvFromlist[]
apiServer.image.pullPolicystring"IfNotPresent"
apiServer.image.registrystring""Override image.registry for the API server.
apiServer.image.repositorystring"dependencytrack/apiserver"Repository of the apiserver image.
apiServer.image.tagstring""Tag name or sha256:<digest>. Defaults to the chart's appVersion.
apiServer.initContainerslist[]
apiServer.initializerobject{"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.annotationsobject{}Annotations on the initializer Job itself. Merged with (and may override) the chart-managed helm.sh/* hook annotations.
apiServer.initializer.nodeSelectorobject{}Node selector for the initializer Job's pod. Replaces the root-level nodeSelector when set to a non-empty value.
apiServer.initializer.tolerationslist[]Tolerations for the initializer Job's pod. Replaces the root-level tolerations when set to a non-empty value.
apiServer.podAnnotationsobject{}
apiServer.podLabelsobject{}
apiServer.podSecurityContextobject{"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.failureThresholdint3
apiServer.probes.liveness.initialDelaySecondsint10
apiServer.probes.liveness.periodSecondsint15
apiServer.probes.liveness.successThresholdint1
apiServer.probes.liveness.timeoutSecondsint5
apiServer.probes.readiness.failureThresholdint3
apiServer.probes.readiness.initialDelaySecondsint10
apiServer.probes.readiness.periodSecondsint5
apiServer.probes.readiness.successThresholdint1
apiServer.probes.readiness.timeoutSecondsint5
apiServer.probes.startupobject{"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.securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}}Container security context. Defaults target the restricted Pod Security Standard.
apiServer.service.annotationsobject{}
apiServer.service.managementPortint9000Management port (health + metrics) exposed only on the pod.
apiServer.service.nodePortstringnil
apiServer.service.portint8080
apiServer.service.typestring"ClusterIP"
apiServer.serviceMonitor.enabledboolfalseWhether to create a Prometheus Operator ServiceMonitor scraping the management port.
apiServer.serviceMonitor.labelsobject{}
apiServer.serviceMonitor.namespacestring"monitoring"Namespace for the ServiceMonitor. Set it where your Prometheus selects ServiceMonitors.
apiServer.serviceMonitor.scrapeIntervalstring"60s"
apiServer.serviceMonitor.scrapeTimeoutstring"30s"
apiServer.topologystring"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.webobject{"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.replicaCountint1Number 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.terminationGracePeriodSecondsint120120s allows in-flight BOM uploads to finish.
apiServer.web.topologySpreadConstraintslist[]Pod topology spread constraints. Recommended for production: - maxSkew: 1 topologyKey: kubernetes.io/hostname whenUnsatisfiable: ScheduleAnyway labelSelector: matchLabels: app.kubernetes.io/component: api-server
apiServer.workerobject{"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.autoscalingobject{"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.terminationGracePeriodSecondsint300300s leaves room for multi-minute background tasks (BOM ingest, vuln analysis, repo meta sync) to drain.
database.existingSecretobject{"name":"","passwordKey":"password","usernameKey":"username"}Reference to an existing Secret. Credentials are mounted as files under /etc/dt/secrets/db/.
database.existingSecret.namestring""Name of the existing secret.
database.existingSecret.passwordKeystring"password"Key in the secret that's holding the password.
database.existingSecret.usernameKeystring"username"Key in the secret that's holding the username.
database.jdbcUrlstring"jdbc:postgresql://postgresql:5432/dtrack?reWriteBatchedInserts=true"JDBC URL for the PostgreSQL database. Supports templating.
database.passwordstring""Plain password. Ignored when existingSecret.name is set. Not recommended for production.
database.usernamestring""Plain username. Ignored when existingSecret.name is set. Not recommended for production.
enableServiceLinksboolfalse
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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdependency-track is pinned at v2.10.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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