derbent

by joaquinito2051

Helm chartv0.1.5App 0.1.0

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
ValueDefaultMeaning
environmentprodDENEGRA_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.secretFilesMASTER_KEY, SALT_KEYKeys 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.resources4 CPU, 8 Gidocs/system-requirements.md
gateway.egressTCP 443, UDP 514, any addressWhere the gateway may connect
front.adminCidrs127.0.0.1/32 ::1/128Who reaches the admin listener (oc port-forward)
front.tlsOpenShift service CAThe front's certificate
routeon, reencryptOpenShift Route to the user listener
ingressoffKubernetes Ingress instead of a Route
postgresql.mode, valkey.modeinternalexternal uses your services
networkPolicyonDefault 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.enabledfalseLibreChat 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartderbent is pinned at v0.1.5 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