glauth
by QuenchWorks
GLAuth: a lightweight LDAP server with users and groups from its config, for apps that only speak LDAP, with a generated search account. Hardened by QuenchWorks: built from source, nonroot, CVE-gated, cosign-signed and pinned by digest.
About this chart
Quenchworks GLAuth
Hardened GLAuth, a lightweight LDAP server: users and groups come from its config, with bcrypt or SHA-256 passwords, TOTP and per-user capabilities, for apps that only speak LDAP. The image is one static Go binary built from source; it runs as uid 1001 and is CVE-gated at build, cosign-signed and pinned by digest.
Install
helm install ldap oci://ghcr.io/quenchworks/charts/glauth --set baseDN=dc=example,dc=com
kubectl get secret ldap-glauth-config -o jsonpath='{.data.admin-password}' | base64 -d
Apps bind as cn=admin,ou=admins,dc=example,dc=com (a search-capable service account) and find
users under the base DN. Add users and groups as TOML in extraConfig; a user's DN is
cn=<name>,ou=<primary group name>,<baseDN>.
Configuration
| Key | Default | What it does |
|---|---|---|
baseDN | dc=glauth,dc=com | The directory root |
admin.username, admin.password | admin, generated | The search service account (passsha256 of the password) |
extraConfig | "" | Your [[users]] and [[groups]] as GLAuth TOML |
service.port | 389 | Service port (GLAuth listens on 3893) |
Passwords in extraConfig can be passbcrypt (the hex of a bcrypt string) or passsha256. The
config is rendered into a Secret. Plain LDAP is unencrypted: keep it inside the cluster.
Verify the image
cosign verify ghcr.io/quenchworks/images/glauth \
--certificate-identity-regexp 'https://github.com/quenchworks/.+' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
Deploy glauth with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has glauth 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 chartglauth is pinned at v0.0.2 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