Welcome to Talaan
A lightweight LDAP directory that remembers everything.
Talaan (Tagalog: a register, a record book) is an LDAPv3 directory server for users, groups and logins, written in Rust. Like a good talaan, it never forgets: every change is kept, so you can ask the directory what it looked like at any moment, see who changed an entry and when, and restore it to any point in time.
docker run -p 3389:3389 -p 8080:8080 -e TALAAN_ADMIN_PASSWORD='a-long-admin-passphrase' ghcr.io/talaan-dev/talaan
At a glance
| Speaks | LDAPv3 (read and write), LDAPS, StartTLS, SCIM 2.0, an HTTP API |
| Remembers | every change, with who made it and when |
| Weighs | one 14 MiB binary (7.7 MiB with LDAP and LDAPS only); about 30 MiB of memory at idle |
| Scales | ~17,000 searches/s on a busy 2-core host, the same at 10,000 users; read replicas, Raft clusters |
| Works with | Keycloak, Entra ID / Okta (SCIM), Grafana, Gitea, SSSD, ... |
| Runs on | a Linux host with systemd, any container runtime, Kubernetes |
| Reports to | Prometheus and Grafana, OpenTelemetry, webhooks (CloudEvents) |
| License | Apache-2.0 |
Where to go next
- New here? Read why we built Talaan and how it compares with other LDAP servers.
- Want to run it? Pick a host, a container or Kubernetes.
- Already running? Keep the Kodigo cheat sheet open.
- Words you don't know? Look them up in the Talahuluganan.
⚠️ Warning
Talaan is at v0.2: it works and is tested, but it is young. Read where we are now before you put your company's logins on it.
Vision: why we built Talaan
The vision
A directory you can trust because it can show its work.
Every company keeps a list of who its people are and what they may do. That list decides who can log in to email, servers, wikis and payroll. Yet in most organisations nobody can answer simple questions about it:
- Who removed Maria from the
financegroup, and when? - Could Juan log in to the VPN last Tuesday at 3 pm?
- Somebody's bulk import broke 400 accounts an hour ago. Can we go back to just before it?
We think a directory should answer all three, out of the box, from any client that already speaks LDAP. That is Talaan: a register that keeps its own history.
Why we built it
Directories were built before audit trails were expected. OpenLDAP and 389 Directory
Server are fast and proven, but they store only the present. History is an add-on you have
to configure (accesslog, the retro changelog), and even then you cannot search the past.
Modern alternatives traded LDAP away to get simplicity. lldap is small and friendly, but handles only users and groups. Kanidm is excellent, but its LDAP side is read-only. Many applications, appliances and Linux tools still need a full read/write LDAP server.
Running an identity stack is too heavy for small teams. A typical setup is a directory, an identity provider in front of it, a sync job between them, and backups of each. That is a lot of moving parts for a team of five, or a homelab.
What we believe
- History is a feature, not a log file. If the server keeps every change, it should let you use them: search the past, see an entry's story, restore to a moment.
- Small is a feature. One binary, no runtime, no database to install. Pick only the modules you need.
- Standards over lock-in. LDAP, SCIM, OpenMetrics, OpenTelemetry, CloudEvents, OCI, Helm. Talaan should plug into what you already run.
- Safe by default. Memory-safe Rust, Argon2id passwords, secrets never returned or logged, non-root containers.
What Talaan solves
| Problem | How it shows up | What Talaan does |
|---|---|---|
| "Who changed this?" | An account is locked, a group lost a member, a manager's email changed. Nobody knows who did it. | Every change records the actor and time. GET /api/v1/history?dn=... shows an entry's full story. |
| "What did it look like then?" | An incident review needs the directory as it was during the incident. | Any search can run as of a past time, from ldapsearch or over HTTP. See Time travel. |
| "Undo that import." | A bad script or sync job damaged hundreds of entries. Restoring last night's backup loses today's good changes. | Restore the log up to the minute before the mistake: talaan restore --until <time>. |
| Two systems for one list of users | LDAP for old apps, SCIM for new SaaS provisioning, and a sync job that drifts between them. | LDAP and SCIM 2.0 read and write the same entries. A user created over SCIM logs in over LDAP immediately. |
| Heavy to run | A directory plus an identity provider plus a database plus a sync job. | One 9.5 MB binary with embedded storage. Runs on a small VM, a container or Kubernetes. |
| Hard to observe | "Is LDAP slow, or is it the app?" | Prometheus metrics for every operation, a ready-made Grafana dashboard, alerts, OpenTelemetry traces. |
| Hard to react to changes | Other systems poll the directory to notice new users. | A signed webhook (CloudEvents) for every change, plus a durable change feed to catch up. |
Who it is for
- Small and mid-size teams that need LDAP for Linux logins, VPNs, wikis, Git servers or mail, and want an audit trail without extra tools.
- Homelabs and edge sites where memory and operational effort are scarce.
- Platform engineers who want a directory that fits GitOps, Prometheus and Kubernetes.
Who it is not for (yet)
- Very large directories (hundreds of thousands of entries): searches use indexes since v0.2, but our published tests stop at 10,000 users. See Speed tests.
- Windows domains: use Active Directory or Samba AD.
Why Talaan: compared with other LDAP servers
In 30 seconds
- It keeps every change. Search the directory as it was at any past time, from ordinary
ldapsearch; read one entry's full history (who, when, what); restore to a point in time. Active Directory can mount a snapshot taken earlier and read it over LDAP (dsamain); we found no other server that answers a search against the live directory as of any past time. - LDAP, SCIM 2.0 and a REST API over one store, in one binary, all on by default, plus an optional web UI.
- High availability is a few Helm values and two Secrets: a Raft cluster with automatic failover, where any member accepts writes. There is no replication agreement to configure.
- Configured with one TOML file, not LDIF changes to
cn=config. Written in Rust. - Choose something else if you need Kerberos, Group Policy or Windows domain join (Active Directory, Samba AD, FreeIPA), several writable masters, password-quality policies today, or a server with decades of production use.
Details: side by side · gaps Talaan fills · where it is easier · when not to choose it · supported environments
What Talaan is
Talaan is an LDAPv3 directory server for the people who run their own logins: homelabs, small and medium organisations, and platform teams on Kubernetes. Applications such as SSSD, Gitea, Grafana, Authentik, Nextcloud and Keycloak log in against it over LDAP. Provisioning tools write to it over SCIM. Every change is kept, so the directory can answer "what did this look like last Tuesday, and who changed it?".
Side by side
Everything here is from each project's own documentation, read on 30 November 2026, and is linked under Sources. "—" means we did not find it in that project's documentation; it does not mean "impossible". Talaan's column covers 0.5.0 only. Tell us if we got something wrong.
| Talaan 0.5.0 | OpenLDAP 2.6 | 389 DS / FreeIPA | Active Directory | lldap | Kanidm | glauth | ApacheDS | |
|---|---|---|---|---|---|---|---|---|
| Language | Rust | C | C | closed source | Rust | Rust | Go | Java |
| Configuration | one TOML file (+ env) | cn=config in LDIF (slapd.conf deprecated) | cn=config, dsconf CLI / ipa CLI | Windows Server roles, GUI and PowerShell | TOML (+ env) | server.toml (+ env) | TOML-style file | LDIF in ou=config |
| LDAP writes | all operations | yes (ldapadd, ldapmodify) | yes | not checked | not found (users and passwords through the web UI / GraphQL) | read-only LDAP | — | yes (ldapmodify -a) |
| Web UI | in the server (/ui): browse, search, history, time travel, edit, unlock | — | Cockpit plugin (389 DS); web UI (FreeIPA) | Windows admin tools (ADAC, ADUC) | user management | self-service (admin by CLI) | stats and health only | Directory Studio (desktop app) |
| SCIM 2.0 server | yes | — | — | — | — | inbound sync only | — | — |
| HTTP API | REST + SCIM | — | design doc, "work in progress" (389 DS); JSON-RPC (FreeIPA) | PowerShell | GraphQL | JSON over HTTP, Bearer API tokens | stats API | — |
| History of changes | every change, per entry, queryable | accesslog / auditlog overlays | not checked | Recycle Bin (deleted objects, 180 days by default); change auditing with old and new values (event 5136) | — | recycle bin (deleted entries, 1 week) | — | changelog, in memory only |
| Search as of a past time | yes (LDAP control, HTTP asOf) | — | — | snapshots taken in advance, read-only (dsamain) | — | — | — | — |
| Point-in-time restore | yes (talaan backup, then talaan restore --backup-file … --until <time>) | — | — | not checked | — | — | — | not checked |
| High availability | Raft: one leader, automatic failover, writes on any member; read replicas | syncrepl, delta-syncrepl, N-way multi-provider, mirror mode | multi-supplier (multi-master) | every domain controller replicates changes | — | two-node replication, both accept writes | several instances on a shared backend | multi-master (RFC 4533) |
| Kubernetes | official Helm chart (OCI) | — | official images + StatefulSet guide (389 DS) | — | official image; third-party manifests | official image | Helm chart mentioned in its HA docs | — |
| Metrics / tracing | OpenMetrics /metrics, OTLP traces, Grafana dashboard, alerts | cn=Monitor | SNMP (389 DS) | not checked | — | OTLP traces; monitoring described as "in its infancy" | stats web UI | not checked |
| Password-quality policy | not yet (0.6.0) | ppolicy overlay | yes | yes, including fine-grained policies | — | minimum length, zxcvbn quality check, badlist | — | yes (most of the ppolicy draft) |
| Kerberos / Group Policy | no | — | Kerberos, AD trusts (FreeIPA) | yes | — | — | — | — |
| License | Apache-2.0 | OpenLDAP Public License 2.8 | GPLv3 with exception (389 DS) | commercial: Windows Server, per core plus CALs | GPL-3.0 | MPL-2.0 | MIT | Apache-2.0 |
Also in Talaan 0.5.0, all in the default build: webhooks as CloudEvents (on by default), and, switched
on in [modules], an MCP server for AI assistants (read-only unless allowed) and a forward-auth
endpoint for API gateways. A separate
migration tool, talaan-migrate, moves directories from OpenLDAP, 389 DS, FreeIPA and Active
Directory.
Footprint (Talaan, measured)
| Talaan 0.5.0 | 1,000 users | 10,000 users |
|---|---|---|
| Binary, all modules / LDAP + LDAPS only | 14.1 MiB / 7.7 MiB | |
Container image (linux/amd64) | 41.9 MiB | |
| Memory at idle / peak under load | 29 / 114 MiB | 34 / 170 MiB |
Searches by uid | 17,893 /s (p50 0.74 ms) | 17,281 /s (p50 0.74 ms) |
| Searches as of a past time | 9,835 /s | 9,808 /s |
| Logins: 25 ms per check (Argon2id at the OWASP minimum, not configurable in 0.5.0), 16 connections | 69 /s | 69 /s |
| Data on disk | 4.8 MB | 48 MB |
Measured on 30 November 2026 with the released 0.5.0 image, capped at 512 MiB, on an Intel i3-7100T (2 cores, 4 threads) with an NVMe SSD. That host is a busy Kubernetes worker, so treat the numbers as a floor. Method and caveats: speed tests.
We publish only our own measurements. For the others, see their own docs.
Gaps in other servers that Talaan fills
Each gap is documented by the project itself; each Talaan answer is a released 0.5.0 feature.
OpenLDAP
- The accesslog overlay records changes into
another database, but the admin guide has no way to search the directory as of a past time or
to restore it to one. Talaan: time travel, and
talaan backup -o backup.jsonlthentalaan restore --backup-file backup.jsonl --until <time>. - Configuration is LDIF changes to
cn=config;slapd.confis deprecated. Talaan: one TOML file (reference). - Replication means choosing between syncrepl, delta-syncrepl, multi-provider and mirror mode, and configuring each server. Talaan: one Raft cluster mode (how).
- No SCIM, HTTP API or web UI in the admin guide;
monitoring is the
cn=Monitorbackend. Talaan: SCIM 2.0, REST,/ui, OpenMetrics and OTLP.
389 Directory Server / FreeIPA
- The REST API is a design document marked "work in progress"; there is no SCIM. Talaan: REST and SCIM 2.0.
- Monitoring is SNMP.
Talaan:
/metricsfor Prometheus, a Grafana dashboard and alert rules in the chart. - Containers are documented for OpenShift with a StatefulSet;
there is no Helm chart. Talaan:
helm installfrom GHCR. - Already has: multi-supplier replication, password policy, a web UI (Cockpit, FreeIPA). FreeIPA also has Kerberos and AD trusts, which Talaan does not.
Active Directory
- Runs as a Windows Server role. Talaan ships binaries for Linux, macOS and Windows, and container images (supported environments).
- Microsoft's SCIM support is in Microsoft Entra ID, not in on-premises AD DS. Talaan serves SCIM 2.0 itself.
- Already has: Kerberos, Group Policy, domain join. For Windows domains, use AD.
lldap
- "The goal is not to provide a full LDAP server", and "LLDAP is not a fully-featured LDAP
server, intentionally so" (README); users and passwords are
managed through its web UI. Talaan: every LDAP operation, including writes, and
cn=Subschema. - No replication or HA documented (FAQ). Talaan: a Raft cluster.
- Already has: a friendly web UI and a GraphQL API.
Kanidm
- Its LDAP interface is read-only. Talaan: LDAP writes, so tools that write over LDAP keep working.
- SCIM is only for syncing in from another IdP. Talaan: a SCIM 2.0 server for provisioning tools.
- Already has much that Talaan does not: OAuth2/OIDC, passkeys, RADIUS. If you want a full identity provider rather than a directory, look at Kanidm.
glauth
- Its limitations page lists missing schema and
unsupported search scopes. Its web UI shows
statistics, not users. Talaan:
cn=Subschema, and a web UI for the entries.
Apache Directory Server
- The latest release on its site is the milestone 2.0.0.AM27 (October 2023). Talaan is in active development (0.5.0, November 2026).
- The GUI is Apache Directory Studio, a separate desktop application. Talaan: a web UI in the server.
Where Talaan is easier
Each Talaan command below works on 0.5.0.
Add a user. OpenLDAP's quick start
writes an LDIF file and runs ldapadd -f. That works on Talaan too
(first steps). Talaan also takes one SCIM request, or the form in the
web UI at /ui:
curl -s -u admin:'a-long-admin-passphrase' -H 'content-type: application/scim+json' \
-d '{"userName":"maria","name":{"givenName":"Maria","familyName":"Clara"},"password":"maria-initial-password"}' \
localhost:8080/scim/v2/Users
See the past. Active Directory can mount a snapshot taken earlier with ntdsutil and read it
over LDAP with dsamain.
On Talaan there is nothing to prepare: any LDAP client that can send a control searches the
live directory as of any past time (OpenLDAP's ldapsearch base64-decodes control values,
hence the base64):
ldapsearch -H ldap://localhost:3389 -D cn=admin,dc=example,dc=org -W -b dc=example,dc=org \
-e "2.25.203361157072571637504597907948600948491=$(printf %s 2026-11-29T10:00:00Z | base64)" '(uid=juan)' mail
curl -s -u admin:"$PW" 'localhost:8080/api/v1/history?dn=uid=juan,ou=people,dc=example,dc=org'
High availability. OpenLDAP's N-way multi-provider
setup gives every server a serverID, a syncrepl stanza per peer and olcMultiProvider. On
Kubernetes, a Talaan cluster is a few Helm values and two Secrets: the talaan Secret (admin
password, API token, cluster secret) and a TLS Secret for Raft (a kubernetes.io/tls Secret with
ca.crt, naming *.talaan-headless.talaan.svc; see how):
kubectl -n talaan create secret generic talaan \
--from-literal=admin-password='a-long-admin-passphrase' \
--from-literal=api-token="$(openssl rand -hex 32)" \
--from-literal=cluster-secret="$(openssl rand -hex 32)"
helm install talaan oci://ghcr.io/talaan-dev/charts/talaan -n talaan --version 0.6.2 \
--set suffix='dc=example\,dc=org' --set cluster.enabled=true --set replicaCount=3 \
--set cluster.raftPort=7946 --set cluster.raftTlsSecret=talaan-raft-tls
Any member accepts writes and forwards them to the leader. If the leader dies, the others elect a new one.
Change a setting. OpenLDAP changes cn=config with ldapmodify and LDIF. Talaan reads one
TOML file (talaan config init writes a starting one; talaan config show prints what it runs
with).
Where Talaan is not the right choice (yet)
- Windows domains: no Kerberos, Group Policy or domain join, and none is planned (why). Use Active Directory, Samba AD or FreeIPA.
- Several writable masters: not planned. Talaan has one leader at a time, and any member accepts writes and forwards them (where we are).
- Password-quality policy (length, history,
ppolicy) and a configurable hash cost: planned for 0.6.0. - Case-exact matching for the few attributes that need it: planned for 0.7.0.
- Compacting a cluster's history: planned for 0.7.0; restore-and-seed works today.
- A full identity provider (OIDC, passkeys): Talaan is a directory. Pair it with Keycloak or Authentik (integrations), or look at Kanidm.
- Maturity: Talaan is young (first release on 29 November 2026) and has a small team and a small ecosystem. OpenLDAP and 389 DS have decades of production use behind them.
All open items, with a plan for each: where we are now.
Supported environments
Only what we build or test. "Built, not tested" means we ship it but no test runs on it.
| Status | |
|---|---|
Linux x86_64 binary (talaan-linux-x86_64) | tested: unit tests in CI, integration tests below |
Linux x86_64 minimal binary (talaan-minimal-linux-x86_64, LDAP + LDAPS) | built; compiles in CI, not tested |
Windows x86_64 (talaan-windows-x86_64.exe) | built; unit tests in CI |
macOS arm64 (talaan-macos-arm64) | built; unit tests in CI |
macOS x86_64 (talaan-macos-x86_64) | built, not tested |
Container image ghcr.io/talaan-dev/talaan, linux/amd64 | tested |
| Container image, linux/arm64 | built, not tested |
| Kubernetes, chart 0.6.0 | tested on Kubernetes 1.36 (containerd 2.3, Ubuntu 26.04, Ceph RBD volumes) |
| Docker / Podman | tested with Podman (hosts/ tests) |
| systemd | talaan.service shipped with the release |
Every release asset is listed in SHA256SUMS. The images carry SBOM and provenance attestations.
Clients tested end to end on 0.5.0 / chart 0.6.0 (talaan-e2e): SSSD, Gitea, Grafana, Authentik and Nextcloud logins, migration from OpenLDAP, a 0.4 → 0.5 cluster upgrade, write forwarding, and seeding a cluster from a server's data.
API gateways: the forward-auth endpoint is unit-tested, but not yet tested against a real gateway. The guide has configurations for Traefik, nginx, Envoy and others.
Resources: our 0.5.0 load test ran with a 512 MiB memory cap and peaked at 170 MiB with 10,000 users, on 2 cores / 4 threads (speed tests). We have not measured smaller limits.
The four ideas behind it
1. The log is the database
Every change is appended to a log, and the current entries are a projection of that log, both written in one transaction. Nothing is overwritten. From that one design choice come time travel, history and point-in-time restore, without extra components.
2. Time travel through a standard LDAP control
LDAP lets a client attach a control to a request. Talaan defines one, the as-of control
(2.25.203361157072571637504597907948600948491). Attach it to any search with a log position
or a time, and the server answers from the directory as it was then. Existing tools like
ldapsearch can send it today, without any plugin.
3. Many small pieces
Talaan is a set of small crates in separate repositories: a pure core and one adapter per protocol or integration. You build only what you need. The LDAP-only server is a few megabytes and has no HTTP stack at all.
4. Standards everywhere
LDAPv3, SCIM 2.0, OpenMetrics, OpenTelemetry, CloudEvents, RFC 9457 problem details, OCI images with SBOM and provenance, Sigstore signatures, Helm. Nothing proprietary to learn.
Sources
Read on 30 November 2026.
- OpenLDAP: admin guide 2.6, configuration, overlays (accesslog, auditlog, ppolicy), replication, monitoring, license, source.
- 389 DS: features, install (dsconf, Cockpit), REST API design, SNMP, OpenShift, licensing.
- FreeIPA: home, web UI, trusts, quick start.
- Active Directory: AD DS overview, install, Group Policy, New-ADUser, Entra SCIM, dsamain (snapshots over LDAP), Recycle Bin and fine-grained password policy, directory change auditing, Windows Server pricing.
- lldap: README, install, scripting (GraphQL), FAQ.
- Kanidm: LDAP, supported features, recycle bin, server configuration, monitoring, replication, the whole book (account policy, support, service accounts), repository.
- glauth: repository, backends, limitations, web UI, high availability.
- ApacheDS: home, news, adding entries, password policy, configuration, Directory Studio, license.
Where we are now
Current release: 0.5.3 (chart 0.6.2; dates and details in the
changelog). 0.5.2 is a security release: search filters could read password hashes. 0.5.1 was one too: changing your own password needs the current one, a password change ends that user's other web logins, at most four password checks run at once, and a short web session key is refused; it also brought opt-in search limits and a late cluster member catching up. 0.5.0 brought writes on any cluster member, Raft on its own TLS port (so a cluster can serve HTTPS), seeding a cluster on Kubernetes. Before that, 0.4.x brought safer cluster replacements, memberOf access checks and a complete schema for clients such as Authentik. 0.4.0 brought a web UI, an MCP server, migration from OpenLDAP, 389-DS, FreeIPA and Active Directory, HTTPS, PROXY protocol, and seeding a cluster from an existing server. It fixes most of the issues v0.2 listed;
see the changelog. Talaan is still young: read the known issues
before you put a company's logins on it.
What works today
| Area | Status |
|---|---|
| LDAP: bind, search, compare, add, modify, delete, rename (modrdn), WhoAmI, Password Modify | ✅ |
| LDAPS, StartTLS, SASL PLAIN, require-TLS-for-passwords | ✅ |
Indexed search, paged results, memberOf, object-class inheritance | ✅ |
| Time-travel search (LDAP control and HTTP), per-entry history, change feed | ✅ |
| Access rules per subtree, subject and attribute | ✅ |
| Login lockout, per-IP rate limits, connection caps | ✅ |
| Read replicas with referrals for writes | ✅ |
| Several naming contexts (other domains, child domains) | ✅ |
SCIM 2.0 Users and Groups, including PATCH and active | ✅ |
| Backup (offline and online), point-in-time restore | ✅ |
| Prometheus metrics, Grafana dashboard, 8 alerts, OpenTelemetry, CloudEvents webhooks | ✅ |
| Container image (amd64, arm64) with SBOM, provenance, signature; Helm chart; systemd | ✅ |
| Keycloak user federation, read and write | ✅ checked against a real Keycloak 26.0.8 |
| SSSD, Gitea, Grafana, Authentik, Nextcloud | ✅ checked against real installs (how) |
Known issues, and the plan for each
| Issue | Status | What to do today |
|---|---|---|
| Failover was manual: if the primary died, you promoted a replica by hand | Fixed in 0.3.0: a Raft cluster of 3 or 5 members elects a new leader in about a second and loses no acknowledged write. Checked with three real servers: formation, referral, lockout on every member, the leader killed, a restarted member catching up | Manual promotion with primary + replicas |
Up to 0.4: in a cluster, writes on a follower got a referral (LDAP) or 503 (HTTP/SCIM); clients that do not follow referrals, and LAN clients (the referral named an in-cluster address), could not write through a follower | Fixed in 0.5.0: followers forward writes to the leader over the Raft port ([cluster] forward_writes, on by default; talaan-raft 0.5.0, by Carl) | Until 0.5: send writes to the leader |
A cluster had to start from empty data; talaan restore and talaan compact do not work on a cluster member | Partly fixed in 0.4.0: talaan serve --seed-from <old talaan.redb> on the first member starts a cluster from an existing server, history included (how). Planned for 0.7.0: compaction of all members at the same point through the leader (a "compact before T" entry in the Raft log) | Restore (optionally to a point in time) into a single server, then start a new cluster from it (--seed-from; on Kubernetes cluster.seedFrom, 0.5.0). Tested on 0.4.4. A compacted store can't seed a cluster: to shrink a cluster's history, wait for 0.7.0 |
| On Kubernetes, a cluster member's id was its pod ordinal, so a founder that lost its volume could not come back under a new id | Fixed in 0.4.0: [cluster] ordinal_ids (chart cluster.ordinalIds) gives the replacement pod a new id; ids are checked so two pods never share one | A member lost its data |
| 0.4.0 and 0.4.1: a cluster founder that lost its volume is refused only on its first start; the crash-loop restart rejoins with empty data under its old id | Fixed in 0.4.2 (found by a cluster test) | Run talaan cluster remove 1 on a healthy member right away, and replace the pod as in A member lost its data; do not let it restart under its old id |
| Up to 0.4.2: a cluster founder that lost its volume and starts while it cannot reach any other member can form a cluster of its own | Fixed in 0.4.3: a founder with new Raft state forms only when a majority of the members (counting itself) answer that there is no cluster; with too few answers it waits, then exits and asks again on restart | Until 0.4.3: keep the members' network healthy during a replacement; replace a founder as in A member lost its data |
0.4.0–0.4.3: clients that check requested names against the server's schema (Python's ldap3, so Authentik) refuse distinguishedName and other standard names cn=Subschema didn't list; Authentik can't sync users or groups | Fixed in 0.4.4 (talaan-core 0.4.2, by Carl): the subschema covers RFC 4519, 4524 (COSINE), 2307 (NIS) and the names the tested clients ask for. Found by the Authentik integration test | Upgrade to 0.4.4; before that, turn off schema checking in the client (Authentik has no switch for it) |
String matching in filters ignores case for every attribute: RFC 2307's case-exact ones (authorizedService, bootFile, nisMapEntry, memberNisNetgroup) match ignoring case, and numericStringMatch does not ignore spaces. cn=Subschema advertises what Talaan does (caseIgnoreIA5Match for those four) | Planned for 0.7.0: per-attribute matching rules from the schema | Store values in one case; leave spaces out of numeric strings |
| A majority of a cluster's members lose their data at the same time | By design, not fixable by the cluster: the state lived on those members, so no rule can bring it back, and a founder may then form an empty cluster (the remaining members refuse it) | Restore the cluster from a backup (Backup and restore): a single server first, then seed a new cluster from it (talaan serve --seed-from) |
Raising replicaCount does not add the new pods to the cluster | Planned for 0.7.0: the leader adds listed members that are not in the cluster yet, opt-in (adding is safe; removing stays manual) | talaan cluster add after scaling up; cluster remove before scaling down (how) |
| A restarted member forced a new election even when the leader was healthy | Fixed in 0.3.0 (pre-vote and one leader per term in talaan-raft); checked by restarting a follower: term and leader stay | None needed |
Replicas polled the primary (up to poll_interval_ms behind) | Fixed in 0.3.0: streaming. A replica waits on the primary and gets each change within milliseconds | Lower poll_interval_ms |
| Lockout counters were per server | Fixed in 0.3.0 for accounts: a lock on any server applies on all of them, and replicas still count while the primary is down. Per-address locks and rate limits stay per server on purpose (each protects its own server) | Limit a whole cluster at the load balancer or API gateway |
| No attribute schema checks | Fixed in 0.3.0: required attributes for the standard classes, and the syntax of well-known attributes. Unknown classes stay open for applications | Validate in the provisioning tool |
Binary values (jpegPhoto, userCertificate) were refused | Fixed in 0.3.0: stored byte for byte, ;binary for certificates (RFC 4522) | Store images elsewhere |
| No SASL EXTERNAL (client certificates) | Fixed in 0.3.0 (ldap.client_ca) | Simple bind or SASL PLAIN over TLS |
| SASL GSSAPI (Kerberos) | Will not be added: it needs a Kerberos KDC, which is a second security system. Why, and what to use instead | An identity provider for SSO; AD or Samba AD for Windows |
| The log grows forever (about 4.8 MB per 1,000 users plus changes) | Fixed in 0.3.0: talaan compact --before <time>, offline, safe with replicas | Plenty for most directories |
memberOf in time travel showed the current groups | Fixed in 0.3.0: memberOf as it was at that moment | Use the group's own history |
No talaan login | Fixed in 0.3.0: talaan login / logout; the saved login is used by backup | TALAAN_URL, TALAAN_API_TOKEN |
| No Windows or macOS binaries | Fixed in 0.3.0: release builds for Windows x86_64 and macOS (Apple silicon and Intel), tested in CI on both | The container image |
| A child domain could not live on another server | Fixed in 0.3.0: referral entries (RFC 3296) with ManageDsaIT | Keep the child in the same server |
| API gateways could not use Talaan to log in | Fixed in 0.3.0: forward auth for Traefik, nginx, Caddy, Envoy, Emissary, Kong | Gateway LDAP plugins |
Replica pods from the Helm chart did not start with image 0.2.0 (it was built without the replica feature) | Fixed in 0.3.0: the image includes it, and CI now fails if the image misses any default feature | Build the image with --build-arg FEATURES=...,replica |
--set suffix=dc=example,dc=org was split by Helm at the comma | Fixed in chart 0.3.1: the chart refuses a split suffix and shows the escaped form | Escape commas: dc=example\,dc=org |
| No web UI, no MCP server | Fixed in 0.4.0: a web UI at /ui and an MCP server at /mcp, both modules off by default, with the same logins, lockout and access rules as LDAP | LDAP tools, SCIM, the HTTP API |
| Up to 0.4: in the web UI, an entry's history numbered its own changes (1, 2, 3), but time travel uses the directory's change number, so the two didn't match | Fixed in 0.5.0 (talaan-web 0.4.1, by Carl): each history line shows the directory change number | See it then on a history line always opens the right moment |
| Moving from another directory meant scripting LDIF by hand, and users lost their passwords | Fixed in 0.4.0: talaan-migrate maps OpenLDAP, 389-DS, FreeIPA and AD, reports first, and keeps passwords (old hashes log in and are upgraded to Argon2id). AD never hands out hashes, so AD users need a new password | Set new passwords after an AD migration (web UI, SCIM or Password Modify) |
| Behind a TCP load balancer every client looked like the balancer, so per-address lockout hit everyone | Fixed in 0.4.0: PROXY protocol v1/v2 from [proxy] trusted balancers; on Kubernetes with MetalLB, the chart's lanService uses externalTrafficPolicy: Local instead | Raise or turn off per-address limits |
| Up to 0.4: a cluster cannot serve HTTPS: members talk Raft on the HTTP port | Fixed in 0.5.0: Raft over TLS on its own port ([cluster] raft_listen, chart cluster.raftPort); a running cluster moves with talaan cluster move (how) | Until 0.5: terminate HTTPS at an ingress, or run a single server with HTTPS |
| 0.5.0: a cluster still using the 0.4 layout (Raft on the HTTP port) sends Raft, which carries password hashes and the cluster secret, in plain text | Deprecated in 0.5.0, refused from 0.6.0 unless cluster.legacy_raft_on_http_port = true. The 0.5.1 binary warns; chart 0.6.1 refuses to render it without cluster.legacyRaftOnHttpPort. A cluster run outside the chart (systemd, containers) has no other guard: move to raft_listen over TLS now (how) | Keep the HTTP port inside the cluster's network (networkPolicy) until you move |
| No LDAP subschema entry; tools that read the schema found nothing | Fixed in 0.4.0: cn=Subschema (attribute types, object classes, syntaxes, matching rules) and computed attributes such as hasSubordinates | — |
Up to 0.4.0: memberOf listed groups the reader may not be allowed to see, and filters on it could reveal them | Fixed in 0.4.1 (talaan-core 0.4.1, by Carl): memberOf lists only groups the reader may read, and filters on it see only those | With keep_default_rules = false, give service accounts that read memberOf (Keycloak, SSSD) read access to ou=groups |
Up to 0.5.0: the root DSE's vendorVersion gave talaan-core's version (0.4.3 on Talaan 0.5.0), not the server's | Fixed in 0.5.1 (talaan-core 0.4.4, by Carl): the server sets it to its own version (Directory::with_vendor_version), checked by a test | Upgrade; before that, read the version from the image tag or talaan --version |
| Up to 0.5.0: a user could change their own password without the current one: in the web UI, through LDAP Modify, SCIM, or Password Modify without the old password. Anyone holding a logged-in session or a bind (a stolen cookie, an unlocked browser) could change it and lock the owner out | Fixed in 0.5.1 (talaan-core 0.4.4 and talaan-web 0.4.2; found by Franco and Louie): one rule on every path. Your own password changes only through Password Modify or the web UI, with the current password (a wrong one counts as a failed login) and an access rule that allows it (the built-in one does). LDAP Modify or SCIM of your own userPassword is refused. Your other web sessions end after a change. An administrator's reset of someone else's password is unchanged, and recorded with who did it | Upgrade; before that, keep web sessions short and log out on shared computers |
| Up to 0.5.0: a bind to a missing account answered faster than one with a wrong password, so timing showed which accounts exist | Fixed in 0.5.1 (talaan-core 0.4.4; found by Patrick): every bind costs one password check | Upgrade |
| Any logged-in user can search the whole tree in one request, and paged searches re-run it for every page; many logins at once could exhaust memory (19 MiB per password check) | Mitigation available in 0.5.1 (talaan-core 0.4.4; found by Patrick): at most 4 password checks at once with a short queue ("busy" past it), always on; search limits for everyone but the admin and [limits] exempt, opt-in in 0.5.1. Planned for 0.6.0: search limits on by default. Planned for 0.7.0: a paging cursor, so a page doesn't re-run the search; the time limit checked during the store scan too | Turn the search limits on ([limits] max_search_entries = 5000, max_paged_entries = 50000, search_time_limit_ms = 10000) with sync accounts in exempt |
A snapshot (the whole event log) travels in one message: a member accepts up to [cluster] max_message_mib (64 MiB from 0.5.1; before, 2 MB, so a late member never caught up) and holds about three times it in memory while installing it | Planned for 0.7.0: streamed (chunked) snapshots | Give members 512Mi once the log nears 64 MiB; above, raise max_message_mib and the memory on every member (how) |
| Rotating the cluster secret pauses writes for about 15 to 20 s (one shared secret, no overlap); the cluster secret is worth the admin password | Planned for 0.7.0: talaan cluster rotate with two secrets for a while, and per-member certificates (mutual TLS) replacing the shared secret, with the leader checking that a forwarding peer is a member | The rolling restart in Rotating the cluster secret; keep the Raft port inside the cluster's network |
| API gateways: a bare group name in a policy is looked up with a subtree search on every cache miss, and a failed lookup isn't cached | Planned for 0.6.0: cache name → DN briefly, cleared when groups change | Name groups by DN in policies |
| API gateways: anyone who may create groups can make a bare-name policy match nobody (two groups with that name), so it fails closed for everyone: a denial of service, not a way in | Planned for 0.6.0: with the cache above, warn when a name becomes ambiguous | Name groups by DN in policies |
API gateways: X-Talaan-Group-Dns separates DNs with ;, and a DN may contain an escaped \; | Planned for 0.6.0: a JSON or repeated header | Split only on a ; not preceded by \; avoid ; in group names |
| API gateways: no end-to-end test against a real gateway (Traefik, nginx, Envoy) | Planned for 0.6.0: gateway cases in talaan-e2e | Check your gateway's configuration against the guide after deploying |
| Webhook signatures cover the body only, so a captured delivery can be sent again | Planned for 0.7.0: a signed timestamp (X-Talaan-Timestamp, signed with the body); receivers reject old ones | Ignore an event id you have already processed |
Up to 0.5.1: any logged-in user could read every stored password hash: a search filter on userPassword was matched before the hash was removed, so a substring filter, one character at a time, read it out (found by Patrick) | Fixed in 0.5.2 (GHSA-g898-9h32-wpw2, talaan-core 0.4.7): filters see only what the reader can read back; a filter on userPassword matches nothing, for anyone | Upgrade, then change passwords: imported legacy hashes first, then administrator entries and service accounts (upgrade notes) |
Up to 0.5.1: a user with a write-everything rule could store userPassword;x (an attribute option), which skipped hashing and was shown to every reader (found by Patrick) | Fixed in 0.5.2 (talaan-core 0.4.7): options on secrets are refused, and values stored before are hidden; the admin may delete them | Find them in an admin backup (grep -i 'userpassword;') and delete them as the admin |
Up to 0.5.x by default, any rule that writes an account's lockout or disable attributes (talaanLockedUntil, pwdAccountLockedTime; a write-everything rule does) lets that user unlock or disable it; there is no narrower "unlock" right (found by Carl) | From 0.5.2: [access] admin_only_account_state = true makes it the configured admin's alone. Planned for 0.6.0: on by default. Planned for 0.7.0: an optional delegated unlock right for a helpdesk | Turn the setting on unless you delegate unlocks; with it on, unlock as the admin (the web UI, or the API token) or wait for the lock to expire (account_lockout_seconds) |
| Up to 0.5.1: a user's history of their own entry shows every attribute, even those the access rules hide from them in search (found by Patrick) | Fixed in 0.5.2 (talaan-core 0.4.5, by Franco): own history goes through the same read rules as search; it still shows that the entry changed, when and by whom, but not what. Planned for 0.7.0: for each reader, leave out the events whose readable part didn't change, in history and in the web UI's timeline | Don't put secrets a user mustn't see in attributes of that user's own entry; the admin's view is unaffected |
Up to 0.5.1: the container image and the systemd unit set TALAAN_DATA_DIR=/var/lib/talaan, and the environment wins over the config file, so a data_dir set only in talaan.toml is ignored. On a read-only root filesystem, start-up then fails with "Permission denied" and no path (found by Mia) | Planned for 0.6.0: the image and the unit set a default instead (TALAAN_DEFAULT_DATA_DIR), so the order is TALAAN_DATA_DIR, then data_dir in the file, then that default, then ./data; start-up errors name the path | Set the directory with TALAAN_DATA_DIR, or mount the data volume at /var/lib/talaan. The chart and the default unit already use /var/lib/talaan and are unaffected |
Up to 0.5.1: a talaan backup -o FILE that fails (for example, it can't connect) leaves an empty FILE, and the retry refuses it with "File exists" (found by Mia) | Planned for 0.6.0: write FILE.part and rename it to FILE only when the backup is complete | Before retrying, delete the empty file. A backup job should check the exit code, not only that the file exists |
No password-quality policy (length, history) and no ppolicy controls; the Argon2id cost is fixed at the OWASP minimum (m=19456,t=2,p=1, 25 ms per check on our bench host) | Planned for 0.6.0: rules checked when a password is set, through LDAP, SCIM and Password Modify; a configurable Argon2id cost in [security] (the OWASP minimum is the floor, stronger only), existing hashes re-hashed at the next login, and a metric for it | Enforce it in the tool that sets passwords (Keycloak has its own) |
| Several writable masters at once | Not planned: two writers can accept conflicting changes, and one ordered log is what makes history exact. Raft gives automatic failover with one writer at a time | Writes go to the primary (replicas send a referral) |
| Forests, trusts, Group Policy | Do not fit an LDAP server. Why | Active Directory or Samba AD for Windows |
Roadmap
| Version | Planned |
|---|---|
| 0.5.0 | Raft on its own TLS port (HTTPS in a cluster), writes on any member (forwarding), the web UI's change numbers |
| 0.5.1 (security) | your own password needs the current one on every path; bind timing; search limits (opt-in); a bounded password-check queue; a session key of at least 16 characters; vendorVersion gives the server's version; chart 0.6.1 refuses a cluster whose Raft would run in plain HTTP |
| 0.6.0 | an optional modern web UI (talaan-web-tailwind, chart web.ui) beside the classic one; search limits on by default; binds counted by transport (plain, StartTLS, LDAPS); password-quality policy; a configurable Argon2id cost (stronger only, re-hashed at login); mutual TLS between members; the 0.4 Raft layout refused |
| 0.7.0 | compaction for clusters (the leader proposes "compact before T" in the log, every member applies it at the same point); new pods join the cluster when replicaCount grows (opt-in); per-attribute matching rules from the schema; streamed snapshots; talaan cluster rotate and per-member certificates replacing the shared cluster secret; a paging cursor; signed webhook timestamps |
| Later | a Kubernetes operator |
Follow progress on GitHub.
Where to get Talaan
| Channel | What | Status |
|---|---|---|
| GitHub Container Registry | ghcr.io/talaan-dev/talaan (amd64, arm64, signed, with SBOM and provenance) | ✅ available |
| GitHub Container Registry (Helm) | oci://ghcr.io/talaan-dev/charts/talaan | ✅ available |
| GitHub source | github.com/talaan-dev | ✅ available |
| GitHub Releases | binaries for Linux (full and LDAP-only), Windows, macOS (Apple silicon and Intel), systemd unit, example config, SHA256SUMS | ✅ |
| GitHub Releases (migration tool) | talaan-migrate for Linux, Windows and macOS, with SHA256SUMS | ✅ |
| Cargo (git) | talaan-core = { git = "https://github.com/talaan-dev/talaan-core", tag = "v0.4.8" } | ✅ available |
| crates.io | cargo add talaan-core, cargo install talaan, cargo install talaan-migrate (every talaan-* crate) | ✅ available |
| Docker Hub | docker.io/aice0927/talaan (same images as GHCR) | ✅ available |
| Artifact Hub | talaan Helm chart listing | ✅ listed |
| Quay.io | quay.io/talaan/talaan | 🗓 planned |
| Docs | talaan-dev.github.io/docs | ✅ |
Image tags
| Tag | Meaning |
|---|---|
0.5.3, 0.5 | the latest release (0.2.0 and older stay available) |
edge | the latest build of main |
sha-<commit> | one exact build |
Verify what you download
The images are signed with Sigstore (keyless, from GitHub Actions):
cosign verify ghcr.io/talaan-dev/talaan:0.5.3 \
--certificate-identity-regexp 'https://github.com/talaan-dev/talaan/.github/workflows/ci.yml@.*' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
Release binaries come with SHA256SUMS:
sha256sum -c SHA256SUMS --ignore-missing
On a host (binary + systemd)
For a VM or bare-metal Linux server (x86-64, glibc).
1. Get the binary
Download it from GitHub Releases:
talaan-linux-x86_64 (all modules) or talaan-minimal-linux-x86_64 (LDAP and LDAPS only).
VERSION=v0.5.3
base=https://github.com/talaan-dev/talaan/releases/download/$VERSION
curl -LO $base/talaan-linux-x86_64 -LO $base/SHA256SUMS -LO $base/talaan.service -LO $base/talaan.toml
sha256sum -c SHA256SUMS --ignore-missing
sudo install -m 0755 talaan-linux-x86_64 /usr/local/bin/talaan
talaan --version
2. Configure
sudo install -d -m 0755 /etc/talaan
sudo install -m 0644 talaan.toml /etc/talaan/talaan.toml
sudo sh -c 'umask 077; printf %s "choose-a-long-admin-passphrase" > /etc/talaan/admin-password'
sudo $EDITOR /etc/talaan/talaan.toml # set suffix = "dc=yourcompany,dc=com"
talaan -c /etc/talaan/talaan.toml config show
3. Run as a service
sudo install -m 0644 talaan.service /etc/systemd/system/talaan.service
sudo systemctl daemon-reload
sudo systemctl enable --now talaan
systemctl status talaan
journalctl -u talaan -f
The unit runs Talaan as a throwaway system user (DynamicUser), keeps data in
/var/lib/talaan, hands the password over with LoadCredential (never in the environment),
and sandboxes the process.
ℹ️ Note
Talaan listens on 3389 (LDAP), 3636 (LDAPS, when configured) and 8080 (HTTP). To serve the standard ports 389/636, uncomment
AmbientCapabilities=CAP_NET_BIND_SERVICEin the unit and change thelistenaddresses.
4. Check it
ldapwhoami -H ldap://localhost:3389 -D cn=admin,dc=yourcompany,dc=com -W
curl -s localhost:8080/readyz
Next: First steps.
With a container
The image is ghcr.io/talaan-dev/talaan: distroless, non-root (UID 65532), for amd64 and
arm64, signed, with an SBOM and build provenance attached.
Docker / Podman / nerdctl
docker volume create talaan
docker run -d --name talaan \
-p 3389:3389 -p 8080:8080 \
-v talaan:/var/lib/talaan \
-e TALAAN_SUFFIX=dc=example,dc=org \
-e TALAAN_ADMIN_PASSWORD='a-long-admin-passphrase' \
ghcr.io/talaan-dev/talaan:0.5.3
docker logs -f talaan
Compose
services:
talaan:
image: ghcr.io/talaan-dev/talaan:0.5.3
ports: ["3389:3389", "8080:8080"]
environment:
TALAAN_SUFFIX: dc=example,dc=org
TALAAN_ADMIN_PASSWORD_FILE: /run/secrets/talaan_admin
secrets: [talaan_admin]
volumes: ["talaan:/var/lib/talaan"]
restart: unless-stopped
secrets:
talaan_admin:
file: ./admin-password.txt
volumes:
talaan: {}
The image sets TALAAN_DATA_DIR=/var/lib/talaan, and environment variables override the config
file, so a data_dir in a mounted talaan.toml is ignored: always mount the data volume at
/var/lib/talaan.
Settings
Everything is set with environment variables (TALAAN_*); see
Configuration. Prefer TALAAN_ADMIN_PASSWORD_FILE with a
secret over a plain variable.
LDAPS
Mount a certificate and key, and add:
-p 3636:3636 -v ./tls:/etc/talaan/tls:ro \
-e TALAAN_LDAPS_LISTEN=0.0.0.0:3636 \
-e TALAAN_TLS_CERT=/etc/talaan/tls/tls.crt -e TALAAN_TLS_KEY=/etc/talaan/tls/tls.key
A smaller image
Build with only the modules you need:
git clone https://github.com/talaan-dev/talaan && cd talaan
docker build --build-arg FEATURES="ldaps,metrics" -t talaan:slim .
On Kubernetes (Helm)
The chart is published as an OCI artifact: oci://ghcr.io/talaan-dev/charts/talaan
(source).
1. Create the secret
kubectl create namespace talaan
kubectl -n talaan create secret generic talaan \
--from-literal=admin-password='a-long-admin-passphrase' \
--from-literal=api-token="$(openssl rand -hex 32)"
2. Install
helm install talaan oci://ghcr.io/talaan-dev/charts/talaan -n talaan --version 0.6.2 \
--set suffix='dc=example\,dc=org'
kubectl -n talaan rollout status statefulset/talaan
This creates a StatefulSet with one replica and a 1 Gi volume, a Service (LDAP 389, HTTP
8080), and probes on /livez and /readyz. The pod runs as non-root with a read-only root
filesystem and no capabilities.
⚠️ Warning
Helm's
--setsplits values at commas: write--set suffix='dc=example\,dc=org', or putsuffixin a values file. The chart refuses to install a suffix that was split.
3. Connect
kubectl -n talaan port-forward svc/talaan 3389:389 8080:8080
ldapwhoami -H ldap://localhost:3389 -D cn=admin,dc=example,dc=org -W
Monitoring with kube-prometheus-stack
One install gives you scraping, the Grafana dashboard and alerts.
Set release to the name of your kube-prometheus-stack release:
helm upgrade talaan oci://ghcr.io/talaan-dev/charts/talaan -n talaan --version 0.6.2 --reuse-values \
--set serviceMonitor.enabled=true --set serviceMonitor.labels.release=kps \
--set prometheusRule.enabled=true --set prometheusRule.labels.release=kps \
--set grafanaDashboard.enabled=true
--reuse-values keeps the values of the chart the release runs now, so use it on a release already at
0.6.2; to move to a newer chart, follow its upgrade notes or pass your values with -f values.yaml.
Common values
| Value | Default | Meaning |
|---|---|---|
suffix | dc=example,dc=org | base DN |
existingSecret | talaan | secret with admin-password and optional api-token |
modules.api, .scim, .metrics, .webhooks, .otlp | on, on, on, on, off | switch modules |
otlpEndpoint | http://otel-collector.observability:4318 | used when modules.otlp is on |
ldaps.enabled, ldaps.tlsSecret | off | LDAPS with a kubernetes.io/tls secret (e.g. from cert-manager) |
persistence.size, .storageClass | 1Gi | data volume |
serviceMonitor.enabled, .labels | off | Prometheus Operator scraping |
prometheusRule.enabled, .labels | off | alert rules |
grafanaDashboard.enabled, .labels | off, grafana_dashboard: "1" | dashboard for the Grafana sidecar |
webhooks | [] | - url: ... with optional secretKey |
replicaCount | 1 | more than 1: pod 0 is the primary, the rest are read replicas (needs api-token in the secret) |
additionalSuffixes | [] | more naming contexts |
security.* | lockout on, TLS optional | login protection |
limits.* | no rate limit | per-IP rate limit and connection caps |
acl.keepDefaultRules, acl.rules | true, [] | access rules |
See all values with helm show values oci://ghcr.io/talaan-dev/charts/talaan.
ℹ️ Note
With
replicaCountabove 1, send writes to thetalaan-primaryService; reads and logins can usetalaan. Failover is manual in v0.2; protect the primary with backups.
From source
Needs Rust 1.88 or newer and a C compiler (build-essential on Debian/Ubuntu).
git clone https://github.com/talaan-dev/talaan
cd talaan
cargo build --release # all modules
cargo build --release --no-default-features --features ldaps # LDAP and LDAPS only
./target/release/talaan --version
The modules (talaan-core, talaan-ldap, ...) are fetched from their GitHub repositories at
the tags listed in Cargo.toml.
Working on a module and the server together
Clone the module next to talaan and point Cargo at it in talaan/.cargo/config.toml
(do not commit this file):
[patch."https://github.com/talaan-dev/talaan-core"]
talaan-core = { path = "../talaan-core" }
Every module must agree on the same talaan-core tag; otherwise Cargo builds two copies
and the types will not match.
First steps
The examples use the suffix dc=example,dc=org and the OpenLDAP client tools
(ldap-utils on Debian/Ubuntu, openldap-clients on Fedora/RHEL).
What you get on first start
Talaan creates the base entry and two containers:
dc=example,dc=org
├── ou=people users go here
└── ou=groups groups go here
The administrator is cn=admin,dc=example,dc=org, with the password you configured. It is
not stored as an entry, like OpenLDAP's root DN.
Add a user and a group (LDAP)
cat > juan.ldif <<'EOF'
dn: uid=juan,ou=people,dc=example,dc=org
objectClass: inetOrgPerson
cn: Juan Dela Cruz
sn: Dela Cruz
mail: juan@example.org
userPassword: juan-initial-password
dn: cn=engineering,ou=groups,dc=example,dc=org
objectClass: groupOfNames
cn: engineering
member: uid=juan,ou=people,dc=example,dc=org
EOF
ldapadd -H ldap://localhost:3389 -D cn=admin,dc=example,dc=org -W -f juan.ldif
Passwords are hashed with Argon2id as they are stored, and are never returned by a search.
Find them
ldapsearch -H ldap://localhost:3389 -D cn=admin,dc=example,dc=org -W \
-b dc=example,dc=org '(&(objectClass=inetOrgPerson)(cn=juan*))' cn mail
Log in as the user
ldapwhoami -H ldap://localhost:3389 -D uid=juan,ou=people,dc=example,dc=org -W
# dn:uid=juan,ou=people,dc=example,dc=org
Let users change their own password
With ldappasswd (the Password Modify extended operation). -A asks for the current password,
which Talaan checks like a login; -S asks for the new one:
ldappasswd -H ldap://localhost:3389 -D uid=juan,ou=people,dc=example,dc=org -W -A -S
On a server with a certificate (security), add -ZZ (StartTLS) or use
ldaps://localhost:3636, so the passwords don't cross the network in clear.
From 0.5.1 a user can't change their own password with a plain modify (ldapmodify with
replace: userPassword, or SCIM): Talaan refuses it, because it can't check the current password
that way. An administrator resets someone else's password without theirs:
ldappasswd -H ldap://localhost:3389 -D cn=admin,dc=example,dc=org -W -S uid=juan,ou=people,dc=example,dc=org
The same, over SCIM
With an API token (api_token / TALAAN_API_TOKEN), or HTTP Basic as admin:
curl -s -u admin:'a-long-admin-passphrase' -H 'content-type: application/scim+json' \
-d '{"userName":"maria","name":{"givenName":"Maria","familyName":"Clara"},
"emails":[{"value":"maria@example.org"}],"password":"maria-initial-password"}' \
localhost:8080/scim/v2/Users
Maria can now log in over LDAP as uid=maria,ou=people,dc=example,dc=org.
Point an application at Talaan
Most applications ask for the same few settings:
| Setting | Value |
|---|---|
| Server | ldap://talaan:3389 (or ldaps://talaan:3636) |
| Bind DN | a service account, or cn=admin,dc=example,dc=org |
| Base DN for users | ou=people,dc=example,dc=org |
| User filter | (uid=%s) or (&(objectClass=inetOrgPerson)(uid=%s)) |
| Group base | ou=groups,dc=example,dc=org, membership attribute member |
Time travel and history
Talaan never overwrites. Every change is appended to the log with a sequence number
(seq), the time, and the actor who made it. That gives you three tools.
1. Search the past
Attach the as-of control to any search. Its value is a log sequence number (42) or an
RFC 3339 time (2026-11-29T10:00:00Z).
ldapsearch
ldapsearch -H ldap://localhost:3389 -D cn=admin,dc=example,dc=org -W -b dc=example,dc=org \
-e "2.25.203361157072571637504597907948600948491=$(printf %s 2026-11-29T10:00:00Z | base64)" \
'(uid=juan)' mail
-e OID=value is OpenLDAP's syntax for sending any control. Its ldapsearch base64-decodes
the value, so encode the time (or log position) with base64 as above.
HTTP
curl -s -u admin:"$PW" \
'localhost:8080/api/v1/search?filter=(uid=juan)&attrs=mail&asOf=2026-11-29T10:00:00Z'
Rust (ldap3)
#![allow(unused)] fn main() { use ldap3::controls::RawControl; let ctrl = RawControl { ctype: "2.25.203361157072571637504597907948600948491".into(), crit: true, val: Some(b"2026-11-29T10:00:00Z".to_vec()), }; let (entries, _) = ldap.with_controls(ctrl) .search("dc=example,dc=org", Scope::Subtree, "(uid=juan)", vec!["mail"]) .await?.success()?; }
The root DSE lists the control under supportedControl, so clients can detect it.
2. An entry's story
curl -s -u admin:"$PW" 'localhost:8080/api/v1/history?dn=uid=juan,ou=people,dc=example,dc=org' | jq
[
{ "seq": 4, "at_ms": 1764410000000, "actor": "cn=admin,dc=example,dc=org", "kind": "added", "entry": { "...": "..." } },
{ "seq": 9, "at_ms": 1764413600000, "actor": "cn=api", "kind": "modified", "entry": { "...": "..." } }
]
Each event carries the full entry after the change, without the password hash. Anyone who may read an entry may read its history, with every value it ever had: under the default access rules, that is every logged-in user, for every entry. Users may also read their own entry's history, and the admin may read anyone's. Old values stay until you erase them (keeping history, and erasing it), so decide what to store with that in mind.
From 0.6.0, each event shows only the attributes the reader may read, as search does. Up to 0.5.1, a user's own history also showed attributes the rules hide from them. A user still sees every change to their own entry, with when and by whom, even a change that touched only hidden attributes (where we are).
3. The change feed
Every change, in order, for other systems to follow:
curl -s -u admin:"$PW" 'localhost:8080/api/v1/events?after=0&limit=100'
Store the last seq you processed and ask for after=<that seq> next time. Unlike webhooks,
the feed never misses anything.
Keeping history, and erasing it
History keeps every value an entry ever had, deleted entries included, and anyone who may read an entry today may read its past values too. To erase personal data for good:
- Remove the history before a point with
talaan compacton a single server (backup and restore). A deleted entry's values go; a one-line delete record stays (its DN, who deleted it and when), so replicas that were behind still learn it is gone. A DN such asuid=juan,...can itself be personal data. - Delete or let expire the backups made before that point: they still hold the old values.
In a cluster, compaction comes in 0.7.0 (until then: restore into a single server and start a new cluster from it).
How fast is it?
A time-travel search uses the historical index (since v0.2), so it does not slow down as the directory grows: on 0.5.0, about 9,800 searches/s with 1,000 or 10,000 users. See Speed tests.
Backup and restore
A Talaan backup is the change log: one JSON line per change, oldest first. Because the log holds every change, a single backup can restore the directory to any moment it covers.
⚠️ Warning
Backups contain password hashes (Argon2id), so restored users can still log in. Talaan writes backup files with mode
0600; keep them as carefully as the server itself.
Back up
Online (server running)
talaan backup -o talaan-$(date +%F).jsonl --url http://talaan:8080 -u admin -p "$ADMIN_PW"
# or with the API token:
TALAAN_API_TOKEN="$TOKEN" talaan backup -o backup.jsonl --url http://talaan:8080
Uses GET /api/v1/backup (admin only), page by page.
From 0.3.0 you can save the server and credentials once, in ~/.config/talaan/credentials.toml
(mode 0600), and leave out --url, -u and -p:
talaan login http://talaan:8080 -u admin -p "$ADMIN_PW" # checks the login, then saves it
talaan login http://talaan:8080 --token "$TOKEN" # or save the API token
talaan backup -o backup.jsonl # uses the saved login
talaan logout
With a saved login, talaan backup --offline still reads the local data directory.
Offline (server stopped)
systemctl stop talaan
talaan -c /etc/talaan/talaan.toml backup -o backup.jsonl
systemctl start talaan
Reads the data directory directly. It refuses while a server holds the data file.
Kubernetes CronJob
apiVersion: batch/v1
kind: CronJob
metadata: { name: talaan-backup, namespace: talaan }
spec:
schedule: "15 2 * * *"
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: backup
image: ghcr.io/talaan-dev/talaan:0.5.3
args: ["backup", "-o", "/backup/", "--url", "http://talaan:8080"]
env:
- name: TALAAN_API_TOKEN
valueFrom: { secretKeyRef: { name: talaan, key: api-token } }
volumeMounts: [{ name: backup, mountPath: /backup }]
volumes:
- name: backup
persistentVolumeClaim: { claimName: talaan-backup }
When -o is a directory, each run writes a new talaan-<UTC time>.jsonl there. Copy the
files off-cluster (S3, restic, Velero) and prune old ones.
Restore
Restore always goes into an empty data directory, so a mistake can never overwrite live data:
TALAAN_DATA_DIR=/var/lib/talaan-restored talaan restore --backup-file backup.jsonl
Point-in-time restore
Stop at a sequence number or a time:
talaan restore --backup-file backup.jsonl --until 2026-11-29T09:59:00Z
talaan restore --backup-file backup.jsonl --until 4182
To find the moment, look at an entry's history, or search the past with the as-of control until the data looks right.
The server you start on the restored directory serves that moment plus any base entries it
adds at start-up (such as ou=groups, if the point you restore to comes before it). Those show up as new changes by
cn=talaan, dated when the server started.
Swap it in
systemctl stop talaan
mv /var/lib/talaan /var/lib/talaan.broken
mv /var/lib/talaan-restored /var/lib/talaan
systemctl start talaan
Compaction: dropping old history
New in 0.3.0. This removes history for good. Take a backup first.
The log keeps every change, so it only grows (about 4.8 MB per 1,000 users, plus their changes). If you do not need time travel before some date, drop that history:
systemctl stop talaan
talaan backup -o before-compact.jsonl --offline
talaan compact --before 2026-01-01T00:00:00Z --yes # or a sequence number: --before 4182
systemctl start talaan
What stays and what goes:
| After compaction | |
|---|---|
| The directory as it is now | unchanged; every search and login works as before |
| History and time travel from the cut-off on | unchanged |
| Time travel and history before the cut-off | refused: unwillingToPerform (53) over LDAP, 400 over HTTP |
| Each entry's newest change, and the delete or move that ended a removed entry | kept, so the directory can still be rebuilt from the log |
With replicas. Compact the primary while it is stopped. Replicas keep their own full history, and they keep following: a replica that was behind still learns about every delete and move, so it ends up with the same directory. A new replica, or a restore of a compacted backup, gets the compacted log and refuses time travel before the cut-off, just like the primary. To shrink a replica too, stop it and compact it the same way.
Monitoring: dashboards and alerts
Talaan exposes Prometheus metrics at GET /metrics (OpenMetrics format, metrics module).
We ship a Grafana dashboard and alert rules that use them; every query in both has been
checked with promtool against a real Prometheus.
| File | What |
|---|---|
| talaan-overview.json | Grafana dashboard, 24 panels |
| talaan-alerts.yaml | 5 Prometheus alert rules |
The dashboard
| Row | Panels | Answers |
|---|---|---|
| Overview | throughput, error ratio, search p99, open connections, entries, log position | Is it healthy right now? |
| Throughput | operations/s by type; writes/s by kind | How busy is it? Who is writing? |
| Latency | p50/p95/p99 by operation; average by operation; search latency heatmap | Is it fast? Is it getting slower? |
| Errors and security | non-success results by code; failed binds | What is failing? Is someone guessing passwords? |
| Directory and integrations | entries; connections; webhook deliveries | Is it growing? Are webhooks getting through? |
| Resources | memory and CPU (Kubernetes, from cAdvisor) | Does it need more room? |
Install it
Kubernetes (kube-prometheus-stack)
helm upgrade talaan oci://ghcr.io/talaan-dev/charts/talaan -n talaan --version 0.6.2 --reuse-values \
--set serviceMonitor.enabled=true --set serviceMonitor.labels.release=kps \
--set prometheusRule.enabled=true --set prometheusRule.labels.release=kps \
--set grafanaDashboard.enabled=true
The Grafana sidecar loads the dashboard from a ConfigMap labelled grafana_dashboard: "1".
Any Grafana
- In Grafana: Dashboards → New → Import.
- Upload
talaan-overview.json. - Pick your Prometheus data source.
Prometheus needs a scrape job for Talaan:
scrape_configs:
- job_name: talaan
static_configs:
- targets: ["talaan.example.org:8080"]
rule_files:
- /etc/prometheus/talaan-alerts.yaml
The alerts
| Alert | Fires when | Severity |
|---|---|---|
TalaanDown | Prometheus cannot scrape Talaan for 2 min | critical |
TalaanHighErrorRatio | more than 5% of operations fail for 10 min | warning |
TalaanSlowSearches | search p99 above 250 ms for 10 min | warning |
TalaanBindFailureSpike | more than 1 failed bind per second for 5 min | warning |
TalaanWebhookDeliveryFailures | webhooks fail or are dropped for 10 min | warning |
TalaanLoginLockouts | more than 10 account or address lockouts in 15 min, for 5 min | warning |
TalaanReplicaLagging | a replica is more than 100 changes behind the primary for 10 min | warning |
TalaanReplicaStale | a replica has had no successful poll of the primary for 2 min, for 5 min | critical |
TalaanPasswordCheckBusy | password checks are turned away because every slot is in use (clients get LDAP busy (51) or HTTP 429), for 5 min; needs 0.5.1 | warning |
TalaanPasswordCheckTimeouts | password checks time out while waiting for a slot, for 10 min; needs 0.5.1 | warning |
TalaanForwardedWritesFailing | a cluster member cannot reach the leader for forwarded writes, for 5 min; needs 0.5.0 | warning |
The thresholds are starting points; tune them to your traffic. An alert that needs a newer Talaan never fires on an older one: its metric is missing there.
The metrics
| Metric | Type | Labels | Meaning |
|---|---|---|---|
talaan_ldap_operations_total | counter | op, result | LDAP operations by type and result code |
talaan_ldap_operation_duration_seconds | histogram | op | time per operation (0.5 ms to 4 s buckets) |
talaan_ldap_connections | gauge | open LDAP connections | |
talaan_directory_entries | gauge | entries in the directory | |
talaan_log_head_sequence | gauge | sequence number of the newest change | |
talaan_directory_events_total | counter | op (added, modified, deleted) | committed changes, from every protocol |
talaan_webhook_deliveries_total | counter | outcome (delivered, failed, dropped) | webhook results |
talaan_forwarded_writes_total | counter | outcome (ok, stale, refused, unavailable) | writes a cluster follower sent to the leader (0.5). stale: done, but this member had not caught up within 2 s, so a read here right after may not show it yet |
talaan_throttled_total | counter | protocol, reason (rate, account_locked, ip_locked, connections; hash_busy from 0.5.1) | requests refused to protect the server (rate limits and lockout) |
talaan_password_checks_in_flight | gauge | password checks (Argon2id, 19 MiB each) running now (0.5.1) | |
talaan_password_checks_max | gauge | password checks that may run at once, [limits] max_concurrent_hashes (0.5.1) | |
talaan_password_check_waits_total | counter | password checks that waited for a free slot (0.5.1) | |
talaan_password_check_timeouts_total | counter | password checks that waited longer than [limits] hash_wait_ms for a slot (0.5.1) | |
talaan_password_check_rejected_total | counter | password checks refused as busy at once, because the queue was full (0.5.1) | |
talaan_replication_applied_sequence | gauge | last primary log position this replica applied | |
talaan_replication_lag_events | gauge | changes this replica is behind the primary | |
talaan_replication_last_success_timestamp_seconds | gauge | Unix time of this replica's last successful poll of the primary | |
talaan_replication_errors_total | counter | failed polls of the primary |
Useful queries:
# operations per second
sum by (op) (rate(talaan_ldap_operations_total[5m]))
# p99 search latency
histogram_quantile(0.99, sum by (le) (rate(talaan_ldap_operation_duration_seconds_bucket{op="search"}[5m])))
# failed logins per second
sum(rate(talaan_ldap_operations_total{op="bind",result="InvalidCredentials"}[5m]))
# share of forwarded writes a follower could not show right away (cluster)
sum(rate(talaan_forwarded_writes_total{outcome="stale"}[5m])) / sum(rate(talaan_forwarded_writes_total{outcome=~"ok|stale"}[5m]))
Traces and logs
- Traces: enable the
otlpmodule and setOTEL_EXPORTER_OTLP_ENDPOINT; spans go to any OpenTelemetry collector (Tempo, Jaeger, Honeycomb, ...). - Logs: JSON lines on stdout by default (
TALAAN_LOG_FORMAT=textfor humans), ready for Loki, Elasticsearch orjournalctl. - Health:
GET /livez(process up) andGET /readyz(storage readable).
Configuration
Talaan reads a TOML file, then lets TALAAN_* environment variables override it.
The file is found at --config, TALAAN_CONFIG, or ./talaan.toml.
talaan config init # write an example talaan.toml
talaan config show # print the effective settings, without secrets
The file
suffix = "dc=example,dc=org"
data_dir = "/var/lib/talaan"
# admin_dn = "cn=admin,dc=example,dc=org" # default: cn=admin,<suffix>
admin_password_file = "/etc/talaan/admin-password"
# api_token_file = "/etc/talaan/api-token"
log_format = "json" # json | text
[ldap]
listen = "0.0.0.0:3389"
# ldaps_listen = "0.0.0.0:3636"
# tls_cert = "/etc/talaan/tls.crt"
# tls_key = "/etc/talaan/tls.key"
# client_ca = "/etc/talaan/client-ca.crt" # 0.3.0: accept client certificates (SASL EXTERNAL)
[http]
listen = "0.0.0.0:8080"
# tls_cert = "/etc/talaan/http.crt" # 0.4.0: HTTPS on this port (web UI, API, SCIM)
# tls_key = "/etc/talaan/http.key"
[modules]
api = true
scim = true
metrics = true
webhooks = true
otlp = false
gateway = false # 0.3.0: /gateway/auth for API gateways
web = false # 0.4.0: web UI at /ui
mcp = false # 0.4.0: MCP server at /mcp
# [web]
# session_secret_file = "/etc/talaan/web-session.key" # the same on every server; 32+ characters (0.5.1: under 16 refused)
# secure_cookie = true # default: on when this server serves HTTPS
# [mcp]
# allow_writes = false
# [proxy] # 0.4.0: PROXY protocol from TCP load balancers
# trusted = ["10.0.0.0/8"] # every connection from these MUST send the header
# listeners = ["ldap"] # add "http" only on a port no probe or member uses
# header_timeout = "5s" # how long a balancer may take to send the header (security guide)
# [gateway]
# cache_ttl = "30s"
# trusted_proxies = ["10.42.0.0/16"]
# [schema]
# enforce = true # 0.3.0: required attributes and value syntax
# nested_groups = false # 0.4.0: memberOf and access rules follow groups in groups
# More naming contexts (see "Several domains")
# additional_suffixes = ["dc=branch,dc=example,dc=org"]
# [index]
# attributes = ["uid", "cn", "mail", ...] # default: Talaan's list of common attributes
[security]
require_tls_for_bind = false
account_lockout_failures = 5
account_lockout_seconds = 300
ip_lockout_failures = 20
ip_lockout_seconds = 900
failure_window_seconds = 300
[limits]
requests_per_second_per_ip = 0 # 0 = unlimited
burst = 0
max_connections = 4096
max_connections_per_ip = 0
max_search_entries = 0 # 0.5.1: per search, for anyone but the admin and `exempt`; 0 = off (recommended: 5000)
max_paged_entries = 0 # 0.5.1: a paged search in all (recommended: 50000)
search_time_limit_ms = 0 # 0.5.1: (recommended: 10000)
exempt = [] # 0.5.1: DNs or groups, e.g. ["cn=sync-accounts,ou=groups,dc=example,dc=org"]
max_concurrent_hashes = 0 # 0.5.1: password checks at once; 0 = the CPUs, at most 4
hash_wait_ms = 2000 # 0.5.1: then "busy" (LDAP 51, HTTP 429)
[replication]
role = "primary" # primary | replica | auto
# primary_url = "http://primary:8080"
# primary_ldap_url = "ldap://primary:3389" # the referral a replica gives for writes (replication guide)
# token_file = "/etc/talaan/primary-api-token"
# long_poll_seconds = 25 # 0.3.0: streaming; 0 = poll every poll_interval_ms
# [cluster] # 0.3.0: a Raft cluster with automatic failover
# id = 1 # never reused; default: the pod ordinal + 1
# secret_file = "/etc/talaan/cluster-secret" # the same on every member, 32+ characters; worth the admin password
# snapshot_every = 10000
# join = false # true: a member added later (`talaan cluster add`)
# raft_listen = "0.0.0.0:7946" # 0.5.0: Raft on its own port, over TLS
# raft_tls_cert = "/etc/talaan/raft.crt" # 0.5.0: default http.tls_cert; must name this member's raft_url host
# raft_tls_key = "/etc/talaan/raft.key"
# raft_ca_file = "/etc/talaan/raft-ca.crt" # 0.5.0: the CA members verify each other against
# raft_on_http_port = false # 0.5.0: only while moving a cluster to raft_listen
# insecure_raft = false # 0.5.0: raft_listen without TLS, local tests only
# max_message_mib = 64 # 0.5.1: the largest Raft message (a snapshot); ~3x in memory
# legacy_raft_on_http_port = false # 0.5.1: keep Raft on the plain HTTP port (0.4 layout); 0.6.0 requires it for that layout
# forward_writes = true # 0.5.0: a follower sends writes to the leader (false: referral/503)
# ordinal_ids_file = "/etc/talaan/cluster-ids/cluster-ids.toml" # 0.4.2: replacements
# [cluster.ordinal_ids] # 0.4.0: pod ordinal -> new id for a replacement
# "0" = 7
# [cluster.members] # the founding members, the same list on every member
# 1 = { raft_url = "https://t-0.t-headless.ns.svc:7946", ldap_url = "ldap://t-0.t-headless.ns.svc:3389", api_url = "https://t-0.t-headless.ns.svc:8080" }
[access]
keep_default_rules = true
admin_only_account_state = false # 0.5.2: true = only the admin (or the API token) locks, unlocks or
# disables accounts, whatever the rules say (0.6.0 default: true).
# Set it the same on every cluster member.
# [[acl]]
# subtree = "ou=people,dc=example,dc=org"
# who = "group:cn=helpdesk,ou=groups,dc=example,dc=org"
# allow = ["read", "write"]
# attributes = ["telephoneNumber"]
# [[webhooks]]
# url = "https://hooks.example.org/talaan"
# secret = "change-me"
Environment variables
| Variable | Setting |
|---|---|
TALAAN_CONFIG | config file path |
TALAAN_SUFFIX | suffix |
TALAAN_DATA_DIR | data_dir |
TALAAN_ADMIN_DN | admin_dn |
TALAAN_ADMIN_PASSWORD / _FILE | admin password, at least 12 characters |
TALAAN_API_TOKEN / _FILE | Bearer token for the API and SCIM, at least 32 characters |
TALAAN_LDAP_LISTEN, TALAAN_LDAPS_LISTEN | LDAP and LDAPS addresses |
TALAAN_TLS_CERT, TALAAN_TLS_KEY | PEM certificate chain and key for LDAPS |
TALAAN_CLIENT_CA | ldap.client_ca: CA that signs client certificates (SASL EXTERNAL) |
TALAAN_HTTP_LISTEN | HTTP address |
TALAAN_WEBHOOK_URL, TALAAN_WEBHOOK_SECRET | one webhook target |
TALAAN_LOG | log filter: info, debug, talaan=debug,warn |
TALAAN_LOG_FORMAT | json or text |
OTEL_EXPORTER_OTLP_ENDPOINT and other OTEL_* | OpenTelemetry export; setting the endpoint turns on otlp |
TALAAN_ADDITIONAL_SUFFIXES | additional_suffixes, separated by ; |
TALAAN_REQUIRE_TLS_FOR_BIND | security.require_tls_for_bind (true/false) |
TALAAN_RATE_LIMIT | limits.requests_per_second_per_ip |
TALAAN_MAX_CONNECTIONS_PER_IP | limits.max_connections_per_ip |
TALAAN_REPLICATION_ROLE, _PRIMARY_URL, _PRIMARY_LDAP_URL, _TOKEN, _TOKEN_FILE | [replication] |
TALAAN_SEED_FROM | like talaan serve --seed-from (0.5.0), but only the founder of a cluster with no Raft state yet acts on it; ignored (logged) everywhere else, so it is safe to leave set |
MIMALLOC_PURGE_DELAY=0 | return freed memory immediately: lower memory, some search speed lost |
See Security, Access control, Replication, API gateways and LDAP support for what the sections do.
Cluster: Raft on its own port (0.5.0)
With raft_listen, members talk Raft on their own port, over TLS, so the HTTP port can serve
HTTPS. Without it, Raft runs in plain HTTP on the HTTP port as in 0.4. That layout still works and
warns at start, but it is deprecated: it is refused from 0.6.0 unless
legacy_raft_on_http_port = true. Clusters outside the chart get no other protection: move to
raft_listen with TLS now (how).
| Setting | Meaning |
|---|---|
raft_listen | address of the Raft port, e.g. 0.0.0.0:7946. Members only: no PROXY protocol, no rate limits; the cluster secret is the Bearer token |
raft_tls_cert, raft_tls_key | PEM certificate and key it serves. Default: [http] tls_cert/tls_key. Separate so a running cluster can move to TLS before its HTTP port turns HTTPS |
raft_ca_file | CA (PEM, may hold several) that members' certificates must chain to. Unset: the public web roots |
raft_on_http_port | serve Raft on the HTTP port too, only while moving a running cluster |
insecure_raft | raft_listen without TLS, for local tests: Raft carries directory data, password hashes and the cluster secret, so it warns at start |
max_message_mib | 0.5.1: the largest Raft message a member accepts, in MiB: 1 to 4096 (default 64). A snapshot is the whole event log in one message, held about three times in memory while installed; a larger one is refused and the leader logs an error naming this setting (snapshots and memory) |
legacy_raft_on_http_port | 0.5.1: acknowledges a cluster still on the 0.4 layout (no raft_listen, plain HTTP) and silences its start-up warning. 0.6.0 refuses that layout without it. Not combinable with raft_listen (use raft_on_http_port while moving) |
forward_writes | default true: a write that reaches a follower is sent to the leader over the Raft port and answered from there; the follower waits up to 2 s until it has the write, so a read back from it shows it (if not, the write still succeeded and talaan_forwarded_writes_total{outcome="stale"} counts it). false: a referral (LDAP) or 503 (HTTP), as in 0.4 |
Rules checked at start:
- Every founding member's
raft_urlmatches its port:https://onraft_listen(http://only withinsecure_raft), neverhttp://on an HTTPS HTTP port, and not the HTTP port once a move is done. - The certificate must name this member's own
raft_urlhost. Otherwise every peer would fail the handshake, so Talaan refuses to start and names the missing host. On Kubernetes that means the headless name of every pod: with cert-manager,dnsNames: ["*.<release>-headless.<namespace>.svc"]. talaan cluster ...talks to the member's ownraft_urland trustsraft_ca_file.
Limits (0.5.1)
| Setting | Meaning |
|---|---|
max_search_entries | entries one search returns to anyone but the admin and exempt; 0 = unlimited, the default in 0.5.x (0.6.0 turns it on). Recommended: 5000. Past it, LDAP answers with the first ones and sizeLimitExceeded; the HTTP API returns the entries found with the header X-Talaan-Search-Limit: size; a SCIM list is refused with 400 tooMany (RFC 7644), so a provisioning tool never syncs a partial directory |
max_paged_entries | the same for a paged search (and SCIM lists), in all. A SCIM list over it gets 400 (scimType: tooMany); narrow the filter, or put the client's account in exempt. Recommended: 50000 |
search_time_limit_ms | how long one search may run. Recommended: 10000. Past it, LDAP answers with what was found and timeLimitExceeded (HTTP: X-Talaan-Search-Limit: time) |
exempt | DNs, and groups whose members, the search limits don't apply to: sync accounts such as Keycloak, Authentik or SSSD enumerating users. Limits only: access rules still apply, so keep an exempt group admin-managed. Each must be a DN, or the server refuses to start |
max_concurrent_hashes | password checks (Argon2id, 19 MiB each) running at once; 0 = the CPUs, at most 4. Size memory as about 35 MiB plus 19 MiB times this |
hash_wait_ms | how long a check waits for a free slot (default 2000); up to 64 wait, the rest and those that time out get "busy" (LDAP 51, HTTP 429) |
Secrets
Prefer files over variables: admin_password_file / TALAAN_ADMIN_PASSWORD_FILE and
api_token_file / TALAAN_API_TOKEN_FILE. Kubernetes secrets, Docker secrets and systemd
LoadCredential all hand secrets over as files. Talaan refuses to start with an admin
password under 12 characters or an API token under 32.
[web] session_secret_filesigns web logins. It is read as bytes and trimmed. From 0.5.1, a key under 16 characters (empty included) refuses to start, and 16 to 31 characters log a warning; 0.6.0 refuses keys under 32. Useopenssl rand -base64 48. Unset: a random key per start (single server only: logins end at restart).[cluster] secret_fileis worth the admin password: whoever holds it can commit any change through Raft. Keep it in a secret store, give it only to members, and rotate it if it may have leaked. Per-member certificates replacing it are planned for 0.7.0.
Webhooks
Each change is POSTed as a CloudEvents 1.0 JSON event:
{
"specversion": "1.0", "type": "talaan.entry.modified", "source": "talaan://talaan-0",
"id": "5f0c...", "time": "2026-11-29T10:15:02.114Z", "subject": "uid=juan,ou=people,dc=example,dc=org",
"talaanseq": 42,
"data": { "seq": 42, "actor": "cn=admin,dc=example,dc=org", "dn": "...", "entry": { "...": "..." } }
}
With a secret, each request carries X-Talaan-Signature: sha256=<hex>, the HMAC-SHA256 of
the body. Check it before trusting the event. Each delivery gets up to 4 attempts, with backoff;
to never miss a change, also read the change feed.
The signature covers the body only, with no timestamp, so a captured delivery can be sent again.
Receivers should ignore an event id they have already processed (it is stable for a change).
A signed timestamp is planned for 0.7.0.
Access control
Who may read and change what is decided by access rules. A rule says who may do what in which subtree, optionally only for some attributes.
[[acl]]
subtree = "ou=people,dc=example,dc=org"
who = "group:cn=helpdesk,ou=groups,dc=example,dc=org"
allow = ["read", "write"]
attributes = ["telephoneNumber", "mail"] # omit for all attributes
The parts of a rule
| Field | Values |
|---|---|
subtree | a DN; the rule covers it and everything below. "" covers everything. |
who | anyone, anonymous, users (anyone logged in), self (the entry itself), dn:<dn>, group:<dn> (members via member, uniqueMember or memberUid) |
allow | read (search, compare, history), write (change attributes), add (create entries), delete (delete and rename) |
attributes | limit read and write to these attributes |
How rules combine
- Allow only. An action is allowed when any rule allows it. There are no deny rules, so the result never depends on rule order.
- The admin (
cn=admin,<suffix>, and the API token) is never limited by rules. - Built-in rules apply unless you set
access.keep_default_rules = false: logged-in users may read everything, and every user may change their own password. - Secrets are never readable.
userPasswordis never returned, whatever the rules say. - Filters see only what you may read. A search cannot probe hidden values: if you may
read only
cn, a filter onmailmatches nothing. A filter onuserPasswordmatches nothing for anyone (from 0.5.2). - Lockout can be the admin's. With
[access] admin_only_account_state = true(from 0.5.2; the default from 0.6.0), no rule grantstalaanLockedUntilorpwdAccountLockedTime: only the configured admin (or the API token) locks, unlocks or disables an account. Off, a rule that writes them lets its users unlock and disable. - Renaming needs
deletewhere the entry is andaddwhere it goes.
Recipes
Lock reading down to an application account
[access]
keep_default_rules = false
[[acl]]
subtree = "dc=example,dc=org"
who = "dn:cn=gitea,ou=services,dc=example,dc=org"
allow = ["read"]
[[acl]]
subtree = "dc=example,dc=org"
who = "self"
allow = ["read", "write"]
attributes = ["userPassword", "telephoneNumber"]
A public phone book (no login needed, names and numbers only)
[[acl]]
subtree = "ou=people,dc=example,dc=org"
who = "anonymous"
allow = ["read"]
attributes = ["cn", "telephoneNumber", "mail"]
Delegated administration of a branch: see Several domains.
On Kubernetes, put rules under acl.rules in the Helm values.
Security: TLS, login protection, throttling
Encryption
| Option | How |
|---|---|
| LDAPS (TLS from the first byte, port 3636) | set ldap.tls_cert, ldap.tls_key, ldap.ldaps_listen |
| StartTLS (upgrade a plain connection, port 3389) | available whenever tls_cert and tls_key are set; ldapsearch -ZZ ... |
| Require TLS for passwords | security.require_tls_for_bind = true: password binds on plain connections get confidentialityRequired (13) |
TLS uses rustls (no OpenSSL). Certificates are PEM files; on Kubernetes use a
kubernetes.io/tls secret, for example from cert-manager.
Ways to log in
| Method | Notes |
|---|---|
| Simple bind (DN + password) | the standard; use TLS |
| SASL PLAIN (RFC 4616) | over TLS only; the login may be a DN (dn:uid=...), u:name, or a plain name |
| SASL EXTERNAL (RFC 4422), 0.3.0 | a TLS client certificate signed by ldap.client_ca; the certificate's UID (or else its CN) is the login name. No password crosses the wire |
| HTTP Basic | admin, a uid, or a full DN |
| HTTP Bearer | the API token; acts as the admin |
Passwords are stored as Argon2id hashes, verified at most one per CPU at a time so that a flood of logins cannot exhaust memory.
Client certificates (SASL EXTERNAL):
[ldap]
tls_cert = "/etc/talaan/tls.crt"
tls_key = "/etc/talaan/tls.key"
client_ca = "/etc/talaan/client-ca.crt" # the CA that signs your users' or services' certificates
LDAPTLS_CERT=ana.crt LDAPTLS_KEY=ana.key ldapwhoami -H ldaps://talaan:3636 -Y EXTERNAL
Clients without a certificate can still connect and use passwords. A certificate only logs in an account that exists and is not disabled or locked.
Disabled accounts (pwdAccountLockedTime set, or active: false over SCIM) cannot log
in; they fail exactly like a wrong password, so attackers cannot tell them apart.
Login lockout
Repeated failed logins lock the account, and separately the client address:
[security]
account_lockout_failures = 5 # failures within the window that lock an account (0 = off)
account_lockout_seconds = 300
ip_lockout_failures = 20 # failures from one address, across accounts (0 = off)
ip_lockout_seconds = 900
failure_window_seconds = 300
While locked, logins are refused with busy (51) over LDAP and 429 with Retry-After
over HTTP, even with the right password. A successful login clears the account's count.
⚠️ Warning
Account lockout lets anyone who knows a user name lock that user out for a few minutes. Keep
account_lockout_secondsshort; the per-address lock stops password spraying without that side effect.
Throttling
[limits]
requests_per_second_per_ip = 50 # LDAP operations and HTTP requests together (0 = off)
burst = 100 # short bursts above the rate (default: twice the rate)
max_connections = 4096 # open LDAP connections in total (0 = unlimited)
max_connections_per_ip = 64 # per client address (0 = unlimited)
Over the rate, LDAP operations get busy (51) and HTTP requests get 429 Too Many Requests
with Retry-After. Over a connection cap, the connection receives a Notice of Disconnection
and is closed.
Everything refused is counted in talaan_throttled_total{protocol,reason} and shown in the
dashboard's Protection row; TalaanLoginLockouts alerts on a wave of lockouts. From 0.5.1,
TalaanPasswordCheckBusy and TalaanPasswordCheckTimeouts fire when password checks are turned
away or time out (alerts).
ℹ️ Note
Behind a load balancer or proxy, every client may appear to come from the proxy's address, so one client's failures lock everyone out. Give Talaan the real addresses instead: Behind a TCP load balancer. With replicas, account lockouts apply on every server (0.3.0); per-address locks and rate limits are counted by each server for itself.
Behind a TCP load balancer (PROXY protocol)
New in 0.4.0. Built by talaan-proxy.
A TCP load balancer (HAProxy, nginx stream, Traefik TCP, AWS NLB, …) hides the client: every
connection seems to come from the balancer, so the per-address lockout, rate limit and connection
caps above would hit every client at once. With the
PROXY protocol (v1 text or v2
binary) the balancer writes the real client address at the start of each connection, and Talaan
uses it for lockout and throttling.
[proxy]
trusted = ["10.0.0.10", "10.0.1.0/24"] # your balancers (IPs or CIDRs)
# header_timeout = "5s" # how long a balancer may take to send the header
# listeners = ["ldap"] # LDAP and LDAPS (the default); see the warning for "http"
- Only
trustedpeers may state an address. Everyone else is taken at their TCP address, and a header they send is not believed, so clients can't fake their address. - A trusted peer must send the header. A connection from a balancer without one is refused, so
a missing
send-proxyshows at once instead of every client quietly sharing one address. ALOCALheader (the balancer's own health check) is accepted as the balancer itself. - The header comes before TLS: with LDAPS and StartTLS the balancer passes TLS through and Talaan terminates it.
- Until
trustedis set, nothing changes.
HAProxy (send-proxy-v2 on every server line; check-send-proxy makes its health checks send
the header too):
frontend ldap
mode tcp
bind :389
default_backend talaan
backend talaan
mode tcp
server t1 10.0.0.21:3389 send-proxy-v2 check check-send-proxy
server t2 10.0.0.22:3389 send-proxy-v2 check check-send-proxy
nginx (stream module):
stream {
upstream talaan { server 10.0.0.21:3389; server 10.0.0.22:3389; }
server { listen 389; proxy_pass talaan; proxy_protocol on; }
}
⚠️ Warning
Add
"http"tolistenersonly for an HTTP port that nothing else reaches from a trusted address. The HTTP port also carries the health probes and, in a cluster, Raft between members; none of them send a header, so iftrustedcovers their addresses they are refused. In a cluster, Talaan logs a warning whenhttpis listed. For HTTP, put an ingress or reverse proxy in front instead (the gateway endpoint readsX-Forwarded-Forfrom[gateway] trusted_proxies).
With Helm: --set-json 'proxy.trusted=["10.0.0.10"]' (and proxy.headerTimeout).
On Kubernetes with MetalLB: no PROXY needed
The chart's lanService (a LoadBalancer Service for clients outside the cluster) uses
externalTrafficPolicy: Local by default, so traffic goes straight to a node that runs Talaan and
keeps the client's source address. Lockout then works without the PROXY protocol:
lanService:
enabled: true
annotations:
metallb.universe.tf/loadBalancerIPs: 10.20.20.230
externalTrafficPolicy: Local
ports: [ldap]
Use [proxy] when another load balancer (HAProxy, a cloud NLB) sits in front instead.
Replication: more than one server
Since v0.2 Talaan runs as one primary and any number of read replicas.
writes reads (LDAP, HTTP, SCIM)
clients ────────────────▶ primary ◀──────── clients
│ change log
┌─────────────┼──────────────┐
▼ ▼ ▼
replica 1 replica 2 replica N ◀── reads
- The primary is the only server that accepts changes.
- Each replica copies the primary's change log, event by event, and serves reads: searches, logins (binds), compare, history and time travel.
- A write sent to a replica gets an LDAP referral (result code 10) naming the primary,
or
503over HTTP. Most LDAP clients follow referrals automatically.
Why it works so simply
The change log is Talaan's database. A replica that applies the primary's log in the same order ends up with exactly the same data, including the history, so time travel on a replica gives the same answers as on the primary.
Before applying anything, a replica checks that its newest event equals the primary's event at the same position. If the logs ever differ (for example, a replica pointed at the wrong primary), it stops and logs why, instead of serving wrong data.
Set it up
On Kubernetes
Set replicaCount. Pod 0 becomes the primary and the other pods become replicas; the chart
wires them together. The secret needs an api-token, which replicas use to read the
primary's log.
helm upgrade talaan oci://ghcr.io/talaan-dev/charts/talaan -n talaan --version 0.6.2 \
--reuse-values --set replicaCount=3
--reuse-values keeps the values of the chart the release runs now, so use it on a release
already at 0.6.2. Moving to a newer chart this way would skip its new defaults: follow
its upgrade notes, or pass your values with -f values.yaml.
The chart creates three Services:
| Service | Points at | Use for |
|---|---|---|
talaan | all pods | reads and logins (load balanced) |
talaan-primary | pod 0 | writes (admin tools, Keycloak in writable mode, SCIM) |
talaan-headless | each pod by name | replication traffic |
Anywhere else
On the replica, in talaan.toml:
[replication]
role = "replica"
primary_url = "http://primary.example.org:8080" # the primary's HTTP address
primary_ldap_url = "ldap://primary.example.org:3389" # sent to clients as the referral
token_file = "/etc/talaan/primary-api-token" # the primary's api_token
poll_interval_ms = 1000 # retry pause after an error
long_poll_seconds = 25 # 0.3.0: wait on the primary for changes
Start the replica with an empty data directory. It copies the whole log, then follows new
changes. From 0.3.0 it streams: each request waits on the primary (up to
long_poll_seconds) and returns the moment a change is written, so a replica is usually a few
milliseconds behind instead of up to poll_interval_ms. Set long_poll_seconds = 0 to poll
like 0.2 did.
Failed logins on a replica are sent to the primary (POST /api/v1/bind-failures), and the
lock it writes reaches every server through the log, so an account locked on one server is
locked on all of them. A replica also counts failures itself, so lockout still works while the
primary is down.
role = "auto" makes a server a replica unless its host name ends in -0; that is how the
Helm chart works.
Watch it
| Metric | Meaning |
|---|---|
talaan_replication_lag_events | changes the replica is behind; should be 0 |
talaan_replication_last_success_timestamp_seconds | last time it reached the primary |
talaan_replication_applied_sequence | the log position it has applied |
talaan_replication_errors_total | failed polls |
The Grafana dashboard has a Replication row, and the alerts TalaanReplicaLagging and
TalaanReplicaStale fire when a replica falls behind or loses the primary.
When the primary fails
0.2 and 0.3.0 have no automatic failover yet (Raft is being built; see below). To promote a replica by hand:
- Make sure the old primary is stopped, so there are never two primaries.
- On the replica with the highest
talaan_replication_applied_sequence, setreplication.role = "primary"and restart it. It keeps its data and history. - Point the other replicas (
primary_url) and your write clients at the new primary.
Changes the old primary accepted but no replica had copied yet are lost. With streaming (0.3.0) that is usually a few milliseconds of writes; with 0.2's 1-second poll, up to about a second. Restore them from a recent backup of the old primary, if its disk survived, by comparing logs.
A cluster with automatic failover (Raft)
New in 0.3.0. Built by talaan-raft.
In a cluster, every server is an equal member. The members elect a leader among themselves. The leader takes the writes, and a write counts only when a majority of the members has stored it. If the leader dies, the others elect a new one within about a second. No write that was acknowledged is lost, and nobody promotes anything by hand.
| Primary + replicas | Raft cluster | |
|---|---|---|
| Who writes | the primary you chose | the elected leader |
| When the writer dies | promote a replica by hand | a new leader within about a second |
| Writes lost when the writer dies | the last few milliseconds | none that were acknowledged |
| Servers | 1 + any number | 3 or 5 (odd, so a majority survives a loss) |
| Survives losing | the replicas, not the primary (for writes) | any 1 of 3, or 2 of 5 |
On Kubernetes
kubectl -n talaan create secret generic talaan \
--from-literal=admin-password='a-long-admin-passphrase' \
--from-literal=api-token="$(openssl rand -hex 32)" \
--from-literal=cluster-secret="$(openssl rand -hex 32)"
helm install talaan oci://ghcr.io/talaan-dev/charts/talaan -n talaan --version 0.6.2 \
--set cluster.enabled=true --set replicaCount=3 \
--set cluster.raftPort=7946 --set cluster.raftTlsSecret=talaan-raft-tls
Members talk Raft on port 7946 over TLS. talaan-raft-tls is a kubernetes.io/tls Secret with a
ca.crt, whose certificate names *.talaan-headless.talaan.svc (cert-manager can issue it; see
Raft on its own TLS port). From chart 0.6.1 a cluster without
cluster.raftPort doesn't render.
The pods find each other through the headless Service, form the cluster and elect a leader on
their own: only talaan-0 (member 1) forms it, and brings in the others. Members prefer
different nodes, and a PodDisruptionBudget lets Kubernetes drain only one at a time. Check it:
kubectl -n talaan exec talaan-0 -- talaan --config /etc/talaan/talaan.toml cluster status
Scaling changes the pods; adding or removing them as cluster members is a separate step:
-
Up: from 3 to 5 (the chart refuses an even count: with 4, losing 2 stops the cluster, the same as with 3). Pods
talaan-3andtalaan-4become members 4 and 5:helm upgrade talaan oci://ghcr.io/talaan-dev/charts/talaan -n talaan --version 0.6.2 \ --reuse-values --set replicaCount=5 kubectl -n talaan rollout status statefulset/talaan --timeout=600s for n in 4 5; do p=talaan-$((n - 1)).talaan-headless.talaan.svc kubectl -n talaan exec talaan-0 -- talaan --config /etc/talaan/talaan.toml cluster add $n \ --raft-url https://$p:7946 --ldap-url ldap://$p:3389 --api-url http://$p:8080 doneWait for the rollout before adding. Raising
replicaCountputs the new members in every pod's configuration, sotalaan-0totalaan-2restart one at a time: each restart is a short leader election, and writes pause briefly. Acluster addsent during a restart fails with "error sending request … /raft/members"; run it again.Each
cluster addreturns once the new member has caught up and become a voter, so member 5 is added after member 4 is in. With a large directory one add can take minutes. The command gives up after 600 seconds, leaving the member a non-voting learner; run the samecluster addagain to continue. Run it from any member: a follower passes it on to the leader. -
Down: from 5 to 3. Remove the members first, so the cluster never counts voters that are gone, then lower
replicaCount(it deletes the highest pods,talaan-4andtalaan-3) and wait for the rollout: the remaining pods restart on the shorter member list.kubectl -n talaan exec talaan-0 -- talaan --config /etc/talaan/talaan.toml cluster remove 5 kubectl -n talaan exec talaan-0 -- talaan --config /etc/talaan/talaan.toml cluster remove 4 helm upgrade talaan oci://ghcr.io/talaan-dev/charts/talaan -n talaan --version 0.6.2 \ --reuse-values --set replicaCount=3 kubectl -n talaan rollout status statefulset/talaan --timeout=600s
Keep an odd number of voters (3 or 5).
Writes through the talaan Service land on any member, usually a follower. LDAP clients get
a referral to the leader (use clients that follow referrals); HTTP and SCIM writes get 503
and must be sent to the leader. See the known issues.
Anywhere else
Every member gets the same [cluster.members] list, and its own id:
api_token_file = "/etc/talaan/api-token" # the same on every member
[cluster]
id = 1 # unique; never reuse an id
secret_file = "/etc/talaan/cluster-secret" # the same on every member, 32+ characters
[cluster.members]
1 = { raft_url = "http://ldap1.example.org:8080", ldap_url = "ldap://ldap1.example.org:3389", api_url = "http://ldap1.example.org:8080" }
2 = { raft_url = "http://ldap2.example.org:8080", ldap_url = "ldap://ldap2.example.org:3389", api_url = "http://ldap2.example.org:8080" }
3 = { raft_url = "http://ldap3.example.org:8080", ldap_url = "ldap://ldap3.example.org:3389", api_url = "http://ldap3.example.org:8080" }
Start all members with empty data directories. Then check:
talaan cluster status
# member 1 is Follower; leader 3; term 1; applied 4
# voters: [1, 2, 3]
Members talk to each other over their HTTP port (/raft/*), authenticated by the cluster
secret. Put that port on a private network or behind TLS.
What clients see
- Reads work on every member.
- Writes work on every member (0.5.0): a member that is not the leader sends the write to
the leader over the Raft port and returns the leader's answer, for LDAP, SCIM, the HTTP API and
the web UI alike. A client that reads back from the same member right away sees its write.
- If the leader can't be reached, the write fails with LDAP
unavailable(52) / HTTP503"no leader reachable", and nothing was written. - If the leader received the write but its answer was lost (it died mid-request), the error says the write may or may not have been applied: check before you retry. Talaan never retries such a write itself, so a write never lands twice.
- The
TalaanForwardedWritesFailingalert fires when a member can't reach the leader for forwarded writes: checktalaan cluster statusand the Raft port between members. [cluster] forward_writes = false(chart:cluster.forwardWrites=false) turns this off. Then, as up to 0.4, a follower answers writes with a referral to the leader (LDAP result 10) or503(HTTP/SCIM).
- If the leader can't be reached, the write fails with LDAP
- Failed logins on any member count towards a lockout on all of them.
- Webhooks are sent by the leader only. After a leader change the new leader sends the
last 1,000 changes again, so a change is delivered at least once and sometimes twice.
Drop duplicates by the CloudEvent
id, which is the same every time for the same change.
Change the members
talaan cluster add 4 --raft-url http://ldap4:8080 --ldap-url ldap://ldap4:3389 --api-url http://ldap4:8080
talaan cluster add 5 ... --learner # a read-only member that never votes
talaan cluster remove 2
Start the new member first, with join = true and no members list, so it waits to be added
instead of forming a cluster of its own:
[cluster]
id = 4
secret_file = "/etc/talaan/cluster-secret"
join = true
It copies the whole directory, then gets a vote. Run cluster add on any member: a follower
passes it to the leader.
⚠️ Warning
Never bring back a removed id with empty data: give it a new id. A member with an old id and no memory of its votes can help elect two leaders. See A member lost its data.
A member lost its data
If a member's volume is gone, it comes back empty under its old id. Talaan protects the cluster where it can:
- The founder (member 1,
talaan-0on Kubernetes) refuses to start when its Raft state is new but the others have a cluster: "it lost its data. Give it a new id". - Any other member is copied again by the leader and rejoins. That is safe once it has caught up; the narrow risk is a vote cast while it had no memory of its earlier vote.
If talaan-0 (the founder) lost its volume on Kubernetes, where the id comes from the
pod's ordinal:
-
Leave
talaan-0refusing to start. While it crash-loops it is out of the Service, which is what you want. -
On a healthy member, remove it:
kubectl exec talaan-1 -- talaan --config /etc/talaan/talaan.toml cluster remove 1. -
Give pod 0 a new id that no member has ever used, e.g. 7 (0.4.0):
helm upgrade talaan oci://ghcr.io/talaan-dev/charts/talaan -n talaan --version 0.6.2 \ --reuse-values --set-json 'cluster.ordinalIds={"0":7}'If
talaan-0is still crash-looping on the old revision,kubectl -n talaan delete pod talaan-0so it comes back on the new one. It then waits to be added instead of refusing. -
On a healthy member, add it under the new id. It copies the directory, then votes:
kubectl -n talaan exec talaan-1 -- talaan --config /etc/talaan/talaan.toml cluster add 7 \ --raft-url https://talaan-0.talaan-headless.talaan.svc:7946 \ --ldap-url ldap://talaan-0.talaan-headless.talaan.svc:3389 \ --api-url http://talaan-0.talaan-headless.talaan.svc:8080
ℹ️ Note
With chart 0.5.0 and Talaan 0.4.2 or later,
cluster.ordinalIdslives in its own ConfigMap, so the upgrade restarts only the replaced pod; no quiet moment is needed. Measured on a 3-member cluster: the longest write pause was 1 second (5 seconds without writes in total), and 203 seconds fromhelm upgradeuntil the new member voted (by Carl's cluster test).With older charts or images the mapping is part of the configuration, so the upgrade also restarts the other members one at a time. With member 1 removed there are only two voters, so while each restarts writes pause (8 seconds at most, 21 seconds in total in the same test); reads continue. Do it in a quiet moment.
⚠️ Warning
Do not restore an old snapshot of a member's volume. A member back from an old snapshot has forgotten the votes it cast since then (the same risk as a wiped one), and it can serve stale data through the Service. Volume snapshots are for disaster recovery of the whole cluster, not for one member.
Keep volumes on Retain (the chart's default) so this stays rare.
Raft on its own TLS port
New in 0.5.0.
Members talk Raft on a port of their own, over TLS, so the HTTP port can serve HTTPS and Raft traffic (which carries the directory's changes, password hashes included, and the cluster secret) is encrypted.
[cluster]
raft_listen = "0.0.0.0:7946"
# raft_tls_cert / raft_tls_key default to [http] tls_cert / tls_key
raft_ca_file = "/etc/talaan/tls/ca.crt" # the CA the members' certificates are checked against
[cluster.members]
1 = { raft_url = "https://t1.example.org:7946", ldap_url = "ldap://t1.example.org:3389", api_url = "https://t1.example.org:8080" }
# ...
- Each member's certificate must name the host in its own
raft_url; Talaan checks this at start-up and says which name is missing. - A plain-HTTP Raft port is refused unless you set
insecure_raft = true(it warns at start-up). talaan cluster ...talks to the member's ownraft_url, verified againstraft_ca_file.
With Helm (image 0.5.0 or later), a new cluster sets the port and a TLS Secret
(kubernetes.io/tls with ca.crt, naming *.<release>-headless.<namespace>.svc):
helm install talaan oci://ghcr.io/talaan-dev/charts/talaan -n talaan --version 0.6.2 \
--set cluster.enabled=true --set replicaCount=3 \
--set cluster.raftPort=7946 --set cluster.raftTlsSecret=talaan-raft-tls ...
cluster.raftTlsSecret defaults to https.tlsSecret; cluster.raftCaKey names the CA key in it
(default ca.crt); cluster.insecureRaft=true allows a plain Raft port.
Moving a running 0.4 cluster
Each member remembers the others' Raft addresses inside the cluster, so a configuration change
alone doesn't move them. Move them straight to their final, TLS address. (From chart 0.6.1 a
cluster without cluster.raftPort doesn't render. Step 1 sets it, so moving needs nothing else;
to upgrade the chart now and move later, set cluster.legacyRaftOnHttpPort=true until you do.)
-
Serve both ports. Upgrade to chart 0.6 with
cluster.raftPort=7946,cluster.raftTlsSecret=<secret>andcluster.moveRaftPort=true. Raft then answers on 8080 (plain, as before) and on 7946 (TLS). Leavehttps.tlsSecretoff during the move. The Secret's certificate must name*.<release>-headless.<namespace>.svc: a member whose certificate doesn't cover its own address refuses to start, in the middle of the upgrade. -
Move every member. The upgrade's notes print one command per member, for example:
kubectl -n <namespace> exec talaan-0 -- talaan --config /etc/talaan/talaan.toml cluster move 1 \ --raft-url https://talaan-0.talaan-headless.<namespace>.svc:7946Check with
cluster statusthat every member shows itshttps://…:7946address. -
Close the old port. Upgrade again with
cluster.moveRaftPort=false. The leader keeps its old connections until they fail, so this costs one leader election: writes pause for about a second. -
Optionally, HTTPS on the HTTP port: now
https.tlsSecretcan be set too.
Only move a member to its own new address; never point a member's id at another server.
Protect the Raft port
Even over TLS, keep the Raft port inside your network: the cluster secret is what lets a member
write, and forwarded writes are trusted because they carry it. Whoever holds the cluster secret
can commit any change, like the admin. From chart 0.6.1 a cluster gets a NetworkPolicy by
default that lets only the release's pods reach the Raft port (networkPolicy.enabled=false turns
it off; true also limits the HTTP port to networkPolicy.httpFrom).
Rotating the cluster secret
Rotate it if it may have leaked, or after moving off plain-HTTP Raft. Members share one secret and accept no other, so there is a short write pause while a majority switches over:
- Put a new random value (
openssl rand -hex 32) in thecluster-secretkey of the Secret (outside Kubernetes: in every member'ssecret_file). - Restart the members: on Kubernetes
kubectl -n <namespace> rollout restart statefulset/<release>(one pod at a time, so reads stay up); elsewhere restart each member in turn. - Expect writes to fail for about 15 to 20 seconds while a majority switches over (
503"no leader reachable", or a forwarded write's "may or may not have been applied"): retry them. Reads keep working on the members that aren't restarting. - Check:
talaan cluster statuson any member shows every voter and a leader.
No data is at risk: members with different secrets refuse each other's Raft calls (401) before
acting on them (from 0.5.1 before even reading them), so nothing is written. A member rejoins as
soon as a majority of members share its secret; one member alone with the new secret waits.
Failed-login reports from members to the leader use the API token, not the cluster secret, but the
leader records a lockout as a Raft write, so while no majority shares a secret (the 15 to 20 s
window) a lockout can't be committed, like any write. Each member's per-address throttling still
applies. (Measured once on a 3-member
test cluster: a rolling restart took 36 s to 3 voters, with a longest write gap of 15 s and no
acknowledged write lost. The numbers are indicative.) A rotation with no write pause (talaan cluster rotate, two secrets for a while) is planned for 0.7.0.
Snapshots and memory
A member that joins late, or falls far behind, gets the whole event log as one snapshot. It must
fit the largest Raft message a member accepts, [cluster] max_message_mib (chart:
cluster.maxMessageMib; 64 MiB, from 0.5.1), and the member holds about three times the snapshot
in memory while installing it: about 230 MiB at 64 MiB (with about 35 MiB at rest), plus 19 MiB
per password check running at the time. With the chart's default memory limit (256Mi) and four
password checks at once, that fits a log of up to about 40 MiB; give members 512Mi once it nears
64 MiB. (A snapshot's size is that of the event log; it is not the same as the data on disk, which
includes indexes, and we haven't measured it per user yet.)
A larger snapshot is refused: the leader logs an error naming the member, the size and
cluster.max_message_mib, and that member stays behind (talaan cluster status shows it). Raise
the limit and the memory on every member; re-adding the member doesn't help, as it needs the same
snapshot. Before 0.5.1 the limit was 2 MB, so a member that joined a cluster with real data could
never catch up. Streamed snapshots are planned for 0.7.0.
Start a cluster from an existing server
A new cluster can start from a single server's data, every change and its history included. Member 1 replays it, then the other members are added and copy it from member 1. The source must be a full log: a compacted store can't seed a cluster.
On a host, copy the old server's talaan.redb aside (stopped, or restored from an offline
backup), then start member 1 of the new cluster with it and add the others:
talaan serve --seed-from /var/lib/talaan-old/talaan.redb
talaan cluster add 2 --raft-url https://t2.example.org:7946 --ldap-url ldap://t2.example.org:3389 --api-url https://t2.example.org:8080
talaan cluster add 3 --raft-url https://t3.example.org:7946 --ldap-url ldap://t3.example.org:3389 --api-url https://t3.example.org:8080
On Kubernetes (image 0.5.0 or later), the file has to be on member 1's volume before its first start:
-
Stop the old server first (
kubectl scale statefulset/<old> --replicas=0), so the copy is consistent. -
Create the new volume yourself, with the name the StatefulSet will use:
data-<fullname>-0(data-talaan2-0for a release namedtalaan2). -
Copy the file onto it with a short-lived pod. Run it as user and group 65532, the user Talaan runs as. Talaan opens the file read-write, so a copy owned by root fails with "permission denied". With the old server's volume in the same namespace, mount it read-only:
apiVersion: v1 kind: Pod metadata: { name: seed-copy } spec: restartPolicy: Never securityContext: { runAsUser: 65532, runAsGroup: 65532, fsGroup: 65532 } containers: - name: c image: alpine:3.20 command: ["sh", "-c", "mkdir -p /new/seed && cp /old/talaan.redb /new/seed/talaan.redb && ls -l /new/seed"] volumeMounts: [{ name: old, mountPath: /old, readOnly: true }, { name: new, mountPath: /new }] volumes: - { name: old, persistentVolumeClaim: { claimName: data-talaan-0 } } - { name: new, persistentVolumeClaim: { claimName: data-talaan2-0 } }When the file is on your workstation instead, run the same pod with only the
newvolume andcommand: ["sh", "-c", "mkdir -p /new/seed && sleep 3600"]. Then copy the file in withkubectl -n <namespace> cp ./talaan.redb seed-copy:/new/seed/talaan.redb, which writes it as the pod's user. Delete the pod oncels -lshows the file owned by 65532. -
Install the chart with
cluster.enabled=true,replicaCount=3andcluster.seedFrom=/var/lib/talaan/seed/talaan.redb, then add members 2 and 3 as the install notes say.
cluster.seedFrom (TALAAN_SEED_FROM) only acts on member 1 while the cluster has no Raft state
yet, and is ignored afterwards, so it can stay set.
Not available in a cluster (yet)
talaan compact and talaan restore refuse to run on a member: members must keep identical
logs. Cluster compaction is planned for 0.7.0 (known issues).
To restore a cluster to an earlier point today, restore into a single server and start a new cluster from it (tested on Talaan 0.4.4):
- Take an offline backup of member 1 (
talaan backup --offline, with the cluster stopped). - On a host with the same Talaan version and a single-server config (no
[cluster]section: restore refuses a member's config), runtalaan restorefrom that backup, optionally--until <time>for a point in time. - Start a new cluster from the restored
talaan.redb, as above. Point clients at the new cluster, then remove the old one.
To shrink a cluster's history, wait for cluster compaction in 0.7.0: a compacted store can't seed a cluster, because seeding replays the log and needs it without gaps.
Limits, and what comes next
| Limit | Status |
|---|---|
| Failover is manual | Fixed in 0.3.0: a Raft cluster elects a new leader by itself. Primary + replicas stays available for setups that want it |
Replicas poll (up to poll_interval_ms behind) | Fixed in 0.3.0: streaming (long-poll) |
| Lockout counters are per server | Fixed in 0.3.0 for accounts: a lock applies on every server. Per-address locks and rate limits stay per server on purpose: each protects the server it runs on. Limit a whole cluster at your load balancer or API gateway |
| Webhooks fire only on the primary | by design: each change is announced once |
Several domains, and child domains
The short answer
Talaan can serve several domains in one server, give child domains their own administrators, and, from 0.3.0, point a child domain at another server with a referral. It does not replace Active Directory's forests, trusts or Windows domain controllers. The table says which parts of the Active Directory idea fit, and why.
| Active Directory idea | In Talaan | Why |
|---|---|---|
A domain (corp.example.com) | ✅ a naming context (dc=corp,dc=example,dc=com) | In LDAP a domain is a subtree with its own root; Talaan serves as many as you configure. |
A child domain (branch.corp.example.com) | ✅ a naming context below another one | It is part of the parent tree, so searches from the parent include it. |
| A child domain on its own server | ✅ 0.3.0: a referral entry (RFC 3296) | The parent stores one entry that says "this subtree lives at ldap://branch..."; clients follow it. |
| Delegated administration of a domain or OU | ✅ access rules on a subtree | A group gets add/write/delete rights on its subtree only. |
| Several unrelated domains in one place | ✅ several naming contexts | e.g. your company's and a partner's users, kept apart. |
| Global Catalog (search every domain at once) | ✅ by design | One server holds all its naming contexts; a search of the parent also returns referrals to child servers. |
| Domain controllers replicating to each other | ✅ primary + read replicas, or from 0.3.0 a Raft cluster | One writer at a time; a cluster elects a new one by itself when it fails. |
| Several writable masters at once | ❌ not planned | Two writers can accept conflicting changes. One ordered log is what makes Talaan's history and time travel exact. |
| Forests and trusts between domains | ❌ does not fit | A trust is a Kerberos and Windows security feature, not an LDAP one. |
| Kerberos, Group Policy, joining Windows PCs | ❌ does not fit | That is a Windows domain controller. Use Active Directory or Samba AD. |
The best way, by situation
| You want | Do this | Why this and not something else |
|---|---|---|
| A few domains or companies, one team runs them | One server, several naming contexts | One place to back up, monitor and search. Access rules keep each domain's admins inside it. |
| A branch or subsidiary manages its own users | Child naming context + access rules on the same server | Same as above, plus delegation. No second server to keep in sync. |
| A branch must run its own server (another site, another owner, its own uptime) | A referral in the parent pointing at the branch server | The parent's tree stays whole for clients, and each server owns its own data and history. |
| The branch must keep working when the link to head office is down | The branch runs its own server for its subtree, and head office holds a referral | Each subtree has its own writer, so nothing waits on the WAN. |
| Many readers near users at many sites | Read replicas of the server that owns the data | Reads stay local; writes get a referral to the primary. |
| Single sign-on across domains, "trusts" | An identity provider (Keycloak, Authentik) with one LDAP provider per domain | Trust is about who may log in where. An IdP does that with OIDC or SAML; LDAP has no trust protocol. |
| Windows PCs, Kerberos tickets, Group Policy | Active Directory or Samba AD | Those need a Kerberos KDC, DNS and SMB. Talaan can still hold the non-Windows users. |
Configure several naming contexts
suffix = "dc=corp,dc=example,dc=com" # the primary one; `admin` logs in here
additional_suffixes = [
"dc=branch,dc=corp,dc=example,dc=com", # a child domain
"dc=partner,dc=org", # an unrelated domain
]
With Helm, escape the commas (Helm splits --set values at commas):
--set 'additionalSuffixes={dc=branch\,dc=corp\,dc=example\,dc=com}', or use a values file.
On first start each one gets its base entry plus ou=people and ou=groups. The root DSE
lists them all under namingContexts, which is how LDAP clients discover them.
Give a child domain its own administrators
[[acl]]
subtree = "dc=branch,dc=corp,dc=example,dc=com"
who = "group:cn=branch-admins,ou=groups,dc=branch,dc=corp,dc=example,dc=com"
allow = ["read", "write", "add", "delete"]
Members of branch-admins manage everything in the branch, and nothing outside it.
A child domain on another server
New in 0.3.0.
On the branch server, make the branch its own suffix:
suffix = "ou=branch,dc=corp,dc=example,dc=com"
On the parent server, add one referral entry where the branch hangs in the tree:
dn: ou=branch,dc=corp,dc=example,dc=com
objectClass: referral
objectClass: extensibleObject
ou: branch
ref: ldap://branch.example.com:3389/ou=branch,dc=corp,dc=example,dc=com
What clients then see from the parent:
| Request | Answer |
|---|---|
A subtree search from dc=corp,... | the parent's entries, plus a search continuation reference to the branch server |
Anything at or below ou=branch,... (read or write) | result referral (10) with the branch server's URL |
| The same with the ManageDsaIT control | the referral entry itself, so you can read, change or delete it |
Most LDAP clients follow referrals when asked to: ldapsearch -C, ldap.OPT_REFERRALS in
python-ldap, Context.REFERRAL = "follow" in Java (JNDI). A client that ignores them simply
does not see the branch.
Logins in other domains
Users log in with their full DN, e.g. uid=ana,ou=people,dc=partner,dc=org. The short
login names that the HTTP API and API gateways accept (ana) refer to the
primary suffix only. Users of a branch on another server log in to that server.
Why not Kerberos, trusts and Group Policy
These are what make Active Directory a Windows domain controller, not a directory:
- Kerberos needs a ticket service (KDC), service keys for every host, and clocks kept in step. That is a second security system with its own attacks to defend. Talaan stays small by doing LDAP and SCIM well. For single sign-on, put an identity provider in front of it.
- Trusts let one Kerberos realm accept another's tickets. Without Kerberos there is nothing to trust. The LDAP way is a referral (where data lives); the web way is an IdP federating several directories (who may log in).
- Group Policy is Windows configuration delivered over SMB. Use Ansible, Puppet or an MDM for Linux and macOS, and AD for Windows PCs.
If you need any of these, run Active Directory or Samba AD for the Windows side. Talaan can still be the directory for everything else, and Keycloak can read both.
Integrations: Keycloak and other tools
Talaan speaks standard LDAP and SCIM, so most tools that support "an LDAP server" or "SCIM provisioning" work with it. The table says honestly how each was checked.
| Tool | How it connects | Checked |
|---|---|---|
| Keycloak (user federation) | LDAP, read and write | ✅✅ against a real Keycloak 26.0.8 on Kubernetes (2026-11-30), and its queries in the end-to-end tests |
| Microsoft Entra ID, Okta (provisioning) | SCIM 2.0 with PATCH | ✅ their PATCH forms, in the end-to-end tests |
| SSSD (Linux logins) | LDAP + StartTLS | ✅ real SSSD, Talaan 0.4.4 / chart 0.5.2 (30 Nov 2026), StartTLS against a CA: getent, id, PAM login, wrong password refused (test) |
| Gitea 1.22 / Forgejo | LDAP (via BindDN) | ✅ real Gitea, Talaan 0.4.4 / chart 0.5.2 (30 Nov 2026), plain LDAP: login, memberOf admin filter, lockout and SCIM-disabled users refused (test) |
| Grafana 11.3 | LDAP | ✅ real Grafana, Talaan 0.4.4 / chart 0.5.2 (30 Nov 2026), plain LDAP: login, group → role mapping, roles follow group changes (test) |
| Authentik 2024.12 | LDAP source | ✅ real Authentik, Talaan 0.4.4 / chart 0.5.2 (30 Nov 2026), plain LDAP: users, groups and membership synced, login checks the password against Talaan (test) |
| Nextcloud 30 | LDAP backend | ✅ real Nextcloud, Talaan 0.4.4 / chart 0.5.2 (30 Nov 2026), plain LDAP: login, groups from member, SCIM-disabled users refused (test) |
| Traefik, nginx, Caddy, Envoy, Emissary, Kong | forward auth (0.3.0) | see API gateways; checked by hand against a running server |
The examples use port 3389 (a host install). On Kubernetes, use the Service:
talaan.<namespace>.svc, port 389 (636 for LDAPS).
Found a tool that misbehaves? Please open an issue with the tool's version and its LDAP log.
What tools rely on, and Talaan provides
| Need | Talaan |
|---|---|
| Paged searches (RFC 2696) | ✅ |
entryUUID as a stable id | ✅ on every entry |
createTimestamp / modifyTimestamp for incremental sync | ✅ |
memberOf on users | ✅ computed from groups' member; filterable |
Object-class inheritance (inetOrgPerson is also person) | ✅ |
| Password Modify extended operation (RFC 3062) | ✅ |
| Renames (modrdn) | ✅, and group members follow |
| StartTLS, LDAPS, SASL PLAIN | ✅; SASL EXTERNAL (client certificates) from 0.3.0 |
| Referrals (RFC 3296) | ✅ writes on a replica; from 0.3.0, subtrees held by another server |
jpegPhoto, userCertificate;binary | ✅ from 0.3.0 |
| Disabled accounts | ✅ pwdAccountLockedTime / SCIM active |
Keycloak
User federation → Add LDAP provider:
| Setting | Value |
|---|---|
| Vendor | Other |
| Connection URL | ldap://talaan-primary.talaan.svc:389 (writable mode needs the primary) |
| Enable StartTLS | on, if Talaan has a certificate |
| Bind DN / credentials | cn=admin,dc=example,dc=org or a dedicated service account |
| Edit mode | WRITABLE (Keycloak creates and changes users) or READ_ONLY |
| Users DN | ou=people,dc=example,dc=org |
| Username LDAP attribute | uid |
| RDN LDAP attribute | uid |
| UUID LDAP attribute | entryUUID |
| User object classes | inetOrgPerson, organizationalPerson |
| Search scope | Subtree |
| Pagination | on |
| Use password modify extended operation | on (Advanced settings) |
| Sync | "Periodic changed users sync" works; it filters on modifyTimestamp |
What the real test covered (Talaan from the published Helm chart, Keycloak 26.0.8, a throwaway namespace): Test connection and Test authentication; full sync imported every user; the group mapper put users in their LDAP groups; logins through Keycloak bind to Talaan and wrong passwords are refused; a user registered in Keycloak is created in Talaan; a password reset in Keycloak (Password Modify) works against Talaan directly; an edit in Keycloak is written to Talaan, and Talaan's history names Keycloak's service account as the actor; changed-users sync works.
ℹ️ Note
Keycloak's default mapper for vendor Other writes first name to
cn, notgivenName. To keepcnas the full name, edit the first name mapper and set its LDAP attribute togivenName.
Groups: add a group-ldap-mapper with LDAP Groups DN ou=groups,dc=example,dc=org,
group name attribute cn, object class groupOfNames, membership attribute member,
membership type DN, and "User groups retrieve strategy" LOAD_GROUPS_BY_MEMBER_ATTRIBUTE
(or GET_GROUPS_FROM_USER_MEMBEROF_ATTRIBUTE, which Talaan also supports).
With replicas, point a read-only Keycloak at the load-balanced talaan
Service, and a writable one at talaan-primary.
Microsoft Entra ID, Okta and other SCIM provisioners
| Setting | Value |
|---|---|
| Tenant / base URL | https://talaan.example.org/scim/v2 (put TLS in front of port 8080) |
| Authentication | Bearer token: Talaan's api_token |
Supported: Users and Groups; create, get, list with filter=userName eq "...", replace (PUT),
PATCH (including active, emails[type eq "work"].value, member add/remove), delete.
Setting active to false disables the login. Changing userName renames the entry and keeps
its id. Paths Talaan does not map return 400 invalidPath rather than being dropped.
SSSD (Linux logins)
Users need POSIX attributes: objectClass: posixAccount with uidNumber, gidNumber,
homeDirectory, loginShell. Groups need both objectClass: groupOfNames and
posixGroup (with gidNumber), and list their members in member as DNs.
[domain/example]
id_provider = ldap
auth_provider = ldap
ldap_uri = ldap://talaan.example.org:3389
ldap_id_use_start_tls = true
ldap_tls_reqcert = demand
ldap_tls_cacert = /etc/sssd/talaan-ca.crt # the CA of Talaan's certificate; StartTLS fails without it
ldap_search_base = dc=example,dc=org
ldap_user_search_base = ou=people,dc=example,dc=org
ldap_group_search_base = ou=groups,dc=example,dc=org
ldap_default_bind_dn = cn=sssd,ou=services,dc=example,dc=org
ldap_default_authtok = ...
ldap_schema = rfc2307bis
ldap_group_member = member
ldap_group_object_class = groupOfNames # without it SSSD looks for posixGroup only
sssd.conf must be mode 0600, or SSSD refuses to start. Turn on
security.require_tls_for_bind in Talaan, so a client that forgets StartTLS cannot send
passwords in the clear.
Gitea / Forgejo
Site administration → Authentication sources → LDAP (via BindDN): host and port of Talaan,
security protocol StartTLS, bind DN of a service account, user search base
ou=people,dc=example,dc=org, user filter (&(objectClass=inetOrgPerson)(uid=%s)),
admin filter (memberOf=cn=gitea-admins,ou=groups,dc=example,dc=org), username attribute uid,
first name givenName, surname sn, email mail. Or from the command line:
gitea admin auth add-ldap --name talaan --security-protocol starttls \
--host talaan.example.org --port 3389 \
--bind-dn cn=gitea,ou=services,dc=example,dc=org --bind-password '...' \
--user-search-base ou=people,dc=example,dc=org \
--user-filter '(&(objectClass=inetOrgPerson)(uid=%s))' \
--admin-filter '(memberOf=cn=gitea-admins,ou=groups,dc=example,dc=org)' \
--username-attribute uid --firstname-attribute givenName --surname-attribute sn \
--email-attribute mail --synchronize-users --active
Talaan's lockout and disabled accounts apply to Gitea logins too. The test ran over plain LDAP
(--security-protocol unencrypted); StartTLS is expected to work as for SSSD but was not part
of it.
Grafana
[[servers]]
host = "talaan.example.org"
port = 3389
start_tls = true
bind_dn = "cn=grafana,ou=services,dc=example,dc=org"
bind_password = "..."
search_filter = "(uid=%s)"
search_base_dns = ["ou=people,dc=example,dc=org"]
[servers.attributes]
name = "givenName"
surname = "sn"
username = "uid"
email = "mail"
member_of = "memberOf"
[[servers.group_mappings]]
group_dn = "cn=grafana-admins,ou=groups,dc=example,dc=org"
org_role = "Admin"
[[servers.group_mappings]]
group_dn = "*" # everyone else who can log in
org_role = "Viewer"
Turn it on with GF_AUTH_LDAP_ENABLED=true, GF_AUTH_LDAP_CONFIG_FILE=/etc/grafana/ldap.toml
and GF_AUTH_LDAP_ALLOW_SIGN_UP=true. Keep ldap.toml in a Secret: it holds the bind password.
Roles follow group changes at the user's next login. GET /api/admin/ldap/status checks the
connection. The test ran with start_tls = false.
Authentik (LDAP source)
Directory → Federation and Social login → Create → LDAP Source, or POST /api/v3/sources/ldap/:
| Setting | Value |
|---|---|
| Server URI | ldap://talaan.example.org:3389 |
| Bind CN / password | a service account, e.g. cn=authentik,ou=services,dc=example,dc=org |
| Base DN | dc=example,dc=org |
| Addition user DN / group DN | ou=people / ou=groups |
| User object filter | (objectClass=inetOrgPerson) |
| Group object filter | (objectClass=groupOfNames) |
| Group membership field | member |
| Object uniqueness field | entryUUID |
| Sync users / groups | on; sync users' passwords off (logins check the password against Talaan) |
| User property mappings | the built-in default-name, default-mail, openldap-uid, openldap-cn |
| Group property mappings | openldap-cn |
ℹ️ Note
Authentik 2024.12 does not sync right after you save the source: syncing runs every two hours. Press Sync in the source's page, or run
ak ldap_sync <source-slug>in the worker.
⚠️ Warning
Use Talaan 0.4.4 or later with Authentik (or 0.3.x). Authentik's client checks every attribute it asks for against Talaan's schema, and 0.4.0 to 0.4.3 don't list
distinguishedName, so the sync fails with invalid attribute type distinguishedName. Keep sync users' passwords off: it asks for Active Directory attributes (pwdProperties,sAMAccountName) that no non-AD schema defines.
Nextcloud
Enable the LDAP user and group backend app, then:
occ ldap:create-empty-config # prints the config id, e.g. s01
occ ldap:set-config s01 ldapHost talaan.example.org
occ ldap:set-config s01 ldapPort 3389
occ ldap:set-config s01 ldapAgentName cn=nextcloud,ou=services,dc=example,dc=org
occ ldap:set-config s01 ldapAgentPassword '...'
occ ldap:set-config s01 ldapBase dc=example,dc=org
occ ldap:set-config s01 ldapBaseUsers ou=people,dc=example,dc=org
occ ldap:set-config s01 ldapBaseGroups ou=groups,dc=example,dc=org
occ ldap:set-config s01 ldapUserFilter '(objectClass=inetOrgPerson)'
occ ldap:set-config s01 ldapLoginFilter '(&(objectClass=inetOrgPerson)(uid=%uid))'
occ ldap:set-config s01 ldapGroupFilter '(objectClass=groupOfNames)'
occ ldap:set-config s01 ldapGroupMemberAssocAttr member
occ ldap:set-config s01 ldapUserDisplayName cn
occ ldap:set-config s01 ldapEmailAttribute mail
occ ldap:set-config s01 ldapExpertUsernameAttr uid # otherwise Nextcloud names users by a UUID
occ ldap:set-config s01 ldapExpertUUIDUserAttr entryUUID
occ ldap:set-config s01 ldapExpertUUIDGroupAttr entryUUID
occ ldap:set-config s01 ldapConfigurationActive 1
occ ldap:test-config s01 # "The configuration is valid"
Nextcloud's user search matches the start of names by default ("Mar" finds Maria, "a" does not). That is a Nextcloud setting, not a Talaan limit.
API gateways: Talaan as the login check
New in 0.3.0. Built by the talaan-gateway module.
Many gateways can ask another service "may this request through?" before passing it on. This is
called forward auth. Talaan can answer that question. The gateway sends it the request's
Authorization header, and Talaan checks the login and, if you ask, the user's groups.
client ──► gateway ──► your app
│ ▲
Authorization │ 200 + X-Talaan-User / -Dn / -Group-Dns
▼ │ (or 401, 403, 429)
Talaan /gateway/auth
Turn it on
The module is off by default: it is one more place that checks passwords, so you choose to open it.
[modules]
gateway = true
[gateway]
cache_ttl = "30s" # reuse a "yes" this long; "0s" turns the cache off
trusted_proxies = ["10.42.0.0/16"] # your gateway's addresses (see below)
Or talaan config enable gateway. With Helm:
helm upgrade talaan oci://ghcr.io/talaan-dev/charts/talaan -n talaan --version 0.6.2 --reuse-values \
--set modules.gateway=true --set 'gateway.trustedProxies={10.42.0.0/16}'
The container image and the release binaries include the module. If you build from source, add
the gateway feature: cargo build --release --features gateway.
The two endpoints
| Endpoint | For | Who decides on groups |
|---|---|---|
/gateway/auth?group=cn=admins,ou=groups,dc=example,dc=org&group=cn=ops,ou=groups,dc=example,dc=org&mode=any | Traefik, nginx, Caddy, APISIX, Kong (forward auth) | Talaan, from the query (mode=all needs every group; the default is any) |
/gateway/auth/<original path> | Envoy, Emissary, Istio ext_authz (HTTP) | the gateway, from X-Talaan-Group-Dns; the query is ignored so a client cannot choose its own policy |
Name groups by DN: ?group=cn=admins,ou=groups,dc=example,dc=org. A bare name (?group=admins)
must be the cn of exactly one group in the directory (from 0.5.1). If none or several match, it
matches nobody and Talaan logs an error naming the group on every request, so check the log after
deploying a policy. (Before 0.5.1, a bare name matched any group with that name, so a user who may
create groups somewhere could pass with a look-alike.)
Answers:
- 200 with
X-Talaan-User,X-Talaan-Dn,X-Talaan-Group-Dns(the user's group DNs, separated by;: authorize on these) andX-Talaan-Groups(comma-separated names, kept for compatibility only: two groups in different branches can share a name). Pass them on to your app. - 401 with
WWW-Authenticate: Basic: no login, or a wrong one. - 403: logged in, but not in a required group.
- 429 with
Retry-After: the account or address is locked out.
The Authorization header can be a Basic login (ana or a full DN, and the password) or
Bearer <api_token>.
Same protection as LDAP
- Login lockout and rate limits count these logins exactly like LDAP binds. With replicas, a lockout on one server applies on all of them.
- A cached "yes" is dropped as soon as the user, their password or one of their groups changes,
so
cache_ttlonly delays what nothing changed. X-Forwarded-Foris believed only fromtrusted_proxies. Without it, every request seems to come from the gateway, and one bad client could lock the gateway's address out for everyone.- The policy never comes from request headers, because some gateways forward every header the client sends.
Examples
Traefik
http:
middlewares:
talaan:
forwardAuth:
address: "http://talaan.talaan.svc:8080/gateway/auth?group=cn=admins,ou=groups,dc=example,dc=org"
authResponseHeaders: ["X-Talaan-User", "X-Talaan-Group-Dns"]
nginx
location = /_auth {
internal;
proxy_pass http://talaan:8080/gateway/auth?group=cn=admins,ou=groups,dc=example,dc=org;
proxy_pass_request_body off;
proxy_set_header Content-Length "";
}
location / {
auth_request /_auth;
auth_request_set $user $upstream_http_x_talaan_user;
proxy_set_header X-User $user;
proxy_pass http://app;
}
Caddy
forward_auth talaan:8080 {
uri /gateway/auth?group=cn=admins,ou=groups,dc=example,dc=org
copy_headers X-Talaan-User X-Talaan-Group-Dns
}
Emissary
apiVersion: getambassador.io/v3alpha1
kind: AuthService
metadata: { name: talaan }
spec:
auth_service: "talaan.talaan.svc:8080"
path_prefix: "/gateway/auth"
allowed_request_headers: ["authorization"]
allowed_authorization_headers: ["x-talaan-user", "x-talaan-group-dns"]
Gateways that already speak LDAP
Kong ldap-auth, APISIX ldap-auth and nginx-ldap-auth do not need this module: point them at
Talaan's LDAP port as described in Integrations.
How it was checked
The talaan-gateway crate has its own tests against a real directory, DN matching and bare-name
resolution included (0.5.1). On 0.4 the binary was checked by hand against a running server: a
user in devs got 200, ?group=devs gave 200, ?group=ops gave 403, a wrong password and a
missing login gave 401, and the Envoy path gave 200 without reading the query. There is no
end-to-end test against a real gateway yet (where we are).
Web UI
New in 0.4.0. Built by talaan-web, a module of the server: no separate program, served under
/uion the HTTP port.
Browse, search, edit and time-travel the directory in a browser.
- Browse and search. A bare word finds people by uid, name or mail;
(filter)syntax works too. - History. Every change to an entry: who made it, when, and which attributes it touched.
- Time travel. See any entry, and what was under it, as it was at a change number or a moment
(
2026-11-30T14:00:00Z). The page turns amber, so you can't mistake the past for now. See Time travel. - Change. Edit attributes as
name: valuelines, add and delete entries, set passwords, unlock accounts.
Turn it on
[modules]
web = true
[web]
# Signs the login cookies. Without it, a random key per process: logins end at every restart.
session_secret_file = "/etc/talaan/web-session.key"
# secure_cookie = true # see "Behind an ingress" below
Make the key with head -c 48 /dev/urandom > /etc/talaan/web-session.key (readable by Talaan only).
Then open https://talaan.example.org/ui and log in with any DN or uid and its password.
With Helm:
head -c 48 /dev/urandom > web-session.key # the key, the same for every pod
kubectl -n talaan patch secret talaan -p "{\"data\":{\"web-session-key\":\"$(base64 -w0 web-session.key)\"}}"
helm upgrade talaan oci://ghcr.io/talaan-dev/charts/talaan -n talaan --version 0.6.2 --reuse-values \
--set modules.web=true --set web.sessionSecretKey=web-session-key
(web.sessionSecretKey names a key in the chart's existingSecret.)
Using it, step by step
The screenshots come from talaan-web's demo directory (dc=example,dc=org, see the end of this
page), logged in as the admin.
1. Log in
Open /ui and log in with a user name (uid), a full DN, or admin. Wrong passwords count
towards the same lockout as LDAP binds.

2. Browse
You start at the top of the directory. Under this entry lists the entries one level down;
click one to go there. The trail above the DN takes you back up. Kept by the server opens the
attributes Talaan maintains itself (timestamps, entryUUID, memberOf).

3. Search
Type in the box at the top: a bare word finds people by uid, name or mail; an LDAP filter such
as (mail=*@example.org) works too.

4. Look at an entry
An entry page shows its attributes, what is under it, and on the right everything you can do with it.

5. See its history
Every change to this entry lists each change: its change number, what it touched, who made it
and when. Changes the server makes itself (here a lockout after failed logins) are recorded as
cn=talaan.

6. Travel in time
See it then (or a change number or a time in As it was at) shows the entry, and everything under it, as it was right after that change. The page turns amber so you can't mistake the past for now; Back to now leaves it. Nothing can be changed while you look at the past.
The numbers are the directory's change numbers, which count every change to any entry, so they jump (#5, #8, #9 for bong). Time travel uses the same number: See it then on #5 opens the amber page at "change #5". (Up to Talaan 0.4 the history numbered an entry's own changes 1, 2, 3, which didn't match.)

7. Edit attributes
Edit attributes opens the entry as name: value lines. Repeat a name for more values, delete a
line to remove a value, then Save. The access rules decide what you may change.

The entry shows the change at once, and its history records you as the one who made it.

8. Add an entry
Add an entry under it creates a child of the entry you are on: give the first part of the DN
(uid=dana) and the attributes. objectClass: inetOrgPerson needs cn and sn.

9. Set a password, unlock an account
On a person's entry, New password and Set password replace the password (at least 8 characters; it is stored as an Argon2id hash and never shown). On your own entry you also type your current password (from 0.5.1): a wrong one counts as a failed login, and your other web sessions end once the change is made. An administrator setting someone else's password does not need theirs; that change is recorded with who made it, and it ends all of that person's web sessions too (so does a change through LDAP or SCIM). An account locked by failed logins says so in a red bar, and Unlock account lifts the lock at once.

To delete an entry, tick I'm sure and press Delete entry; it stays in the history, so time travel can still show it.
Who can do what
Every page runs as the logged-in user: the same access rules, lockout and rate limits as LDAP, and every change is recorded with that user as the actor. A user who may only read their own entry sees only that; the Edit, Delete and Unlock buttons do nothing for someone the rules don't allow.
Security
- Logins are signed cookies: HttpOnly, SameSite=Strict, valid 8 hours. Every form carries a CSRF token.
- The pages contain no scripts, and the Content-Security-Policy forbids them.
- Passwords are never shown, not even as hashes.
Behind an ingress or load balancer
The cookie gets the Secure flag automatically when Talaan itself serves HTTPS ([http] tls_cert).
When an ingress or load balancer terminates HTTPS in front of Talaan, Talaan only sees plain HTTP,
so tell it:
[web]
secure_cookie = true
Helm: --set web.secureCookie=true. Without it the login cookie is sent without Secure.
In a cluster
Give every member the same session_secret_file (the chart does this from the Secret), so a
login works on whichever member the load balancer picks. Reads are answered by any member; a change
made on a follower says which member is the leader, so you can repeat it there.
Try it without a server
git clone https://github.com/talaan-dev/talaan-web && cd talaan-web
cargo run --example demo
Open http://127.0.0.1:8099/ui and log in as cn=admin,dc=example,dc=org / adminpw.
MCP: Talaan for AI assistants
New in 0.4.0. Built by talaan-mcp, a module of the server, speaking MCP's Streamable HTTP transport at
POST /mcpon the HTTP port.
Lets Claude Code, Claude Desktop and other MCP clients search and read the directory, look at its history, and, only when you allow it, change it.
Turn it on
[modules]
mcp = true
[mcp]
allow_writes = false # the default: read-only
Helm: --set modules.mcp=true (and --set mcp.allowWrites=true for writes).
Connect a client
The client sends Authorization: Bearer <api token> (as the admin) or Basic (as a user):
claude mcp add --transport http talaan https://talaan.example.org/mcp \
--header "Authorization: Bearer $TALAAN_API_TOKEN"
Clients that only speak stdio go through mcp-remote:
{ "mcpServers": { "talaan": {
"command": "npx",
"args": ["mcp-remote", "https://talaan.example.org/mcp",
"--header", "Authorization: Bearer ${TALAAN_API_TOKEN}"],
"env": { "TALAAN_API_TOKEN": "..." } } } }
Prefer a user with only the access the assistant needs over the admin token.
Tools
| Tool | Does | Needs |
|---|---|---|
search_entries | LDAP filter search, optionally as_of a past change or time | read access |
get_entry | one entry with its server-kept attributes, optionally as_of | read access |
entry_history | every change to an entry, newest first | own entry, or admin |
recent_changes | the latest changes to the whole directory (secrets removed) | admin |
whoami | the identity the tools run as | - |
add_entry, modify_entry, delete_entry, unlock_account | change the directory | allow_writes = true and write access |
as_of takes a change number or a time like 2026-11-30T14:00:00Z (see Time travel).
Results are capped at 50 by default, 500 at most.
Safety
- Same rules as LDAP. Access rules, lockout and rate limits apply to every call, and every change is recorded with the caller as the actor, so you can see in the history what the assistant did.
- Read-only by default. The write tools aren't even listed until
allow_writesis set, and they carry MCP's destructive hints, so clients ask before running them. - Passwords are never returned.
- Browsers: a request with an
Originheader must come from the server's own host (MCP's rule against DNS rebinding). There are no sessions;GET /mcpanswers 405. - Prompt injection. Directory values are written by people, and a description field can contain
instructions. Talaan tells the assistant to treat values as data, but that is not a guarantee:
keep
allow_writesoff unless the assistant's identity can change only what it should.
Try it without a server
git clone https://github.com/talaan-dev/talaan-mcp && cd talaan-mcp
cargo run --example demo
It serves a sample directory at http://127.0.0.1:8098/mcp with the token demo-token.
Moving to Talaan (and away from it)
New in 0.4.0. Built by talaan-migrate, a small separate program: migration is one-off work, so the server stays lean.
talaan-migrate reads an LDIF file or a live LDAP server, maps the entries from OpenLDAP,
389-DS, FreeIPA or Active Directory to what Talaan expects, checks every entry against Talaan's
own schema rules, tells you what will happen, and then writes LDIF or straight into Talaan.
The same tool takes everything out again, so you are never locked in.
OpenLDAP / 389-DS / FreeIPA / AD ──► talaan-migrate ──► Talaan
or an LDIF file (map, check, or an LDIF file
report)
1. Install it
Download talaan-migrate for Linux, Windows or macOS from the
releases (check SHA256SUMS), or
cargo install talaan-migrate.
2. Dry run first
A dry run reads, maps and checks, writes nothing, and exits non-zero when something would fail:
talaan-migrate --from ldaps://ldap.corp.com --base dc=corp,dc=com \
--bind-dn cn=admin,dc=corp,dc=com --password-file old-admin.pw \
--source openldap --suffix-map dc=corp,dc=com dc=example,dc=org \
--dry-run
Passwords are only ever read from files (--password-file, --to-password-file), never from the
command line, and never printed.
The report shows:
- how many users, groups and other entries will be written, and what is left behind (and why);
- entries Talaan would refuse, with the reason (e.g.
person requires the attribute sn); - DN collisions: two old entries that would land on the same new DN;
- group members and references dropped because their entry is not migrated;
- attributes not carried over (server-kept ones like
entryUUID,entryCSN,aci); - what happens to every password (see below);
- a hint to turn on nested groups when groups contain groups.
Fix the source (or the mapping) until it says Result: ready.
3. Write into Talaan
talaan-migrate --from ldaps://ldap.corp.com --base dc=corp,dc=com \
--bind-dn cn=admin,dc=corp,dc=com --password-file old-admin.pw \
--source openldap --suffix-map dc=corp,dc=com dc=example,dc=org \
--to ldap://talaan.example.org:389 \
--to-bind-dn cn=admin,dc=example,dc=org --to-password-file talaan-admin.pw
- Parents come before children and groups come last, so members exist when their group is added.
- Entries that already exist are skipped, so an interrupted run can simply be run again.
--updatereplaces their attributes instead, exceptuserPassword(a second run must not undo passwords people changed in Talaan meanwhile); add--update-passwordsif you really want that. - In a cluster, a follower answers with a
referral and the tool moves to the leader. It never follows a referral to a less protected
connection than the one you gave (
ldaps://or StartTLS), at most three hops;--no-follow-referralsturns this off. busyanswers (rate limits) are retried with a growing pause.
Or write LDIF to look at first: --to talaan.ldif. The file is created readable by you only
(it holds password hashes), and an existing file is never replaced without --force.
TLS with your own CA
Active Directory and FreeIPA almost always use an internal CA. Give its certificate:
talaan-migrate --from ldaps://dc1.corp.com --ca-file corp-ca.pem ...
talaan-migrate ... --to ldaps://talaan:636 --to-ca-file talaan-ca.pem
--starttls / --to-starttls upgrade an ldap:// connection. There is deliberately no option to
skip certificate checks.
Sources
--source | What it does |
|---|---|
generic, openldap, 389ds | Entries as they are, with the suffix and containers mapped. Server-kept attributes are left out and counted; nsAccountLock: TRUE becomes a locked account. |
freeipa | cn=users,cn=accounts → ou=people, cn=groups,cn=accounts → ou=groups. POSIX attributes are kept, so SSSD logins keep working. ipa*, krb* and mep* attributes and object classes are left out; hosts, services, HBAC and sudo rules are not migrated. |
ad | Users become inetOrgPerson at uid=<sAMAccountName>,ou=people; groups become groupOfNames at cn=<name>,ou=groups, with their members rewritten. objectGUID is kept as scimExternalId; accounts disabled in AD (userAccountControl bit 2) arrive locked. Computers, OUs and containers are not migrated. |
Mapping options:
--suffix-map OLD NEWreplaces the naming context, e.g.dc=corp,dc=comwithdc=example,dc=org. (Two values, because DNs contain=.)--map-container OLD NEW(repeatable) replaces an RDN sequence, e.g.--map-container ou=staff ou=people.
DN-valued attributes (member, uniqueMember, manager, owner, seeAlso, …) are rewritten with
the entries they point to. A member whose entry is not migrated is dropped and listed, never kept
pointing at nothing.
Passwords
Talaan 0.4.0 and later check the password hashes other directories use, and replace each one with
Argon2id the first time its user logs in (the change shows in the entry's
history as made by cn=talaan).
| In the old directory | In Talaan |
|---|---|
{ARGON2} | kept |
{SSHA}, {SSHA256/384/512}, {SHA*} (OpenLDAP, 389-DS) | kept; upgraded at the first login |
{PBKDF2-SHA256/512}, 389-DS {PBKDF2_SHA256} (389-DS, FreeIPA) | kept; upgraded at the first login |
{CRYPT} with $6$, $5$ or bcrypt $2b$ | kept; upgraded at the first login |
| plain text | hashed on import |
{MD5}, {CRYPT}$1$, {CLEARTEXT}, unknown schemes, absurd work factors | not usable: the user needs a new password |
| Active Directory | none: AD never hands out password hashes, so every user needs a new password |
Only an administrator can store an existing hash; a hash Talaan can never verify is stored as a
marker ({UNSUPPORTED}MD5), never as the old value.
After the migration
- Users without a usable password (always the case for AD): set one through the web UI (Set password), SCIM, or LDAP Password Modify, or let your identity provider (Keycloak, Authentik) send its reset mail.
- Nested groups (AD, FreeIPA): if the report says groups contain groups, turn on
[schema] nested_groups = truesomemberOfand access rules follow them. - Point your applications at Talaan, using the integrations settings.
- Delete any LDIF file you wrote: it holds password hashes.
Leaving Talaan
talaan-migrate --from ldap://talaan:389 --base dc=example,dc=org \
--bind-dn cn=admin,dc=example,dc=org --password-file talaan-admin.pw --to export.ldif
Talaan never hands out password hashes over LDAP, so this export has none. For a complete copy
including hashes and the full history, use talaan backup.
Limits
- Values of one attribute are a set in LDAP, so their order is not kept when writing over LDAP (LDIF keeps it byte for byte).
- AD: no passwords, and no computers, GPOs or Kerberos. Those belong to a Windows domain (why).
- One
--suffix-mapper run; for several naming contexts, run once per context.
Modules
Talaan is built from small crates. The core is always there; everything else is a module you can leave out at build time or switch off at run time.
| Module | Repository | Adds | Default |
|---|---|---|---|
| (always) | talaan-core, talaan-store-redb, talaan-ldap | the directory, its log, LDAP | on |
ldaps | talaan-ldap (tls) | LDAPS with rustls | on |
api | talaan-api | /api/v1: search (and time travel), history, events, backup | on |
scim | talaan-scim | /scim/v2: Users, Groups | on |
metrics | talaan-metrics | /metrics for Prometheus | on |
webhooks | talaan-webhook | signed CloudEvents webhooks | on |
otlp | talaan-otel | OpenTelemetry traces | off |
replica | talaan-replica | run as a read replica (replication.role, not [modules]) | built in |
gateway | talaan-gateway | /gateway/auth: forward auth for API gateways (0.3.0) | built in, off |
web | talaan-web | /ui: the web UI (0.4.0) | built in, off |
mcp | talaan-mcp | /mcp: the MCP server for AI assistants (0.4.0) | built in, off |
raft | talaan-raft | a Raft cluster ([cluster], not [modules]) | built in |
legacy-hashes | talaan-core | migrated password hashes (migration) | built in |
Any HTTP module also brings /livez and /readyz.
At run time
talaan config enable monitoring metrics
talaan config enable monitoring otlp
talaan config disable scim
talaan config show
Edits keep the comments in your talaan.toml. Restart Talaan to apply.
At build time
cargo build --release --no-default-features --features ldaps,metrics
docker build --build-arg FEATURES="ldaps,metrics" .
| Build | Binary size (0.5.0, linux x86_64) |
|---|---|
everything (talaan-linux-x86_64) | 14.1 MiB |
LDAP + LDAPS (talaan-minimal-linux-x86_64) | 7.7 MiB |
| LDAP only (no TLS) | not built for releases (3.6 MB on v0.2) |
If a module is switched on in the config but was not built in, Talaan warns at startup and
config show says not compiled into this build.
Planned
cluster (automatic failover with Raft), web (a UI) and mcp (an MCP server). The CLI answers
planned but not available yet when you ask for them.
Kodigo: the cheat sheet
Kodigo (Filipino slang) — a cheat sheet you keep in your pocket for the exam.
Kodigo is what Filipino students call the little note hidden in your palm during an exam. Here it is allowed: every Talaan command on one page.
Examples use dc=example,dc=org, LDAP on localhost:3389, HTTP on localhost:8080, and
$PW for the admin password.
Run
| Do this | Type this |
|---|---|
| Start the server | talaan or talaan serve |
| Start with a config file | talaan -c /etc/talaan/talaan.toml |
| Version | talaan --version |
| Help for any command | talaan help backup |
Configure
| Do this | Type this |
|---|---|
| Write an example config | talaan config init |
| See the effective config | talaan config show |
| Turn on metrics | talaan config enable monitoring metrics |
| Turn on OpenTelemetry | talaan config enable monitoring otlp |
| Turn on webhooks | talaan config enable monitoring webhooks |
| Turn the API or SCIM on or off | talaan config enable api / talaan config disable scim |
| Turn on forward auth for API gateways (0.3.0) | talaan config enable gateway |
| More logs | TALAAN_LOG=debug talaan |
Back up and restore
| Do this | Type this |
|---|---|
| Back up a running server | talaan backup -o backup.jsonl --url http://localhost:8080 -u admin -p "$PW" |
| Back up into a folder (timestamped file) | talaan backup -o /backups/ --url ... |
| Back up a stopped server | talaan backup -o backup.jsonl (with a saved login: add --offline) |
| Save a login for later commands (0.3.0) | talaan login http://localhost:8080 -u admin -p "$PW" · forget it: talaan logout |
| Drop history before a date (0.3.0, server stopped) | talaan compact --before 2026-01-01T00:00:00Z --yes |
| Restore everything | TALAAN_DATA_DIR=/var/lib/talaan-new talaan restore --backup-file backup.jsonl |
| Restore to a moment | talaan restore --backup-file backup.jsonl --until 2026-11-29T09:59:00Z |
| Restore to a log position | talaan restore --backup-file backup.jsonl --until 4182 |
LDAP
| Do this | Type this |
|---|---|
| Who am I? | ldapwhoami -H ldap://localhost:3389 -D cn=admin,dc=example,dc=org -w "$PW" |
| What does the server support? | ldapsearch -H ldap://localhost:3389 -x -b '' -s base (no login needed) |
| Find a user | ldapsearch -H ldap://localhost:3389 -D cn=admin,dc=example,dc=org -w "$PW" -b dc=example,dc=org '(uid=juan)' |
| Add from a file | ldapadd -H ldap://localhost:3389 -D cn=admin,dc=example,dc=org -w "$PW" -f users.ldif |
| Change an attribute | ldapmodify ... with changetype: modify / replace: mail |
| Rename / move | ldapmodrdn -H ldap://localhost:3389 -D cn=admin,dc=example,dc=org -w "$PW" -r uid=juan,ou=people,dc=example,dc=org uid=juan.dc |
| Change your password | ldappasswd -H ldap://localhost:3389 -D uid=juan,ou=people,dc=example,dc=org -W -A -S |
| Reset someone's password (generated) | ldappasswd -H ldap://localhost:3389 -D cn=admin,dc=example,dc=org -w "$PW" uid=juan,ou=people,dc=example,dc=org |
| Use StartTLS | add -ZZ |
| Log in with a client certificate (0.3.0) | LDAPTLS_CERT=me.crt LDAPTLS_KEY=me.key ldapwhoami -H ldaps://localhost:3636 -Y EXTERNAL |
| Groups of a user | ldapsearch ... '(uid=juan)' memberOf |
| Page through results | add -E pr=100/noprompt |
| Delete | ldapdelete -H ldap://localhost:3389 -D cn=admin,dc=example,dc=org -w "$PW" uid=juan,ou=people,dc=example,dc=org |
| Compare | ldapcompare -H ldap://localhost:3389 -D cn=admin,dc=example,dc=org -w "$PW" uid=juan,ou=people,dc=example,dc=org sn:'Dela Cruz' |
| Search the past | add -e "2.25.203361157072571637504597907948600948491=$(printf %s 2026-11-29T10:00:00Z | base64)" |
| Show server-managed attributes | add '+' to the attribute list (entryUUID, createTimestamp, modifiersName, ...) |
HTTP
| Do this | Type this |
|---|---|
| Alive? Ready? | curl localhost:8080/livez, curl localhost:8080/readyz |
| Metrics | curl localhost:8080/metrics |
| Search | curl -u admin:"$PW" 'localhost:8080/api/v1/search?filter=(uid=juan)&attrs=cn,mail' |
| Search the past | add &asOf=2026-11-29T10:00:00Z (or &asOf=42) |
| An entry's history | curl -u admin:"$PW" 'localhost:8080/api/v1/history?dn=uid=juan,ou=people,dc=example,dc=org' |
| Changes since 100 | curl -u admin:"$PW" 'localhost:8080/api/v1/events?after=100' |
| SCIM: list users | curl -u admin:"$PW" localhost:8080/scim/v2/Users |
| SCIM: deactivate a user | curl -X PATCH -H "Authorization: Bearer $TALAAN_API_TOKEN" -H 'content-type: application/scim+json' -d '{"Operations":[{"op":"replace","path":"active","value":false}]}' localhost:8080/scim/v2/Users/<id> |
| SCIM: find a user | curl -u admin:"$PW" --get --data-urlencode 'filter=userName eq "juan"' localhost:8080/scim/v2/Users |
| With the API token | -H "Authorization: Bearer $TALAAN_API_TOKEN" instead of -u |
Replicas and limits
| Do this | Type this |
|---|---|
| Run a replica | TALAAN_REPLICATION_ROLE=replica TALAAN_REPLICATION_PRIMARY_URL=http://primary:8080 TALAAN_REPLICATION_TOKEN=... talaan |
| Is the replica up to date? | curl -s localhost:8080/metrics | grep replication_lag |
| Rate-limit per address | TALAAN_RATE_LIMIT=50 talaan |
| Require TLS for passwords | TALAAN_REQUIRE_TLS_FOR_BIND=true talaan |
| Who is being throttled? | curl -s localhost:8080/metrics | grep throttled |
Kubernetes
| Do this | Type this |
|---|---|
| Install | helm install talaan oci://ghcr.io/talaan-dev/charts/talaan -n talaan --set suffix='dc=example\,dc=org' |
| All values | helm show values oci://ghcr.io/talaan-dev/charts/talaan |
| Reach it locally | kubectl -n talaan port-forward svc/talaan 3389:389 8080:8080 |
| Logs | kubectl -n talaan logs statefulset/talaan -f |
| Three servers (1 primary, 2 replicas) | --set replicaCount=3 |
| Add monitoring | --set serviceMonitor.enabled=true --set prometheusRule.enabled=true --set grafanaDashboard.enabled=true |
Ports and paths
| What | Where |
|---|---|
| LDAP / LDAPS / HTTP | 3389 / 3636 / 8080 |
| Data | /var/lib/talaan/talaan.redb |
| Config | /etc/talaan/talaan.toml |
| Users / groups | ou=people,<suffix> / ou=groups,<suffix> |
| Admin | cn=admin,<suffix> (login name admin over HTTP) |
Talahuluganan: the dictionary
Talahuluganan (Tagalog) — a dictionary, a glossary. The words you meet around Talaan.
Talahuluganan is Tagalog for a dictionary or glossary, from kahulugan, "meaning". Here are the words you meet around Talaan, in plain language.
Talaan words
Talaan : Tagalog for a register or record book. Our directory server, which keeps a record of every change.
Log (the change log) : The append-only list of every change ever made. The directory you see is built from it.
Event
: One entry in the log: what changed (added, modified, deleted), which entry, who did
it, when, and the entry's state afterwards.
Sequence number (seq)
: An event's position in the log: 1, 2, 3, ... with no gaps. "As of seq 42" means "right after
the 42nd change".
Log position / log head
: The seq of the newest event. Shown as Log position on the dashboard.
Time travel
: Searching the directory as it was at a past seq or time.
As-of control
: The LDAP control (2.25.203361157072571637504597907948600948491) that asks for time travel.
The 2.25 prefix is the standard arc for identifiers made from a UUID, so it needs no
registration.
Point-in-time restore : Rebuilding a directory from a backup, stopping at a chosen moment.
Module
: An optional part (api, scim, metrics, webhooks, otlp, ldaps), built in with a Cargo feature
and switched with talaan config enable|disable.
Primary / replica : The primary accepts changes; replicas copy its log and serve reads. See Replication.
Referral : An LDAP answer saying "ask that server instead"; replicas send one for writes.
Access rule (ACL) : Who may read, write, add or delete in a subtree. See Access control.
Lockout : Refusing logins for a while after repeated failures, per account and per address.
Throttling : Refusing requests above a rate, to protect the server.
Historical index : Every value every entry ever had, so searches in the past are as fast as normal ones.
Kodigo : Filipino for a cheat sheet. Ours.
LDAP words
Directory : A database of people, groups and devices, organised as a tree and read far more often than written.
Entry : One object in the directory, like a user or a group. A set of attributes plus a DN.
DN (distinguished name)
: An entry's full name and place in the tree, read from left (the entry) to right (the root):
uid=juan,ou=people,dc=example,dc=org.
RDN (relative distinguished name)
: The leftmost part of a DN, e.g. uid=juan.
Suffix / base DN
: The root of your tree, e.g. dc=example,dc=org.
Attribute
: A named field with one or more values: mail, cn, member.
objectClass
: Says what kind of entry it is: inetOrgPerson (a person), groupOfNames (a group),
organizationalUnit (a folder).
Operational attribute
: Kept by the server, not by you: entryUUID, createTimestamp, modifyTimestamp,
creatorsName, modifiersName. Returned only when asked for (+).
Bind : Logging in to LDAP with a DN and a password.
Root DN / admin
: The superuser, cn=admin,<suffix>. Not stored as an entry.
Root DSE
: The nameless entry ("") that describes the server: versions, controls, suffix.
Filter
: A search condition in parentheses: (&(objectClass=inetOrgPerson)(uid=j*)).
Scope
: How far a search looks: base (one entry), one (its children), sub (the whole subtree).
Control : An optional extra attached to an LDAP request that changes how the server handles it.
LDIF
: The text format for LDAP entries and changes, used by ldapadd and ldapmodify.
Naming context : A tree the server holds, with its own root (suffix). A server can hold several.
Paged results : Asking for a large search result in pages (RFC 2696).
memberOf
: The groups a user belongs to, computed from the groups' member values.
SASL PLAIN : Logging in by sending the user name and password inside SASL (RFC 4616); only over TLS.
Password Modify
: The standard LDAP operation behind ldappasswd (RFC 3062).
LDAPS / StartTLS : LDAP over TLS from the first byte (port 636; Talaan uses 3636) / upgrading a plain connection to TLS.
Everything else
SCIM : A standard REST API (RFC 7643/7644) for creating and managing users and groups, used by identity providers and SaaS apps.
Argon2id : A deliberately slow, memory-hungry password hash that makes guessing passwords expensive.
redb : The embedded database Talaan stores its log in. No separate server needed.
OpenMetrics / Prometheus
: The text format for metrics at /metrics, and the system that collects them.
OpenTelemetry (OTLP)
: The standard for sending traces; OTLP is its wire protocol.
CloudEvents : A standard envelope for events, used by Talaan's webhooks.
SBOM / provenance / cosign : A list of everything inside the image / a signed record of how it was built / the tool that signs and verifies images.
Raft : A way for several servers to agree on one log, and to pick a new leader by themselves when one fails. Talaan clusters use it from 0.3.0 (talaan-raft).
HTTP API and SCIM
All endpoints share one listener (default :8080).
Authentication
| Header | Who you are |
|---|---|
Authorization: Bearer <api token> | the admin, recorded as actor cn=api |
Authorization: Basic <base64(login:password)> | a directory login: admin, a user's uid, or a full DN |
Without valid credentials you get 401 with a WWW-Authenticate header. Throttled
requests and locked logins get 429 with Retry-After; writes sent to a read replica get
503.
Health and metrics (no login)
| Method and path | Returns |
|---|---|
GET /livez | 200 ok while the process runs |
GET /readyz | 200 ready when storage is readable, else 503 |
GET /metrics | OpenMetrics text (module metrics) |
Talaan API (module api)
Errors use RFC 9457 application/problem+json.
| Method and path | Query | Returns |
|---|---|---|
GET /api/v1/search | base (default suffix), scope = base|one|sub|children, filter (LDAP syntax), attrs (comma list, *, +), asOf (seq or RFC 3339) | [{ "dn": "...", "attributes": { "cn": ["..."] } }] |
GET /api/v1/history | dn | the entry's events, oldest first |
GET /api/v1/events | after (seq, default 0), limit (max 1000) | events after after, secrets removed; the admin and (from 0.5.2) directory managers, who may read and write everything |
GET /api/v1/backup | after, limit | raw events with password hashes; admin only. The X-Talaan-Head header carries the newest sequence number (replicas use it to report lag) |
An event:
{ "seq": 42, "at_ms": 1764411302114, "actor": "cn=admin,dc=example,dc=org",
"dn": "uid=juan,ou=people,dc=example,dc=org", "kind": "modified",
"entry": { "dn": "...", "attrs": { "mail": { "name": "mail", "values": ["juan@example.org"] } } } }
SCIM 2.0 (module scim)
Base path /scim/v2. Content type application/scim+json. Errors follow RFC 7644 §3.12.
| Method and path | Does |
|---|---|
GET /ServiceProviderConfig, GET /ResourceTypes | discovery |
GET /Users, GET /Groups | list; filter, startIndex, count |
POST /Users, POST /Groups | create (201 with Location) |
GET /Users/{id}, GET /Groups/{id} | read (id is the entry's entryUUID) |
PUT /Users/{id}, PUT /Groups/{id} | replace (a new userName / displayName renames the entry) |
PATCH /Users/{id}, PATCH /Groups/{id} | partial update (RFC 7644 §3.5.2), as Entra ID and Okta send it |
DELETE /Users/{id}, DELETE /Groups/{id} | delete (204) |
Supported filters: <attr> eq "<value>", joined with and, on id, userName,
displayName, emails/emails.value, name.givenName, name.familyName (Users) and id,
displayName (Groups).
Mapping
| SCIM | LDAP |
|---|---|
User userName | uid (and the DN: uid=<userName>,ou=people,<suffix>) |
name.givenName / name.familyName | givenName / sn |
displayName | cn |
emails[].value | mail |
password (write only) | userPassword (hashed) |
active | false sets pwdAccountLockedTime (login disabled). With [access] admin_only_account_state (0.5.2 opt-in, default from 0.6.0) only the admin (or the API token) changes it; another caller gets 403 |
externalId, title, phoneNumbers | scimExternalId, title, telephoneNumber |
Group displayName | cn (DN cn=<name>,ou=groups,<suffix>) |
Group members[].value | member (the user's DN) |
id | entryUUID |
Not supported: bulk, sorting, ETags. Unmapped PATCH paths return 400 invalidPath.
LDAP support
Operations (RFC 4511)
| Operation | Supported |
|---|---|
| Bind: simple | ✅ |
| Bind: SASL PLAIN | ✅ over TLS |
| Bind: SASL EXTERNAL | ✅ 0.3.0: TLS client certificates, when ldap.client_ca is set |
| Bind: SASL GSSAPI (Kerberos) | ❌ does not fit; see Several domains |
| Search | ✅ all scopes; filters and, or, not, =, *, substrings, >=, <=, ~= (as =) |
| Compare | ✅ |
| Add, Modify, Delete | ✅ |
| Modify DN (rename, move) | ✅ entries and whole subtrees |
| Abandon, Unbind | ✅ |
| Extensible-match filters | ❌ evaluated as undefined (match nothing) |
Controls
| Control | OID |
|---|---|
| Talaan as-of (time travel) | 2.25.203361157072571637504597907948600948491 |
| Simple paged results (RFC 2696) | 1.2.840.113556.1.4.319 |
| ManageDsaIT (RFC 3296), 0.3.0 | 2.16.840.1.113730.3.4.2 |
Other controls are ignored when not critical and refused (unavailableCriticalExtension)
when critical, as RFC 4511 requires.
Extended operations
| Operation | OID |
|---|---|
| WhoAmI (RFC 4532) | 1.3.6.1.4.1.4203.1.11.3 |
| Password Modify (RFC 3062) | 1.3.6.1.4.1.4203.1.11.1. For your own password, give the current one (ldappasswd -A -S); from 0.5.1 it is required |
| StartTLS (RFC 4511 §4.14) | 1.3.6.1.4.1.1466.20037 |
Server-managed attributes
entryUUID, createTimestamp, modifyTimestamp, creatorsName, modifiersName,
and the computed memberOf. Ask for them by name or with +.
Result codes you may see
| Code | When |
|---|---|
| 3 timeLimitExceeded | 0.5.1: a search ran past [limits] search_time_limit_ms; the entries found so far come first |
| 4 sizeLimitExceeded | the client's size limit, or (0.5.1) [limits] max_search_entries / max_paged_entries for anyone but the admin and exempt; the first entries come first (on a paged search, on the last page) |
| 10 referral | a write sent to a read replica, or an operation below a referral entry |
| 13 confidentialityRequired | a password bind without TLS while require_tls_for_bind is on |
| 49 invalidCredentials | wrong password, unknown user, or a disabled account |
| 50 insufficientAccessRights | an access rule does not allow it |
| 51 busy | rate-limited, a locked account or address, or (0.5.1) too many password checks at once |
| 53 unwillingToPerform | e.g. removing an entry's RDN value, changing your own userPassword with Modify instead of Password Modify (0.5.1), Password Modify of your own password without the current one (0.5.1), or time travel to before a compaction |
| 65 objectClassViolation | 0.3.0 schema check: a required attribute is missing, or a value has the wrong syntax |
Binary values (0.3.0)
jpegPhoto, userCertificate, cACertificate, userSMIMECertificate and the other binary
attributes keep their bytes exactly. Certificate attributes are returned as ;binary
(RFC 4522), and userCertificate;binary in a request means the same attribute. Over HTTP and
SCIM, binary values are base64.
Schema (0.3.0)
Standard object classes need their required attributes (person needs cn and sn,
posixAccount needs uid, uidNumber, gidNumber and homeDirectory, and so on), and
well-known attributes are checked for their syntax (integers, DNs, GeneralizedTime, LDAP URLs).
Classes and attributes Talaan does not know are stored as they are, so applications can keep
their own. Turn the checks off with [schema] enforce = false.
Subschema and computed attributes (0.4.0)
cn=Subschema (named by the root DSE's subschemaSubentry) lists the attribute types, object
classes, syntaxes and matching rules Talaan knows, with their standard OIDs:
ldapsearch -H ldap://localhost:3389 -x -b cn=Subschema -s base '(objectClass=*)' +
The schema stays open: attributes Talaan does not list are still stored. Ask by name or with +
for the computed attributes entryDN, hasSubordinates, numSubordinates (children you may read
only), structuralObjectClass and subschemaSubentry. With [schema] nested_groups = true,
memberOf and access rules that name a group also follow groups inside groups.
Not supported
ppolicy controls: lockout and disabled accounts are covered by Security
and pwdAccountLockedTime; a password-quality policy is on the list in
Where we are now.
Changelog
All notable changes to Talaan. Versions follow Semantic Versioning; before 1.0, a minor version may change behaviour.
Helm chart 0.6.3 — 2026-12-01
Talaan 0.5.3 by default. Upgrading rolls the pods once (a new image).
- The ServiceMonitor scrapes each pod once. It used to match every Service with an
httpport (the main one,-headless, and-lan/-primarywhen rendered), so each pod was scraped two or three times. After the upgrade, summed rates and counters on dashboards drop to their true values (a half or a third of before), and alerts on summed rates, such asTalaanBindFailureSpike, fire at the real rate. That's the fix, not an outage. - Scaling a cluster no longer restarts its members. Raising or lowering
replicaCountused to restart every running member one at a time; now only the new pods start (and, scaling down, the removed ones stop). Any other config change still rolls the pods.
v0.5.3 — 2026-12-01
A small fix; upgrade at your convenience (0.5.2's security fix is in it too).
Fixed
- The CLI (
talaan login,talaan backup --url) no longer crashes on a host without CA certificates, such as a minimal container beforeca-certificatesis installed: a plainhttp://URL works, and anhttps://one says to installca-certificatesor pointSSL_CERT_FILEat a CA bundle (found by Carl).
v0.5.2 — 2026-12-01
A security release. Upgrade from any earlier version; nothing in your configuration changes.
Upgrade notes
- Change passwords. Up to 0.5.1, any logged-in user could read every stored password hash through search
filters (below), so hashes may have been copied. Change passwords: first the accounts with hashes imported from
other directories (
{SSHA},{MD5},{CRYPT}: they crack in minutes), then administrator accounts that are directory entries and service and bind accounts, then everyone else. The configured admin isn't affected: its password is never stored in the directory. Keep backups and exports, which hold hashes, away from non-admins. - A filter on
userPasswordmatches nothing, for anyone, the admin included. Scripts that searched(userPassword=*)(for example to find accounts with a password) now get no entries. - New:
[access] admin_only_account_state(off by default in 0.5.x, so nothing changes on upgrade). On, only the configured admin (or the API token) locks, unlocks or disables accounts (talaanLockedUntil,pwdAccountLockedTime, SCIMactive), whatever the access rules say; turn it on unless you delegate unlocks to a helpdesk. 0.6.0 turns it on by default, and a delegated unlock right is planned for 0.7.0. If a rule lets non-admins write those attributes, 0.5.2 logs a warning at start-up naming the key. - If non-admins had write-everything rules, a stored
userPassword;x(an attribute option) may hold a plain-text value. It's hidden from now on; to remove it, take a backup (talaan backup -o backup.jsonl), rungrep -i 'userpassword;' backup.jsonl, delete those values as the admin, and change those passwords.
Security
- Search filters could read password hashes (GHSA-g898-9h32-wpw2,
High; found by Patrick). A substring filter on
userPassword, one character at a time, read out every user's stored hash, over LDAP, the HTTP API, the web UI and MCP, also as of a past time. Filters now see only what the reader can read back. Every release up to 0.5.1 is affected. - Attribute options on
userPassword, the lockout and server-kept attributes are refused; values stored before are hidden, and the admin may delete them (found by Patrick, confirmed by Franco; the cleanup by Carl). - With
[access] admin_only_account_state = true, access rules never grant the lockout and disable attributes; only the configured admin (or the API token) changes them, on modify, add and rename (found by Carl). - A user's history of their own entry hides the attributes the access rules hide from them, as search does (found by Patrick).
Changed
GET /api/v1/events(the change feed) also answers directory managers: users the access rules let read and write everything. Password hashes stay out of it.- Built with talaan-core 0.4.8.
Helm chart 0.6.2 — 2026-12-01
Talaan 0.5.2 by default, a security release: search filters could read password hashes
(GHSA-g898-9h32-wpw2). Upgrade, then
change passwords as the v0.5.2 notes say. New value: acl.adminOnlyAccountState (image
0.5.2 or later; false by default): true makes locking, unlocking and disabling accounts the configured admin's
alone; recommended unless a helpdesk unlocks accounts. Talaan 0.6.0 turns it on.
v0.5.1 — 2026-12-01
Upgrade notes
- Web session key under 16 characters: 0.5.1 refuses to start with a
[web] session_secret_file(chart:web.sessionSecretKey) under 16 characters, and warns under 32; 0.6.0 refuses under 32. Replace it before upgrading, e.g. withopenssl rand -base64 48. The key is now trimmed: if the file ends with a newline (asechowrites it), existing web logins end once after the upgrade. - Changing your own password through LDAP Modify or SCIM is refused: use Password Modify with the current
password (
ldappasswd -A -S; SSSD'spasswddoes) or the web UI. Password Modify on your own DN without the current password is refused too. Admin resets are unchanged. - New, off by default: search limits. Any logged-in user can read the tree, so we recommend turning them on:
[limits] max_search_entries = 5000,max_paged_entries = 50000,search_time_limit_ms = 10000, with sync accounts (Keycloak, Authentik, SSSD enumerating users) in[limits] exempt(chart:limits.*). Past a limit, LDAP answers with the first entries andsizeLimitExceeded/timeLimitExceeded; the HTTP API returns what was found withX-Talaan-Search-Limit; a SCIM list is refused with400 tooMany(provisioning tools page bytotalResultsand would sync a partial directory). Exempt accounts bypass the limits, not the access rules; keep an exempt group admin-managed. 0.6.0 turns them on by default. - "Busy" password checks: at most
min(CPUs, 4)run at once; when the short queue is full, a login gets LDAP 51 or HTTP 429 instead of waiting without end. - Raft in plain HTTP (the 0.4 layout) still starts, with a warning that also names forwarded passwords.
cluster.legacy_raft_on_http_port = trueturns it into an info line (the traffic stays unencrypted) and is what 0.6.0 will require for that layout. A cluster outside the chart: move toraft_listenwith TLS now.
Security
- An empty or short
[web] session_secret_filelet anyone forge a web login, an administrator's included: now refused under 16 characters (found by Patrick). - Web UI: changing your own password needs the current one. A wrong one counts as a failed login (lockout and throttling), and your other web sessions end after the change. Before, anyone holding a logged-in session could change the password and lock the owner out. An administrator's reset of someone else's password is unchanged, and is now recorded with who made it (by Carl; found by Franco and Louie).
- Your own password needs the current one, on every path (talaan-core 0.4.4, talaan-web 0.4.2; found by Franco and Louie). See the upgrade notes for LDAP Modify and SCIM.
- Bind timing no longer shows whether an account exists (talaan-core 0.4.4; found by Patrick).
- Bounded password checks: at most
min(CPUs, 4)run at once (19 MiB each); 64 more wait up to 2 s; the rest get "busy" (LDAP 51, HTTP 429) (talaan-core 0.4.4; found by Patrick). - Search limits, opt-in for everyone but the admin and
[limits] exempt(talaan-core 0.4.4, talaan-ldap 0.4.1, talaan-api 0.4.1, talaan-scim 0.4.1; found by Patrick): off by default in 0.5.1, see the upgrade notes. - API gateways (talaan-gateway 0.5.1; found by Patrick): a bare group name in a policy matched any group with
that name, so a user who may create groups somewhere could pass with a look-alike. Policies now compare DNs; a
bare name must name exactly one group. Gateways should authorize on the new
X-Talaan-Group-Dnsheader (guide). - Late cluster members catch up (talaan-raft 0.5.1; found by Patrick): a snapshot was refused by a 2 MB body
limit, so a member that joined late never caught up. Now up to
[cluster] max_message_mib(64 MiB), and the cluster secret is checked before any body is read. [cluster] secretis worth the admin password; the docs now say so, with how to rotate it.
Fixed
- The root DSE's
vendorVersionis the server's version; it was talaan-core's (talaan-core 0.4.4, by Carl). talaan compacton a cluster member now says cluster compaction is planned for 0.7.0.- README: the
ldapsearchtime-travel example base64-encodes the control value (ldapsearch -edecodes it).
Added
cluster.legacy_raft_on_http_port: acknowledges a cluster on the 0.4 layout (see the upgrade notes).[limits]max_search_entries,max_paged_entries,search_time_limit_ms,exempt,max_concurrent_hashes,hash_wait_ms, and[cluster] max_message_mib(configuration).
Helm chart 0.6.1 — 2026-12-01
Talaan 0.5.1 by default. Upgrade notes:
- A cluster needs
cluster.raftPort: without it the render fails (Raft, with password hashes, forwarded passwords and the cluster secret, would go in plain HTTP on 8080). Setcluster.raftPortandcluster.raftTlsSecret, orcluster.insecureRaft=truefor local tests. A release still on that layout:cluster.legacyRaftOnHttpPort=truefor the upgrade, then move. modules.webwithreplicaCount> 1 needsweb.sessionSecretKey, or the render fails (each pod would sign logins with its own key).- NetworkPolicy is on for clusters: a cluster release that relied on the old default gets one after the
upgrade. It closes the Raft port to anything outside the release; HTTP and LDAP stay open until
networkPolicy.httpFrom/ldapFromare set. Keep it off withnetworkPolicy.enabled=false(a release that already sets it keeps it off). Single servers are unchanged. security.requireTlsForBindis on withldaps.enabled: on such a release, clients that bind in plain LDAP fail until they use StartTLS or LDAPS. Keep the old behaviour withsecurity.requireTlsForBind=false.https.tlsSecretalone leaves it off.- Memory limit 256Mi (was 128Mi): about 35 MiB at rest plus 19 MiB per concurrent password check. In a cluster,
a member installing a snapshot holds about three times it: with 4 checks at once, 256Mi fits an event log of up to
about 40 MiB; give members 512Mi once it nears 64 MiB (
cluster.maxMessageMib, snapshots and memory). limits.*(maxSearchEntries,maxPagedEntries,searchTimeLimitMs: 0 = off, like the server;exempt,maxConcurrentHashes,hashWaitMs) andcluster.maxMessageMib: passed to the server for image= 0.5.1.
serviceMonitor.scheme(https whenhttps.tlsSecretis set) andserviceMonitor.tlsConfig: a server that serves HTTPS can be scraped.
v0.5.0 — 2026-11-30
Added
- Writes on any cluster member (
[cluster] forward_writes, on by default): a follower sends a write to the leader over the Raft port and returns its answer, for LDAP, SCIM, the HTTP API and the web UI. A client reads its own write back on the same member (the follower waits up to 2 s;talaan_forwarded_writes_total{outcome}counts the rarestalecase, which still succeeded). With no reachable leader the answer is "no leader reachable" and nothing was written. If an answer is lost mid-request, the error says "may or may not have been applied", and the write is never retried. LAN clients behindlanServicecan now write too (talaan-raft 0.5.0, talaan-core 0.4.3, talaan-metrics 0.4.1; by Carl and Franco). - Raft on its own TLS port (
[cluster] raft_listen,raft_tls_cert/raft_tls_key,raft_ca_file; chartcluster.raftPort,cluster.raftTlsSecret): a cluster can serve HTTPS, and Raft (which carries password hashes and the cluster secret) is encrypted. A member whose certificate does not name its own Raft address refuses to start and names the missing host.talaan cluster movemoves a running 0.4 cluster there in four steps (how). - Start a cluster from an existing server on Kubernetes:
TALAAN_SEED_FROM, chartcluster.seedFrom. It is ignored once the cluster exists (how). - Web UI: each history line shows the directory's change number (
#42), the same one time travel uses (talaan-web 0.4.1, by Carl).
Changed
talaan compactandtalaan restoreon a cluster member say what to do instead: restore into a single server, then start a new cluster from it. A compacted store can't seed a cluster.
Deprecated
- Raft on the HTTP port (the 0.4 layout) still works, with a warning, but sends Raft in plain text. Move to
raft_listen. From 0.6.0 it is refused unlesslegacy_raft_on_http_port = true(0.5.1).
Libraries
- talaan-core 0.4.3 (additive): the write-forwarding port (
Directory::with_forwarder,apply_forwarded,Observer::forwarded_write). talaan-raft 0.5.0: the TLS client,/raft/forward,PUT /raft/members/{id}, and membership changes run one at a time. talaan-metrics 0.4.1:talaan_forwarded_writes_total. talaan-web 0.4.1: the history's change numbers.
Helm chart 0.6.0 — 2026-11-30
Talaan 0.5.0 by default. New values: cluster.raftPort, raftTlsSecret (default https.tlsSecret),
raftCaKey, insecureRaft, moveRaftPort, forwardWrites, seedFrom. https.tlsSecret now works with
cluster.enabled once Raft has its own port. The certificate must name *.<release>-headless.<namespace>.svc.
The Raft port is not on the ClusterIP Service. A single server renders exactly as with 0.5.2.
v0.4.4 — 2026-11-30
Fixed
cn=Subschemacovers RFC 4519, 4524 (COSINE) and 2307 (NIS), plusnsAccountLockandauthorizedService. Schema-checking clients such as Authentik (Python's ldap3) no longer refusedistinguishedName(talaan-core 0.4.2, by Carl; root cause by Franco).
Helm chart 0.5.2 — 2026-11-30
Talaan 0.4.4 by default; no value changes.
v0.4.3 — 2026-11-30
Fixed
- Safety: a cluster founder that lost its volume and could reach no other member (a partition, or they were
down) could form a cluster of its own. It now forms only when a majority of the members, counting itself,
answer that there is no cluster yet; otherwise it waits up to 20 s and exits with the reason, and the restart
asks again. Members are asked at once; a member still starting (
503) counts as not answered; an unreadable2xxis a hard error. By Carl, with lazy-carl's reviews.
Helm chart 0.5.1 — 2026-11-30
Talaan 0.4.3 by default; no value changes.
Helm chart 0.5.0 — 2026-11-30
Talaan 0.4.2 by default (0.4.0 was never published). cluster.enabled (Raft, 3/5/7 pods, PDB),
cluster.ordinalIds in its own ConfigMap (only the replaced pod restarts), modules.web/mcp/gateway,
https.tlsSecret, lanService (LAN-only LoadBalancer; service.type: LoadBalancer is refused),
networkPolicy, proxy.*, schema.*. Not yet: https.tlsSecret with cluster.enabled, and LAN LDAP clients
following a follower's write referral (both planned for 0.6.0 with Raft on its own port).
v0.4.2 — 2026-11-30
Fixed
- Safety: a founder that lost its data was refused only on its first start; the crash-loop restart rejoined under its old id with empty data. The check now runs before Raft opens its state (found by Carl's cluster test).
Added
[cluster] ordinal_ids_file; a pod mapped inordinal_idsalways joins as a replacement, never forms.- A member's Raft state remembers its member id; starting it under another id is refused (talaan-raft 0.4.1, by Carl).
v0.4.1 — 2026-11-30
Security
memberOflists only groups the reader may read, and filters on it see only those (talaan-core 0.4.1, by Carl). Withkeep_default_rules = false, give service accounts that readmemberOfread access toou=groups.
v0.4.0 — 2026-11-30
Added
- Web UI at
/uiand MCP server at/mcp(modules, off by default), by Carl: web UI, MCP. - talaan-migrate, by Carl: move from OpenLDAP, 389-DS, FreeIPA, Active Directory or LDIF, and back out.
- Migrated password hashes:
{SSHA*},{SHA*},{CRYPT}(sha512/sha256/bcrypt),{PBKDF2-*}, 389-DS{PBKDF2_SHA256}log in and are upgraded to Argon2id. Only the admin may store a hash; work factors are capped; weak schemes become an{UNSUPPORTED}marker. - HTTPS on the HTTP port (
[http] tls_cert), PROXY protocol ([proxy]),talaan serve --seed-from,[cluster] ordinal_ids. - Subschema (
cn=Subschema), computed operational attributes, optional nested groups, by Carl. - Chart 0.5.0:
modules.web/mcp,https.tlsSecret,lanService,cluster.ordinalIds.
Changed
- Every talaan-* crate is 0.4.0 and on crates.io.
v0.3.3 — 2026-11-30
- Fixed: a founder that lost its data, started with a wrong cluster secret, could form a second cluster (its peers' "secret refused" answers were read as "no cluster yet"). Now only an unreachable peer is unknown.
- A skipped webhook resend after a leader change is logged; the release workflow can be re-run.
v0.3.2 — 2026-11-30
- Fixed: 0.3.1 did not build without the
raftfeature (the LDAP-only binary), so it has no GitHub release or image. Use 0.3.2.
v0.3.1 — 2026-11-30
The server binary only; the libraries stay at 0.3.0.
Fixed (found in review by Carl)
talaan cluster status|add|removesent an empty secret when it came fromsecret_file(the Helm chart's case), and did not take the member id from the host name.- Split-brain guard: only the founding member (lowest id) forms the cluster, and it refuses to start if it lost its Raft state while the cluster exists.
- Webhooks after a leader change arrive in order.
- Member URLs are checked at startup.
v0.3.0 — 2026-11-30
Fixed (known issues listed for v0.2)
| v0.2 issue | 0.3.0 |
|---|---|
| Failover was manual | Raft cluster ([cluster], chart cluster.enabled): automatic leader election, no lost acknowledged writes; talaan cluster status/add/remove. Raft by Carl |
| Replicas polled the primary | Streaming: replicas long-poll and get each change within milliseconds (replication.long_poll_seconds) |
| Lockout counted per server | Failed logins on replicas reach the primary; account locks apply on every server, and replicas still count while the primary is down |
| No schema checks | Schema: required attributes of standard classes, syntax of well-known attributes ([schema] enforce) |
| Binary values refused | Binary attributes byte for byte, ;binary (RFC 4522) |
| No SASL EXTERNAL | Client-certificate login (ldap.client_ca) |
| The log grows forever | talaan compact --before: keeps the present and each entry's last change; replicas stay correct |
memberOf in time travel was current | Historical memberOf |
No talaan login | talaan login / logout; backup uses the saved login (--offline to skip it) |
| No Windows or macOS builds | Release binaries for Windows x86_64, macOS arm64 and x86_64; CI tests both |
| Replica pods did not start with image 0.2.0 | The image is built with replica (and gateway); CI checks the image has every default feature |
Added
- Referral entries (RFC 3296) and the ManageDsaIT control: a subtree can live on another server.
- Webhooks: the CloudEvent
idis stable (<seq>-<at_ms>), so receivers can drop duplicates; in a cluster only the leader sends, at least once. - API gateway forward auth (
/gateway/auth, modulegateway, off by default), by Carl. DirError::Unavailable: LDAPunavailable(52), HTTP 503, for a cluster without a leader.POST /api/v1/bind-failures(admin) for replicas reporting failed logins;GET /api/v1/backup?wait=long-poll.
Changed
- Entries of standard classes must have their required attributes (for example
personneedscnandsn). Set[schema] enforce = falseto keep the 0.2 behaviour while you fix old data.
v0.2.0 — 2026-11-29
Fixed (every known issue listed for v0.1)
| v0.1 limit | v0.2 |
|---|---|
| Searches scanned every entry | Indexes for the attributes clients search on, and a subtree index; ~41,000 searches/s at 10,000 users (was 92/s) |
| Time travel replayed the whole log | Historical index: ~30,000 time-travel searches/s at 10,000 users (was 128/s) |
| One server only | Read replicas that follow the primary's log; writes get a referral |
| No entry renames (modrdn) | Renames and moves, including whole subtrees; references in groups follow |
| No StartTLS, no SASL | StartTLS, SASL PLAIN over TLS, and require_tls_for_bind |
| Fixed access rules | Access rules (ACLs) per subtree, subject and attribute |
| No bind rate limiting | Login lockout per account and per address, per-IP rate limits, connection caps |
ldappasswd not supported | Password Modify extended operation (RFC 3062) |
| Memory grew under login load | Argon2id runs at most once per CPU; mimalloc returns memory |
| Webhooks: one slow receiver delayed the others | One queue per receiver |
| SCIM: no PATCH | SCIM PATCH as sent by Entra ID and Okta; active disables logins; renames via userName |
Added
- Several naming contexts (
additional_suffixes): other domains and child domains. - Paged results (RFC 2696),
memberOf, standard object-class inheritance, so Keycloak, Grafana, Gitea, Authentik and Nextcloud work out of the box. - Disabled accounts with
pwdAccountLockedTime. - New crate talaan-replica; new metrics (
talaan_throttled_total,talaan_replication_*); 3 new alerts; dashboard rows Protection and Replication. - Helm chart 0.3.0:
replicaCount, a primary Service, security, limits and ACL values. - Docs now on GitHub Pages (mdBook).
Changed
EventKind::Renamedand thefromfield in events and webhooks (talaan.entry.renamed).- Deletes return every event they caused (the entry, and groups that lost the member).
- Data files are re-indexed automatically the first time v0.2 opens them.
v0.1.1 — 2026-11-29
- Ship
deploy/talaan.toml(it was wrongly ignored by git);backup -o <dir>/writes a timestamped file; end-to-end tests moved totalaan-e2e.
v0.1.0 — 2026-11-29
- First release: LDAPv3, time-travel search, history, SCIM 2.0, backup and point-in-time restore, Prometheus, OpenTelemetry, CloudEvents webhooks, container image, Helm chart.
Architecture
The big picture
LDAP clients SCIM / HTTP clients Prometheus OTel collector webhook receivers
│ │ ▲ ▲ ▲
▼ ▼ │ │ │
┌─────────────┐ ┌────────────────────────────┐ ┌────────────────┐ ┌──────────┐ ┌──────────────┐
│ talaan-ldap │ │ talaan-api talaan-scim │ │ talaan-metrics │ │talaan-otel│ │talaan-webhook│
└──────┬──────┘ └─────────────┬──────────────┘ └───────▲────────┘ └──────────┘ └──────▲───────┘
│ inbound adapters │ │ outbound adapters (ports) │
▼ ▼ │ │
┌──────────────────────────────────────────────────────────┴──────────────────────────────┴──┐
│ talaan-core Directory use cases: bind, search, add, modify, delete, history, as-of │
│ domain: DN, entry, filter, event, password (no I/O, no protocols) │
└───────────────────────────────────────────┬─────────────────────────────────────────────────┘
▼ EntryStore port
┌───────────────────┐
│ talaan-store-redb │ event log + current entries, one ACID transaction
└───────────────────┘
Talaan follows domain-driven design with a hexagonal (ports and adapters) layout:
- talaan-core holds the rules and nothing else: no network, no disk, no protocol types.
It defines ports, small interfaces the outside world plugs into:
EntryStore(storage),EventSink(receives every change),Observer(receives measurements). - Adapters translate between a protocol and the core. They depend on the core and never on each other.
- talaan (the binary) is the composition root: it reads the config, builds the adapters that are compiled in and switched on, and connects them.
The log is the database
change ──▶ Directory checks rules ──▶ one write transaction ─┬─▶ events: seq → {time, actor, dn, kind, entry after}
├─▶ entries: dn → entry (current state)
├─▶ index: attr+value → dn, tree: subtree ranges
└─▶ hindex: every value ever held (time travel)
──▶ EventSinks: metrics, webhooks
- Every change appends an event and updates the current entry in the same redb transaction, so the two can never disagree, even after a crash.
- Normal reads use the attribute index and the subtree index, so a search touches only the entries that can match. Time-travel reads use the historical index: they find the entries that ever held a value, then check each one's state at that point.
- History is the events for one DN. Backup is the events in order. Restore imports them, keeping their sequence numbers, times and actors.
- One writer at a time; any number of readers (redb uses copy-on-write B-trees, so reads never wait for writes).
- Replicas apply the primary's events in order with
import, so their log, indexes and history are identical; a check of the newest event stops a replica whose log diverged.
One repository per crate
| Repository | Role | Depends on |
|---|---|---|
| talaan-core | domain and use cases | — |
| talaan-store-redb | storage | core |
| talaan-ldap | LDAPv3 wire protocol (ldap3_proto, tokio, rustls) | core |
| talaan-api | HTTP API (axum) | core |
| talaan-scim | SCIM 2.0 (axum) | core |
| talaan-metrics | Prometheus metrics (prometheus-client) | core |
| talaan-webhook | CloudEvents webhooks (reqwest) | core |
| talaan-otel | OTLP traces (opentelemetry) | — |
| talaan-replica | follows a primary's log (reqwest) | core |
| talaan | CLI and wiring (clap, mimalloc) | all of the above, by git tag |
| helm-charts | Kubernetes packaging | — |
Security design
- Passwords: Argon2id, at most one hash per CPU at a time, so a login flood cannot exhaust memory. Hashes never leave the server except in admin-only backups.
- Memory safety: Rust throughout; TLS by rustls (no OpenSSL).
- Least privilege: distroless non-root image; read-only root filesystem and no capabilities in the Helm chart; a sandboxed dynamic user under systemd.
- Supply chain: images ship with an SPDX SBOM and SLSA provenance and are signed with
Sigstore; dependencies are pinned in
Cargo.lock; Dependabot and OpenSSF Scorecard run on every repository.
Speed tests
Measured numbers, how we measured them, and how to measure them yourself. We publish the weak spots too.
The test
The load test (src/bin/bench.rs) uses a real LDAP
client over TCP, on the same machine as the server:
- add: create N users one after another; each add is a durable, synced write.
- search: 16 connections search
(uid=benchNNN)across the whole tree for 10 s. - bind: 16 connections log in as users (Argon2id password check) for 10 s.
- time travel: 16 connections run the same search as of a past log position for 10 s.
Each user count starts from an empty data directory.
Results (v0.5.0)
| CPU | Intel Core i3-7100T, 2 cores / 4 threads, 3.4 GHz (a 35 W desktop part) |
| Memory | 7 GB; the container is capped at 512 MiB (--memory 512m, no swap) |
| Disk | NVMe SSD (Samsung MZVLW256), ext4 on LVM |
| Build | the released image ghcr.io/talaan-dev/talaan:0.5.0, all modules; 2026-11-30 |
| How | rootless podman with --network host, server and load test on the same host |
| Shared host | this is a live Kubernetes worker of our homelab, not an idle machine: its load average was 2.6–3.7 during the run, so the server and the load test competed with other workloads for the 4 threads |
| Operation | 1,000 users | 10,000 users |
|---|---|---|
search by uid | 17,893 /s, p50 0.74 ms, p99 2.92 ms | 17,281 /s, p50 0.74 ms, p99 3.13 ms |
| time-travel search | 9,835 /s, p50 1.35 ms, p99 4.85 ms | 9,808 /s, p50 1.36 ms, p99 4.95 ms |
| bind (log in) ² | 69 /s, p50 215 ms | 69 /s, p50 214 ms |
| add (durable write) | 539 /s, p50 0.53 ms, p99 27 ms | 1,213 /s, p50 0.66 ms, p99 1.9 ms |
| memory: idle / peak | 29 MiB / 114 MiB | 34 MiB / 170 MiB |
| data on disk | 4.8 MB | 48 MB |
² One password check takes 25 ms here (p50; p95 30 ms) when a single connection logs in. With 16 connections the median rises to ~215 ms because they queue for the hash slots (one per CPU thread); see what the numbers mean.
Directory size still does not matter for searches, present or past: 10× the users, the same speed.
These numbers are not comparable with the v0.2 numbers below: a different CPU, a native NVMe disk instead of WSL2's virtual disk, a 512 MiB memory cap, and a busy host. Logins show the shared host most: the Argon2id check is pure CPU work, and this CPU has 2 cores (4 threads) that it shares with other workloads, so 69 logins/s here against ~120/s on v0.2's idle 4-core i3-9100F.
Port forwarding matters too. The same run with rootless podman's -p port forwarding (a
userland proxy between client and server) gave 11,765–12,403 searches/s (p50 1.12 ms). Use host
networking, or a real network, when you measure.
Results (v0.2)
Measured on Talaan v0.2.0 (2026-11-29), an Intel Core i3-9100F (4 cores, 3.6 GHz) with 12 GB of memory under WSL2 on Windows, on a WSL2 virtual disk (ext4 on a VHDX); release build, all modules, mimalloc, no memory cap.
| Operation | 1,000 users | 10,000 users |
|---|---|---|
search by uid | 44,113 /s, p50 0.29 ms, p99 1.37 ms | 45,228 /s, p50 0.28 ms, p99 1.26 ms |
| time-travel search | 36,369 /s, p50 0.36 ms, p99 1.50 ms | 36,730 /s, p50 0.36 ms, p99 1.48 ms |
| bind (log in) | 120 /s, p50 125 ms | 119 /s, p50 128 ms |
| add (durable write) | 33 /s ¹, p50 4.0 ms | 207 /s, p50 3.7 ms, p99 49 ms |
v0.1 → v0.2 at 10,000 users
| Operation | v0.1 | v0.2 | |
|---|---|---|---|
search by uid | 92 /s, p50 165 ms | 45,228 /s, p50 0.28 ms | ~490× faster |
| time-travel search | 128 /s, p50 120 ms | 36,730 /s, p50 0.36 ms | ~290× faster |
| peak memory | 425 MB | 233 MB |
Size and memory
| v0.5.0 | v0.2 | |
|---|---|---|
Binary, all modules (talaan-linux-x86_64) | 14.1 MiB | 10.0 MB |
Binary, LDAP + LDAPS (talaan-minimal-linux-x86_64) | 7.7 MiB | 7.1 MB |
| Binary, LDAP only (no TLS) | not built for releases | 3.6 MB |
Container image (linux/amd64) | 41.9 MiB | — |
| Memory at idle | 29–34 MiB | 33 MB (13 MB with MIMALLOC_PURGE_DELAY=0) |
| Memory peak, 1,000 / 10,000-user test | 114 / 170 MiB | 177 / 233 MB |
| Data on disk | 4.8 MB per 1,000 users, including the full log and indexes | the same |
v0.5.0 sizes are the release assets. The peak stayed well under the 512 MiB cap (no OOM kill in either run).
What the numbers mean
- Logins are slow on purpose. Each login checks the password with Argon2id, 19 MiB of
memory, 2 iterations, 1 lane (
m=19456,t=2,p=1, theargon2crate's defaults), the minimum the OWASP Password Storage Cheat Sheet recommends. One check took 25 ms on the v0.5.0 host. The cost is per login by design: someone who steals the hashes, or floods the login, gets few guesses per second. Talaan runs at most one check per CPU thread, which also caps memory (19 MiB each), so logins per second grow with cores: 69/s on the busy 2-core/4-thread host, ~120/s on v0.2's idle 4-core one. A login's latency under load is mostly waiting for a free slot (p50 ~215 ms with 16 connections against 25 ms alone). - The hash cost is not configurable in 0.5.0. Each stored hash records its own parameters, so a future setting would apply to passwords set after the change. Lower cost means more logins per second and also more guesses per second for anyone holding the hashes; to absorb login bursts, add cores rather than lowering the cost. Add login lockout and rate limits on top.
- Indexes cost disk. The attribute, subtree and historical indexes roughly triple the data
size compared with v0.1 (4.8 MB vs 2.1 MB per 1,000 users). Choose indexed attributes with
[index] attributes = [...]if disk matters more than speed. - ¹ Adds wait for the disk. Each add is synced before Talaan answers, so a crash never loses an acknowledged change. The median stays at 3–4 ms; the tail depends on the disk. On WSL2's virtual disk, with other workloads running, the same 1,000-user test has given 33–56 adds/s in some runs and 262–375 adds/s in others. A native SSD gives steadier results: on v0.5.0's NVMe disk the median add was 0.5–0.7 ms.
What we found and fixed while testing
- v0.1: memory climbed to 601 MB under load and never came down. The system allocator kept freed Argon2 blocks and search buffers; switching to mimalloc cut the peak to ~150 MB and made searches 30% faster.
- v0.2: the first index version combined a broad
objectClassindex with a preciseuidindex, building a 5,000-entry set to keep one. Planning the selective clause first made(&(objectClass=…)(uid=…))searches as fast as plainuidones.
Run it yourself
git clone https://github.com/talaan-dev/talaan-e2e && cd talaan-e2e
export TALAAN_ADMIN_PASSWORD='bench-admin-password'
TALAAN_DATA_DIR=$(mktemp -d) talaan & # a server to test
cargo run --release --bin bench -- --url ldap://127.0.0.1:3389 \
--suffix dc=example,dc=org --users 1000 --concurrency 16 --seconds 10
Please share your numbers, especially from real servers, in a GitHub issue.
Not measured yet
We have not run OpenLDAP or 389 DS on the same machine, so we publish no comparison. When we do, the method and the raw numbers will be here.