OpenTenant / Marketplace / factly / kavach
About this chart
Kavach Helm Chart
A Helm chart for Kavach - A comprehensive identity and access management (IAM) platform that provides authentication, authorization, and user management services for modern applications.
Overview
Kavach is a complete IAM solution built with modern microservices architecture. It provides:
Authentication : User authentication with multiple providers and methods
Authorization : Fine-grained access control with role-based permissions
User Management : Complete user lifecycle management with organizations and spaces
Multi-tenancy : Support for multiple organizations and applications
API Gateway : Secure API access with authentication and authorization
File Management : Integrated file upload and processing capabilities
Scalability : Microservices architecture with horizontal scaling support
Architecture
Kavach consists of multiple components:
Server : Backend API service for authentication and user management
Web : Frontend web interface for user management and administration
PostgreSQL : Database for storing user data and configurations
Minio : Object storage for file management
Imgproxy : Image processing and optimization service
Kratos : Identity management service (Ory Kratos)
Oathkeeper : API gateway and proxy (Ory Oathkeeper)
Keto : Authorization service (Ory Keto)
Companion : File upload service for handling third-party integrations
Prerequisites
Kubernetes 1.19+
Helm 3.2.0+
PV provisioner support in the underlying infrastructure (if persistence is enabled)
Installation Add Helm Repository
helm repo add factly https://factly.github.io/helm-charts
helm repo update
Install Chart
# Install with default values
helm install kavach factly/kavach
# Install with custom values
helm install kavach factly/kavach -f values.yaml
# Install in specific namespace
helm install kavach factly/kavach --namespace kavach --create-namespace
Uninstallation
helm uninstall kavach
Configuration
The following table lists the configurable parameters and their default values.
Global Parameters Parameter Description Default
nameOverrideString to partially override kavach.fullname kavach
fullnameOverrideString to fully override kavach.fullname kavach
namespaceOverrideOverride the deployment namespace dega
imagePullSecretsGlobal Docker registry secret names as an array []
global.image.tagGlobal image tag override ""
global.image.imagePullPolicyGlobal image pull policy IfNotPresent
global.securityContextGlobal security context {}
Server Component Parameter Description Default
server.nameServer component name server
server.image.repositoryServer image repository factly/kavach-server
server.image.tagServer image tag ""
server.image.pullPolicyServer image pull policy IfNotPresent
server.replicaCountNumber of server replicas 1
server.autoscaling.enabledEnable horizontal pod autoscaler for server false
server.autoscaling.minReplicasMinimum number of server replicas 1
server.autoscaling.maxReplicasMaximum number of server replicas 5
server.autoscaling.targetCPUUtilizationPercentageTarget CPU utilization percentage 80
server.autoscaling.targetMemoryUtilizationPercentageTarget memory utilization percentage 80
server.autoMigrateEnable automatic database migration false
server.createSuperOrgCreate super organization on startup false
server.envEnvironment variables for server []
server.defaultApplicationsDefault applications configuration ""
Server Environment Variables Environment Variable Description Example
KAVACH_IMAGEPROXY_URLImage proxy URL for image processing "https://images.factly.org"
KAVACH_MODEApplication mode "development" or "production"
KAVACH_KETO_URLKeto authorization service URL "http://keto.dega.svc.cluster.local:4466"
KAVACH_DATABASE_HOSTDatabase host "kavach-postgresql.dega.svc.cluster.local"
KAVACH_DATABASE_NAMEDatabase name "kavach"
KAVACH_DATABASE_PORTDatabase port "5432"
KAVACH_DATABASE_USERDatabase username "postgres"
KAVACH_DATABASE_PASSWORDDatabase password From secret
KAVACH_DATABASE_SSL_MODEDatabase SSL mode "disable"
KAVACH_SENDGRID_API_KEYSendGrid API key for email From secret
KAVACH_DOMAIN_NAMEDomain name for the application "https://kavach.factly.org"
Server Service Parameters Parameter Description Default
server.service.typeServer service type ClusterIP
server.service.portServer service port 8000
server.service.portNameServer service port name http
server.service.annotationsServer service annotations {}
server.service.labelsServer service labels {}
Server ServiceAccount Parameters Parameter Description Default
server.serviceAccount.createCreate service account for server false
server.serviceAccount.annotationsServer service account annotations {}
server.serviceAccount.labelsServer service account labels {}
server.serviceAccount.nameServer service account name "kavach-server"
Server Monitoring Parameters Parameter Description Default
server.metrics.enabledEnable metrics collection for server false
server.metrics.service.typeMetrics service type ClusterIP
server.metrics.service.portMetrics service port 8001
server.metrics.serviceMonitor.enabledEnable ServiceMonitor for Prometheus false
server.metrics.serviceMonitor.selectorServiceMonitor selector {release: monitoring}
server.metrics.serviceMonitor.intervalMetrics scrape interval 30s
Web Component Parameter Description Default
web.nameWeb component name web
web.image.repositoryWeb image repository factly/kavach-web
web.image.tagWeb image tag ""
web.image.pullPolicyWeb image pull policy IfNotPresent
web.replicaCountNumber of web replicas 1
web.autoscaling.enabledEnable horizontal pod autoscaler for web false
web.autoscaling.minReplicasMinimum number of web replicas 1
web.autoscaling.maxReplicasMaximum number of web replicas 5
web.autoscaling.targetCPUUtilizationPercentageTarget CPU utilization percentage 80
web.autoscaling.targetMemoryUtilizationPercentageTarget memory utilization percentage 80
web.envEnvironment variables for web []
Web Service Parameters Parameter Description Default
web.service.typeWeb service type NodePort
web.service.portWeb service port 80
web.service.portNameWeb service port name http
web.service.annotationsWeb service annotations {}
web.service.labelsWeb service labels {}
Web ServiceAccount Parameters Parameter Description Default
web.serviceAccount.createCreate service account for web false
web.serviceAccount.annotationsWeb service account annotations {}
web.serviceAccount.labelsWeb service account labels {}
web.serviceAccount.nameWeb service account name "kavach-web"
Health Check Parameters Parameter Description Default
server.readinessProbe.initialDelaySecondsServer readiness probe initial delay 10
server.readinessProbe.timeoutSecondsServer readiness probe timeout 5
server.readinessProbe.successThresholdServer readiness probe success threshold 1
server.readinessProbe.failureThresholdServer readiness probe failure threshold 5
server.readinessProbe.periodSecondsServer readiness probe period 10
server.livenessProbe.initialDelaySecondsServer liveness probe initial delay 50
server.livenessProbe.timeoutSecondsServer liveness probe timeout 5
server.livenessProbe.successThresholdServer liveness probe success threshold 1
server.livenessProbe.failureThresholdServer liveness probe failure threshold 5
server.livenessProbe.periodSecondsServer liveness probe period 10
web.readinessProbe.*Web readiness probe parameters Same as server
web.livenessProbe.*Web liveness probe parameters Same as server
Resource Parameters Parameter Description Default
server.resourcesServer CPU/Memory resource requests/limits {}
web.resourcesWeb CPU/Memory resource requests/limits {}
server.nodeSelectorServer node labels for pod assignment {}
server.tolerationsServer tolerations for pod assignment []
server.affinityServer affinity settings for pod assignment {}
web.nodeSelectorWeb node labels for pod assignment {}
web.tolerationsWeb tolerations for pod assignment []
web.affinityWeb affinity settings for pod assignment {}
server.podAnnotationsServer pod annotations {}
web.podAnnotationsWeb pod annotations {}
server.securityContextServer security context {}
web.securityContextWeb security context {}
Dependencies PostgreSQL Parameter Description Default
postgresql.enabledEnable PostgreSQL dependency false
postgresql.image.registryPostgreSQL image registry docker.io
postgresql.image.repositoryPostgreSQL image repository bitnami/postgresql
postgresql.image.tagPostgreSQL image tag 14.2.0-debian-10-r33
postgresql.auth.enablePostgresUserEnable postgres admin user true
postgresql.auth.postgresPasswordPostgreSQL postgres user password "postgres"
postgresql.auth.usernamePostgreSQL custom username ""
postgresql.auth.passwordPostgreSQL custom user password ""
postgresql.auth.databasePostgreSQL custom database ""
postgresql.architecturePostgreSQL architecture standalone
postgresql.primary.resources.requests.memoryPostgreSQL memory request 256Mi
postgresql.primary.resources.requests.cpuPostgreSQL CPU request 250m
Minio Parameter Description Default
minio.enabledEnable Minio dependency false
minio.modeMinio server mode distributed
minio.replicasNumber of Minio containers 4
minio.zonesNumber of expanded Minio clusters 1
minio.persistence.enabledEnable Minio persistence true
minio.auth.rootUserMinio root username admin
minio.auth.rootPasswordMinio root password password
Imgproxy Parameter Description Default
imgproxy.enabledEnable Imgproxy dependency false
Kratos (Identity Management) Parameter Description Default
kratos.enabledEnable Kratos dependency false
kratos.kratos.automigration.enabledEnable Kratos auto-migration true
kratos.kratos.config.dsnKratos database connection string PostgreSQL connection
Oathkeeper (API Gateway) Parameter Description Default
oathkeeper.enabledEnable Oathkeeper dependency false
oathkeeper.oathkeeper.config.serve.proxy.portOathkeeper proxy port 4455
oathkeeper.oathkeeper.config.serve.api.portOathkeeper API port 4456
Keto (Authorization) Parameter Description Default
keto.enabledEnable Keto dependency false
keto.keto.automigration.enabledEnable Keto auto-migration true
keto.keto.config.serve.read.portKeto read API port 4466
keto.keto.config.serve.write.portKeto write API port 4467
keto.keto.config.serve.metrics.portKeto metrics port 4468
keto.keto.config.dsnKeto database connection string PostgreSQL connection
Companion (File Upload) Parameter Description Default
companion.enabledEnable Companion dependency false
Examples Basic Installation
# values.yaml
server:
env:
- name: KAVACH_MODE
value: "production"
- name: KAVACH_DATABASE_HOST
value: "my-postgresql.default.svc.cluster.local"
- name: KAVACH_DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: kavach-secrets
key: database_password
postgresql:
enabled: true
auth:
postgresPassword: "secure-postgres-password"
Complete Installation with All Dependencies
# values.yaml
server:
autoMigrate: true
createSuperOrg: true
env:
- name: KAVACH_MODE
value: "production"
- name: KAVACH_IMAGEPROXY_URL
value: "http://kavach-imgproxy:8080"
- name: KAVACH_KETO_URL
value: "http://kavach-keto:4466"
- name: KAVACH_DATABASE_HOST
value: "kavach-postgresql"
- name: KAVACH_DATABASE_NAME
value: "kavach"
- name
Details
Repository factly Chart version v0.9.5 App version 0.22.3 Updated Apr 28, 2026 Artifact Hub View listing
Deploy kavach with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kavach 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 server Connect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.Place the chart kavach is pinned at v0.9.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.Apply Save 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 Copy