guacamole
by HelmForge
Apache Guacamole clientless remote desktop gateway with guacd, PostgreSQL or MySQL, OIDC/SAML SSO, and S3 backup
About this chart
Apache Guacamole Helm Chart
Deploy Apache Guacamole on Kubernetes — a clientless remote desktop gateway supporting RDP, VNC, SSH, telnet, and Kubernetes.
Features
- guacd Sidecar — protocol daemon runs as a sidecar container
- PostgreSQL Subchart — bundled via HelmForge dependency (default)
- MySQL Subchart — bundled via HelmForge dependency
- External Database — connect to existing PostgreSQL or MySQL
- Database Init Job — automatic schema initialization via post-install hook
- OpenID Connect — SSO with Keycloak, Okta, Azure AD, and others
- SAML — SSO with any SAML 2.0 identity provider
- TOTP — two-factor authentication
- Reverse Proxy — Tomcat RemoteIpValve for proper client IP detection
- Ingress — TLS with cert-manager
- S3 Backup — scheduled CronJob with pg_dump or mysqldump
- Real Port Overrides — Tomcat and guacd process listeners follow chart values
- Immutable Images — official images pinned by multi-architecture digest
- Secure Defaults — non-root, read-only filesystems, seccomp, dropped capabilities, and no API token
- Ingress Isolation — NetworkPolicy enabled by default
Documentation
- Chart Design
- Database Configuration
- OIDC with Keycloak
- Backup Guide
- Guacamole Official Docs
Security Scan: guacamole
| Framework | Score |
|---|---|
| MITRE + NSA + SOC2 | 78.78788% |
Security posture acceptable with operator-provided resource limits, security contexts, and network policy.
Installation
HTTPS Repository
helm repo add helmforge https://repo.helmforge.dev
helm repo update
helm install guacamole helmforge/guacamole -f values.yaml
OCI Registry
helm install guacamole oci://ghcr.io/helmforgedev/helm/guacamole -f values.yaml
Quick Start
postgresql:
auth:
password: "change-me"
After deploying, access the web interface and log in with guacadmin / guacadmin. Change the default password immediately.
kubectl port-forward svc/<release>-guacamole 8080:80
Examples
- Simple bundled PostgreSQL
- Production ingress, OIDC, and backups
- External PostgreSQL
- OIDC with Keycloak
Application and Service Ports
containerPorts.http changes the real Tomcat connector through the official
image's entrypoint.d extension point. guacd.port is passed to the guacd
daemon with -l and is also supplied to the web application. service.port
is an independent client-facing port that targets the named http listener.
containerPorts:
http: 18080
guacd:
port: 14822
service:
port: 8080
The custom-ports-values.yaml k3d scenario requires both overridden listeners
to become Ready, proving that these settings change the processes themselves.
OIDC with Keycloak
oidc:
enabled: true
authorizationEndpoint: https://keycloak.example.com/realms/master/protocol/openid-connect/auth
jwksEndpoint: https://keycloak.example.com/realms/master/protocol/openid-connect/certs
issuer: https://keycloak.example.com/realms/master
clientId: guacamole
ingress:
enabled: true
ingressClassName: traefik
hosts:
- host: guacamole.example.com
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- guacamole.example.com
secretName: guacamole-tls
See OIDC with Keycloak guide for detailed setup instructions.
Values
Common metadata
| Key | Default | Description |
|---|---|---|
commonLabels | {} | Labels added to chart-owned resources |
commonAnnotations | {} | Annotations added to chart-owned resources; resource-specific annotations take precedence |
Images
| Key | Default | Description |
|---|---|---|
image.repository | guacamole/guacamole | Web app image |
image.tag | "" (appVersion) | Web app tag |
image.digest | pinned 1.6.0 digest | Immutable web image manifest |
guacd.image.repository | guacamole/guacd | guacd daemon image |
guacd.image.tag | "" (appVersion) | guacd daemon tag |
guacd.image.digest | pinned 1.6.0 digest | Immutable guacd image manifest |
guacd.port | 4822 | guacd port |
guacd.logLevel | info | guacd log level |
Guacamole
| Key | Default | Description |
|---|---|---|
guacamole.contextPath | ROOT | Web context path (ROOT = /) |
containerPorts.http | 8080 | Actual Tomcat HTTP listener |
Database
| Key | Default | Description |
|---|---|---|
database.type | postgresql | Database type (postgresql, mysql) |
database.waitForConnection.enabled | true | Wait for successful database connection before starting |
database.waitForConnection.resources | {} | Optional resource definitions for waitForConnection |
database.external.host | "" | External database host |
database.external.name | guacamole_db | Database name |
database.external.username | guacamole_user | Database username |
postgresql.enabled | true | Deploy PostgreSQL subchart |
mysql.enabled | false | Deploy MySQL subchart |
initDb.enabled | true | Run schema init Job on install |
OIDC (OpenID Connect)
| Key | Default | Description |
|---|---|---|
oidc.enabled | false | Enable OIDC authentication |
oidc.authorizationEndpoint | "" | Authorization endpoint URI |
oidc.jwksEndpoint | "" | JWKS endpoint URI |
oidc.issuer | "" | Token issuer |
oidc.clientId | "" | Client ID |
oidc.redirectUri | "" | Redirect URI (auto-detected from ingress) |
oidc.usernameClaim | preferred_username | JWT username claim |
oidc.groupsClaim | groups | JWT groups claim |
SAML
| Key | Default | Description |
|---|---|---|
saml.enabled | false | Enable SAML authentication |
saml.idpMetadataUrl | "" | IdP metadata URL |
saml.entityId | "" | SP entity ID (auto-detected from ingress) |
saml.callbackUrl | "" | Callback URL (auto-detected from ingress) |
saml.groupAttribute | groups | Group attribute name |
Service & Ingress
| Key | Default | Description |
|---|---|---|
service.type | ClusterIP | Service type |
service.port | 80 | Service port |
ingress.enabled | false | Enable ingress |
ingress.ingressClassName | traefik | Ingress class |
networkPolicy.enabled | true | Isolate inbound application traffic |
serviceAccount.automountServiceAccountToken | false | Mount the Kubernetes API token |
Backup
| Key | Default | Description |
|---|---|---|
backup.enabled | false | Enable S3 backup CronJob |
backup.schedule | 0 2 * * * | Cron schedule |
backup.s3.endpoint | "" | S3 endpoint URL |
backup.s3.bucket | "" | S3 bucket |
backup.s3.region | "" | AWS region required for workload identity |
backup.s3.credentialsFromPodIdentity | false | Use ambient workload identity instead of static keys |
backup.serviceAccount.create | true | Create a dedicated backup ServiceAccount |
backup.serviceAccount.annotations | {} | Workload identity annotations for the backup ServiceAccount |
Extra
| Key | Default | Description |
|---|---|---|
extraInitContainers | [] | Additional init containers for the pod |
extraVolumes | [] | Additional volumes for the pod |
extraVolumeMounts | [] | Additional volume mounts for the container |
extraManifests | [] | Extra manifests to deploy alongside the chart |
Architecture
Guacamole runs as a single Deployment with two containers:
- guacamole — Java/Tomcat web application on port 8080
- guacd — protocol daemon on port 4822 (sidecar, communicates via localhost)
A post-install Job initializes the database schema. The init job is idempotent and skips schema creation if tables already exist.
Security
The default application pod uses the non-root users defined by the official
images, RuntimeDefault seccomp, a read-only root filesystem, no privilege
escalation, and no Linux capabilities. Writable /tmp paths are explicit
emptyDir volumes. Kubernetes API token mounting is disabled for the
Deployment, initialization Job, and backup CronJob.
NetworkPolicy isolates ingress while intentionally leaving egress open for
remote desktop targets and identity providers. Add ingress-controller peers to
networkPolicy.ingressFrom when they are outside the release. Use existing
Secrets or External Secrets for production database and S3 credentials, and
change the default guacadmin password immediately.
Operations and Troubleshooting
kubectl -n <namespace> rollout status deployment/<release>-guacamole
kubectl -n <namespace> logs deployment/<release>-guacamole -c guacamole
kubectl -n <namespace> logs deployment/<release>-guacamole -c guacd
kubectl -n <namespace> get events --sort-by=.lastTimestamp
If the web container is not Ready, verify database initialization, the active
Tomcat listener, Secret keys, and reverse-proxy headers. If remote sessions
fail while the UI works, verify the guacd logs, target DNS/firewall reachability,
and that guacd.port is not overridden by guacamole.extraEnv.
Deploy guacamole with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has guacamole 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 chartguacamole is pinned at v1.7.4 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