devguard
A Helm chart for DevGuard — open-source software supply chain security, vulnerability management, and compliance.
About this chart
DevGuard Helm Chart
This repository contains the Helm chart for deploying DevGuard, a security and vulnerability management platform, on Kubernetes clusters.
Get started by following the installation instructions in the DevGuard documentation.
helm repo add devguard https://l3montree-dev.github.io/devguard-helm-chart
helm repo update
helm install devguard devguard/devguard
The chart is also available as an OCI artifact: oci://ghcr.io/l3montree-dev/devguard-helm-chart/devguard. See DISTRIBUTION.md for details.
You can find the default configuration values in the values.yaml file. Customize these values as needed for your deployment.
Supported Versions
DevGuard is tested on Rancher-supported Kubernetes distributions and is supported by L3montree GmbH on the following configurations:
| DevGuard Chart | Distribution | Distribution | Kubernetes | Status |
|---|---|---|---|---|
| > 1.9.x | Rancher (>= 2.14) | K3s (>= v1.35) | >= v1.35 | Tested |
| > 1.9.x | Talos Linux (>= 1.11) | K8s (>= 1.33) | >= v1.33 | Tested |
The chart declares kubeVersion: >=1.21-0 and is expected to work on other Rancher-supported distributions (e.g. RKE2, EKS) and recent Kubernetes versions, but the configurations listed above are the ones we have validated and actively support.
Prerequisites
- Storage: DevGuard's PostgreSQL requires a
PersistentVolumeClaim. Your cluster must provide a StorageClass — either a default one, or setpostgresql.pvc.storageClassNameexplicitly. Note that some distributions (e.g. RKE2, or Rancher's local cluster) do not ship a default StorageClass; the local-path-provisioner is a simple option for single-node setups. - Ingress: An ingress controller must be available if
api.ingress.enabled/web.ingress.enabledare used (default: enabled).
External PostgreSQL
Set postgresql.enabled=false to skip the bundled StatefulSet, Service, PVC and init job and point the API, Kratos and the Kratos cleanup job at a database you operate:
postgresql:
enabled: false
external:
host: postgres.example.internal
port: 5432
sslMode: disable
useExistingSecret: true
useExistingKratosDatabaseSecret: true
The chart does not bootstrap an external server. Prepare it beforehand — PostgreSQL 16 or newer:
CREATE ROLE devguard LOGIN PASSWORD '<devguard-password>';
CREATE DATABASE devguard OWNER devguard;
\c devguard
CREATE EXTENSION IF NOT EXISTS semver;
CREATE ROLE kratos LOGIN PASSWORD '<kratos-password>';
CREATE DATABASE kratos OWNER kratos;
\c kratos
GRANT USAGE, CREATE ON SCHEMA public TO kratos;
- The pg_semver extension is required. It is not part of a stock
postgresimage. - Kratos runs its own migrations, so the
kratosrole needsUSAGEandCREATEon itspublicschema. - For credentials keep the existing secret contract:
db-secretkeypostgres-password(devguard role) andkratos-db-secretkeypassword(kratos role). WithuseExistingSecret/useExistingKratosDatabaseSecretset totrue— the usual choice under Argo CD, where the Helmlookupfunction is unavailable — create both secrets yourself. external.sslModeapplies to the Kratos connections only. The DevGuard API always connects withsslmode=disable- terminate TLS in the network path (e.g. a sidecar or service mesh) if your database requires it.postgresql.enabled=falsealso drops the PostgreSQL ServiceMonitor, Grafana dashboard and thedevguard-postgresql-ingressNetworkPolicy.
Image Configuration
For api.image, web.image, and postgresql.image, the chart supports both:
- Full image string (for example
ghcr.io/l3montree-dev/devguard:0.13.0orghcr.io/l3montree-dev/devguard@sha256:...) - Object format with
repository,tag, optionaldigest, andpullPolicy
When digest is set in object format, it is preferred over tag and rendered as repository@digest.
PDF Report Generation
api.pdfGenerationApi is the URL of the external service that renders SBOM and vulnerability report PDFs - expects this service. It is empty by default, so no report data leaves the cluster. With it unset, GET …/sbom.pdf/ and GET …/vulnerability-report.pdf/ return HTTP 500; every other API route is unaffected. Set it to use a rendering service:
api:
pdfGenerationApi: https://example.com/pdf
Public API URL
INSTANCE_DOMAIN — the URL the instance advertises to itself and to CI clients — is derived from api.ingress.host and api.ingress.tls regardless of api.ingress.enabled, mirroring how FRONTEND_URL is derived from web.ingress.host. Set both when the API is published by something other than the chart's Ingress (Gateway API HTTPRoute, OpenShift Route, a service mesh) and leave api.ingress.enabled=false so no Ingress object is created.
Kyverno Policy
The chart includes an optional Kyverno policy for supply chain security. Enable it with:
kyvernoPolicy:
enabled: true
validationFailureAction: Enforce # or Audit
The policy enforces these rules on all Pods in the namespace:
| Rule | Image | Verification |
|---|---|---|
verify-devguard-images | ghcr.io/l3montree-dev/devguard, devguard-web, devguard/postgresql, devguard/kratos | Cosign signature + SLSA provenance attestation |
verify-kratos-image | oryd/kratos* | Cosign signature |
verify-otel-collector-image | otel/opentelemetry-collector-contrib* | Keyless signature (GitHub Actions OIDC) |
SLSA provenance checks
For DevGuard-built images (devguard, devguard-web, postgresql, kratos), the policy additionally verifies the SLSA provenance attestation, signed by the DevGuard instance that built them, and checks that:
- The builder ID is the trusted
devguard-ci-componentsfull-nix.ymlreusable workflow (refs/heads/mainor a release tag) - The image was built from
https://github.com/l3montree-dev/devguardorhttps://github.com/l3montree-dev/devguard-web - The workflow ref is
refs/heads/mainor arefs/tags/v*release tag
Testing
See tests/kyverno/README.md for instructions on running the policy tests locally.
Architecture / Docs
- Architecture
Deploy devguard with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has devguard 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 chartdevguard is pinned at v1.20.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