derbent
Denegra Derbent AI gateway (LiteLLM with Denegra's masking and checks) for OpenShift and Kubernetes; 14-day free trial at https://denegra.ai
About this chart
Denegra Derbent Helm chart
Denegra Derbent, Denegra's AI gateway, on Red Hat OpenShift or Kubernetes: the gateway, the TLS
front (integrations/tls-front/Caddyfile), PostgreSQL and Valkey, and LibreChat with MongoDB
when wanted. Every pod meets OpenShift's restricted-v2 SCC and Kubernetes' restricted
Pod Security level; no pod needs a custom SCC. The full guide, with what was and was not
tested, is docs/openshift.md.
14-day free trial
Request a trial at https://denegra.ai with your company e-mail and the gateway ID you will
use (gateway.settings.CUSTOMER_ID). The reply brings, for 14 days, a read-only token for
Denegra's registry denegra.azurecr.io and a trial licence bound to that gateway ID, with the
steps below. When the trial ends the gateway refuses requests until a licence is installed;
for a quote, use the form on the same site.
oc new-project derbent
oc apply -f pull-secret.yaml -f licence-secret.yaml # from the trial e-mail
oc create secret generic derbent-secrets --from-file=secrets/ # one file per key
helm install derbent openshift-helm-charts/derbent -f my-values.yaml --set 'imagePullSecrets[0].name=denegra-pull' --set licence.existingSecret=derbent-licence
| Value | Default | Meaning |
|---|---|---|
environment | prod | DENEGRA_ENV |
images.gateway | (required) | The gateway image, by digest |
gateway.secretName | (required) | The Secret holding MASTER_KEY, SALT_KEY, each provider's PROVIDER_<NAME>_API_KEY and the databases' passwords (an external database's DATABASE_URL or REDIS_URL instead) |
gateway.secretFiles | MASTER_KEY, SALT_KEY | Keys read as DENEGRA_<ENV>_<KEY>_FILE; add each provider's key. The chart adds an external database's URL and builds an internal one's from its password |
licence.existingSecret | "" | The Secret with Denegra's licence (key licence.jwt); optional, without it demo mode (docs/licensing.md) |
gateway.settings | {} | Non-secret DENEGRA_<ENV>_* settings, without the prefix |
gateway.environmentsToml | "" | Replaces config/environments.toml (models, providers, policies) |
gateway.resources | 4 CPU, 8 Gi | docs/system-requirements.md |
gateway.egress | TCP 443, UDP 514, any address | Where the gateway may connect |
front.adminCidrs | 127.0.0.1/32 ::1/128 | Who reaches the admin listener (oc port-forward) |
front.tls | OpenShift service CA | The front's certificate |
route | on, reencrypt | OpenShift Route to the user listener |
ingress | off | Kubernetes Ingress instead of a Route |
postgresql.mode, valkey.mode | internal | external uses your services |
networkPolicy | on | Default deny; router to front, front to gateway, gateway to databases |
podSecurityContext | {} | Vanilla Kubernetes with the chat UI only: a non-root UID for MongoDB |
chat.enabled | false | LibreChat and MongoDB |
values.schema.json refuses unknown values, images without a digest, secret-looking names
in gateway.settings and UID 0. tests/test_helm_chart.py lints and renders the chart;
tests/helm/kind_smoke.sh installs it on kind. helm test <release> checks the installed gateway.
Deploy derbent with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has derbent 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 chartderbent is pinned at v0.1.5 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