Ayyoub Amjahed

Lineward

Identity governance (IGA) for humans and AI agents: an open source platform built in public, explicit about what is finished and what is not.

Roadmap · Identities, aggregation and the connectors that read

Roadmap of 9 segments, 1 closed. In progress: Identities, aggregation and the connectors that read.

Phase
1 of 8
Architecture decisions
12, one file each
Failure log
81 entries since 22 September
Tests passing
346, against a real PostgreSQL
Modules with enforced boundaries
13
Target systems it reads
Three for real: Keycloak, OpenLDAP and Okta
Synthetic population
5,000 employees from a fixed seed
Tenant isolation
PostgreSQL row level security
License
Apache 2.0
Public demo
Not yet, phase 8
Stack
Java 25, Spring Boot 4, PostgreSQL 18, Keycloak 26, OpenLDAP 2.6, Okta, Flyway, Testcontainers, Next.js
Code
Repository

Lineward is an open source identity governance and administration (IGA) platform. It answers the three questions that no organization above a few hundred people can answer with confidence: who has access to what, why they have it, and whether they should still have it.

It is built in public, decision by decision, and it is explicit about what is finished and what is not. Today it reads an authoritative source of record, derives the joiner, mover and leaver lifecycle from what that source asserts, computes the access each identity is due by rule, and isolates every tenant in the database rather than in application code. Aggregation, provisioning, certification and the agent governance layer are designed, documented and not yet built.

What makes it different from the IGA products that already exist is the second half of the problem. AI agents act with credentials, and they bring back every problem identity governance had already solved for people, multiplied by their speed. Lineward treats an agent as an identity with a lifecycle, a mandatory human sponsor, its own access and its own audit trail. When an agent acts for a person, its effective permissions are the intersection of both, so it can never do something that person could not do. If the sponsor leaves, the agent is suspended.

The problem

In any organization above a few hundred people, nobody can answer three questions with confidence.

Who has access to what? Accounts live in dozens of disconnected systems: a directory, an identity provider, a payroll application, a dozen SaaS products.

Why do they have it? Access accumulates. People change teams and keep the permissions of their previous role, a pattern known as privilege creep. Somebody granted a permission by hand two years ago and nobody remembers why.

Should they still have it? Accounts outlive the people who owned them. Orphan accounts, the most common finding in any access control audit, belong to nobody and often still work.

Identity governance is the discipline that answers those questions, and it is what regulators ask about first when they audit access control.

And it adds the dimension that matters now: AI agents act with credentials, and they bring back every problem identity governance had already solved for people, multiplied by their speed and autonomy. Agents with shared API keys that never expire. Agents with more permissions than they need. Agents still running after the project that created them ended. And no way to tell on whose behalf an agent acted.

The AI angle

Lineward works on both sides of the same problem, and that is what separates it from a classic IGA.

IAM for AI: governing agents. An agent is an identity with a lifecycle, a mandatory human sponsor, its own access, its own certification campaigns and its own audit trail. Its tools are modeled as entitlements, so being allowed to call request_access is a permission that gets requested, approved and recertified like any other. When an agent acts for a person, delegation is explicit: the token carries the person as subject and the agent as actor, following RFC 8693 token exchange. Effective permissions are the intersection of both, so an agent acting for someone can never do something that person could not do. If the sponsor leaves the organization, the agent is suspended automatically. There is a kill switch, per agent and global.

AI for IAM: agents that help. Certification campaigns fail in practice because reviewers approve everything without looking, and they do that because they lack context. A copilot that summarizes usage, age, risk, segregation of duties conflicts and comparison with peers in the same role turns a meaningless click into an informed decision. The agent proposes, the human decides. Queries run through typed read only tools, never free SQL, and always with the permissions of whoever is asking.

Every text coming from outside is treated as untrusted data, never as instructions.

This is the part of the roadmap that is designed and documented, not built. It is phases 6 and 7 of 8, and none of it runs today.

Architecture

A modular monolith. Thirteen modules with strict internal boundaries, verified by architecture tests that fail the build when somebody crosses one, without the operational cost of microservices. The platform reads an authoritative source over HTTP, stores what that source asserted separately from its own governed view of each person, and writes into a schema whose tenant isolation is enforced by the database.

The project implements published specifications rather than inventing its own: OAuth 2.x, OpenID Connect, PKCE, SCIM 2.0 (RFC 7643 and RFC 7644), LDAP, Token Exchange (RFC 8693), DPoP (RFC 9449), Rich Authorization Requests (RFC 9396), CIBA and the MCP authorization specification. Compliance capabilities are mapped against DORA, NIS2, ISO/IEC 27001 and the Spanish ENS.

Exact stack versions are pinned in an architecture decision record, with the reasoning for each one and the triggers that would justify revisiting it. That is not bureaucracy: the section below tells two occasions on which a combination of perfectly supported versions refused to start.

What works today

PieceWhat it does
HR simulatorA separate service that generates a synthetic 5,000 employee company from a fixed seed, so it serves the same population on every start. It also publishes the anomalies seeded into it, which lets a test assert on a specific finding rather than hope one turns up. It is a separate process on purpose: if it shared a database with the platform, aggregation would consist of Lineward reading its own tables
Synthetic data generatorA library with no dependencies and no clock: same seed, same population
Authoritative source ingestionLineward reads that system over HTTP, page by page, in full or only what changed. It stores what the source asserted separately from its own governed view of each person. Re-reading an unchanged extract writes nothing: a run reports 5,000 created the first time and 5,000 unchanged the second
Lifecycle event detectionClassifies a change as a joiner, a mover or a leaver by comparing two assertions from the source. It covers the retroactive termination, and the termination announced in advance, which is not found by comparing reads but by letting time pass
Birthright rulesComputes the access each identity is due from its attributes, and recomputes when its lifecycle status moves
Connector interface, read onlyThe interface every connector to a target system satisfies: test the connection, read accounts and read the entitlement catalogue. Its contract test was written against documents taken from a Keycloak that was actually running, not invented. Three systems that work differently in every respect have satisfied it without anything about it having to change, which is the only proof that it was an abstraction rather than wishful thinking
Keycloak connectorAgainst a real realm, over its admin API with a service account that can read and cannot write: the accounts that exist, the permissions the realm can grant and which accounts hold them. It pages by asking for one row more than it needs, which is the only way to tell a finished read from an interrupted one, and it walks the group tree rather than listing it, because Keycloak’s group endpoint serves only the top level. And it reads the accounts in two passes rather than one, because the user list does not return the service accounts of clients and reaching those needs a second endpoint and a wider role. A read that cannot see the clients refuses instead of reporting what it did see, since the alternative is a realm whose every machine account looks deleted
OpenLDAP connectorThe same three things over LDAP against a real directory, and nothing about the interface had to change for a system that works differently in every respect. Membership lives on the group rather than on the account, because memberOf does not exist in a directory until an overlay is configured to maintain it. Paging is the cookie of RFC 2696, which cannot be reconstructed by the caller and does not survive its own connection, so a read is a session and a cursor from a closed one is refused rather than answered with the first page. And an account is identified by the identifier the server assigns, not by its distinguished name, which changes the day somebody is moved between organizational units
Okta connectorThe same three things over Okta’s administration API against a real organization, and this connector is different in kind rather than in detail: there is no container to start, so the organization is a real account whose credential belongs to a person and cannot enter the repository. That is why what it signs and what it parses are pinned down by tests anybody can run, while the exchange against the real thing runs only where that credential is configured. Okta authenticates a service application by signature and not by a secret, so reaching it at all means three mechanisms stacked: an assertion signed with a registered key, a proof of possession bound to the method, the address and the token it carries, and a nonce the server supplies by refusing the first attempt. Its catalogue is two populations rather than one, because an assignment to an application is a grant of its own and not a consequence of a group, and both are walked behind a single cursor. And it is the only one of the three that reports when an account was last used, which is the source dormant account detection had none of. A read that sees nothing refuses instead of reporting an empty system, because scopes granted to an application that holds no administrator role return an empty list with a success code
Aggregation and correlationIt reads the permissions a target system publishes and registers the ones the catalogue did not have, writes down every account the system reports along with what that system said about it, and says which identity each account belongs to, by employee number and then by email. Against the directory this repository ships that is twelve accounts, ten of them matched and two that belong to nobody, which is the finding an aggregation is run to produce rather than an error. Reading the same directory again links nothing and revokes nothing, and still reports those two
Tenant isolationA schema with per-tenant isolation enforced by PostgreSQL row level security, tested against a real PostgreSQL with deliberate negative tests

What does not exist yet

The subtraction between the access a person is due and the access they have, so nothing is reconciled yet or reported as drift. Dormant account detection, which has a source now that the Okta connector reads one but is not built. Provisioning: nothing writes to a target system. The SCIM connector, which today is interface only. Requests and approvals. Segregation of duties. Certification. The hash chained audit log. Real time authorization. Agent governance. The user console. The public demo.

And two absences worth naming, because they look like gaps and are design. Correlation does not run against the accounts a system calls machines: a service account often carries the employee number of whoever created it, and the owner of an account is who answers for its access in a review, so who answers for a machine is a decision left to a person rather than to a rule, and the report counts those apart from the accounts whose owner no rule could find. And a read that is interrupted starts again rather than resuming where it stopped.

The agent layer is the end of the roadmap, not what is already done. What the project demonstrates today is the rigour of its foundations and its method, not a finished product. What can be claimed with force is that it is designed end to end and documented decision by decision.

Roadmap

PhaseScopeStatus
0Foundations: repository, decisions, domain model, skeleton, CIDone
1Identities, aggregation and the connectors that read target systemsIn progress
2Provisioning: writing to target systems, SCIM, retries and idempotencyPlanned
3Access model, requests and segregation of dutiesPlanned
4Certification and auditPlanned
5Real time authorizationPlanned
6AI agent governancePlanned
7AI agents serving IAM, and the MCP serverPlanned
8Hardening, performance and public demoPlanned

How it is built

The method matters as much as the product, because it is the only thing that is finished today. Five rules, and all five come from having needed them.

One decision, one file. Twelve architecture decision records, each with the context, the alternatives weighed, the one chosen and the consequences accepted. It is the public technical record of the project: the name, the license, the event transport, tenant isolation, stack versions, the visual identity, the domain model and the security posture are all there, each one dated.

No control is accepted until it has been seen to fail. This is not a style preference. An architecture test over thirteen empty modules passes green, and misconfigured row level security does not raise an error either: it lets the rows through in silence. Both look installed and neither is. So every control enters the repository with its negative proof done at least once: break on purpose what it should cover, check that it catches it, restore.

What is not built is said. The README does not promise capabilities, it declares which phase each module is in. And ADR-014 lists what is deliberately absent from the security posture, because a control described as present and half built is worse than one that is missing.

The data is synthetic, always. Five thousand employees generated from a fixed seed, with the anomalies seeded and published. There is no real personal data anywhere in the project, and there should not be.

What breaks gets written down. Forty-seven entries since 22 September, each with the symptom, the root cause and the operating rule that comes out of it. Several standing rules of the project were born in one of those entries, and without them you cannot tell why they exist. The next section is five of them.

What has gone wrong

A failure that is solved and not written down is lost, and it is usually the one that tells best afterwards. These five are picked because the lesson comes out of the project, and because none of them needs any identity governance knowledge to follow.

“No issues found”, over an empty set

The day dependency scanning was added, the tool finished with no issues found. It would have been easy to take that at face value. Two lines above was the giveaway: it located sixteen packages and discarded all sixteen, because their versions come from a BOM and it could not resolve them. The clean verdict was over an empty set.

Given the tree Maven had already resolved, it went from 0 to 63 packages with a real version, transitive ones included, and ten vulnerabilities appeared: seven in the library that parses every request body in the project and three in the embedded server, one of them an authentication bypass by capture and replay.

And it happened twice the same day. Hours later GitHub’s automatic alerts were switched on and we checked what they could see: the dependency graph had twenty-five packages, fifteen with no version, and not one of that morning’s ten findings was in it. Two different tools, from two different vendors, with the same blind spot, both reporting normality.

The rule. Declaring versions centrally is good practice, and it leaves naive tooling with nothing to read. A correct engineering decision can silently disable a security tool, with no error and a clean report. The number to read off a scanner is not its verdict, it is how many things it says it checked.

There is a second lesson, about the project. These controls had been deferred to phase 8, on the argument that a backend of two classes produces no findings. The argument was elegant and it was false: it confused “my code is small” with “my surface is small”. Those two classes drag in 63 dependencies nobody on this side wrote. The most uncomfortable finding appeared at the moment of least code in the project, which is exactly when the argument for deferring looked strongest.

Told in full in the note about the scanner.

A termination announced in advance kept its access past the date

Ingestion only recomputed an identity’s status when the fingerprint of the payload coming from HR changed. That looks correct and it is a legitimate optimization: if the source has said nothing new, there is nothing to recompute.

A termination announced in advance asserts the same record every night. On the day its date arrives, the source still says exactly the same thing, so there is nothing the fingerprint can see. Whoever was leaving kept their access until HR touched their record for some other reason, which may never happen.

Symptom: none. All eighteen ingestion tests passed, because not one of them ran two reads with different clocks.

The rule. A fingerprint of the source does not detect a change caused by the passage of time. Any state derived from comparing a value against today needs something to re-evaluate it even when the source stays quiet. Generally: checking “has the input changed?” does not replace checking “is the output still correct?”. And it carries an uncomfortable design consequence, because an incremental read only brings back what the source changed: date-driven transitions are only found by the full read, which turns “how often the full read runs” into a security decision rather than a cost one.

Told in full in the note about the fingerprint and the passage of time.

The application started in 0.667 seconds and had migrated nothing

With the first migration written and the tests green against a throwaway PostgreSQL, starting the application for real created no tables. It started fine, without a single warning, and the database stayed empty. Zero mentions of Flyway in the whole log. There was no error: there was silence.

The cause was that the framework’s major version had split autoconfiguration into one module per technology, and the piece that wires Flyway into Spring lived in an artifact that was not declared. Without it nobody configures Flyway and nobody complains, because nothing is broken: it simply does not exist.

The tests passed because they configured Flyway by hand, programmatically. That is, they tested the migration, not the startup.

The rule. The worst failure mode is not an error, it is the absence of behaviour. A test that builds the very piece the framework should configure does not test the integration, it tests the SQL. If the definition of done says “the application starts”, that is checked by starting it, not inferred from a green suite.

It is one of the five breakages in the note about versions.

Sixteen tests green and the main operation returned 400

The simulator’s change endpoint exists precisely to send only the fields that change. With sixteen tests passing, a curl carrying two of the eleven fields returned 400 Bad Request, and the error body named no field at all.

Two fields of the request object were primitive booleans, and omitting them makes the deserializer refuse to map a null onto a primitive, so the request dies before reaching the controller. But the cause that matters is another one: all sixteen tests built the request object in Java, so they always serialized the eleven fields and never sent a partial request. They tested the store through HTTP, not the HTTP contract.

The rule. A test that builds the payload in your own language does not test a contract: it tests your code twice. The typing that protects you inside the process is exactly what stops you reproducing what arrives from outside, because a complete record always serializes complete and what fails in production are the fields the client does not send. It was found by starting the service and hitting it with curl instead of settling for the suite.

A document that looked verified end to end

An architecture decision record about tenant isolation said, in its consequences, that the migration tool worked unchanged because it runs as the owner of the tables and the owner is not subject to the policies. And it said, in its mechanics, that every table carries the clause that exists precisely to subject the owner to those policies.

Both sentences were in the same file. It was reviewed, accepted and committed. The document carried a verification table at the end with four checks, all of them true, and none of them this one. The owner’s behaviour on write had been deduced from one of them, and the deduction was written in the same tone of a checked fact as the rest. Nobody noticed for ten days.

The rule. Verifying nine claims out of ten and writing the tenth from memory produces a document that looks verified end to end. A table of checks at the bottom grants an assurance that, in the reader’s head, extends to the whole text. Whatever a document asserts about the behaviour of a tool goes in the verification table, or goes marked as an assumption.

The pattern that repeats most

At least seven of the eighty-one entries are the same family, and it is worth naming because it is the reason the category of software this project builds exists at all.

Git reported one morning that six commits were unpushed; they had been on the server since the night before, because the tracking reference is not the state of the server, it is where that branch was the last time this clone spoke to it. A package search engine returned as latest a version older than the one the project had pinned and verified nine days earlier, and almost threw a correct decision away, because an index over a repository is not the repository. And a build that had failed was taken as green by reading the exit code of a grep at the end of the chain, over a summary filtered by a pattern that did not include the failure case: a filter that cannot see failure is not a summary, it is a bias.

None of those copies was corrupt. All of them were correct the moment they were created. The problem is the one every cache has: it does not know when it stopped being true, and nobody presents it with a warning.

And that is, exactly, the problem an IGA exists to solve. A governance platform maintains the expected state: who is entitled to which permission, by their job, by what was approved for them. It is its database and it answers fast and without hesitating. But the actual state lives in the target systems, and the two diverge the moment somebody grants a permission by hand. The sector calls it drift. Two design rules come out of that, and they are not matters of opinion:

A governance platform that does not periodically read the target systems again does not govern, it recites what it wrote itself. That process of reading them again is called aggregation, and it is what separates an IGA from a spreadsheet with a good interface.

Recertification campaigns run against the aggregated state, never against the expected one. If what a manager is shown to sign is the expected state, they are certifying that the platform is consistent with itself, which is true and useless. What an auditor wants to know is what that person can actually do, today, in the payments system.

The whole thing is told, with the four original cases, in a draft in the Lineward repository.

Security

An identity governance platform concentrates the answer to “who has access to what” and holds administrator credentials for every target system, so it is a high value target by construction. Two rules do most of the work.

A control goes where it cannot be bypassed, not where someone remembers not to bypass it. Tenant isolation is enforced by the database rather than by remembering to filter queries. The audit trail will be append-only by permissions, not by convention. The application connects as a role that owns nothing, precisely so that the policies apply to it: connecting as the owner would make every one of them silently do nothing.

No control is accepted until it has been seen to fail when it should. That is the rule from the section above, and the two entries that produced it are told there.

What runs today: dependency scanning that fails the build over the tree the build actually resolves, continuous monitoring of that tree, secret scanning with push protection, tenant isolation tested against a real PostgreSQL with deliberate negative tests, and module boundaries verified in code. What is missing is listed on purpose in a public decision record, because a control described as present and half built is worse than one that is missing.

The mark

A solid keyhole split by a horizontal slot. The slot is the ward, the internal obstacle in a lock that lets only the right key through, which is the second half of the name.

It is mass, not line: no strokes, no outlines, no rounded corners. It won among four proposals on one concrete test, the size one: it is the only one that does not fall apart at 16 pixels, which is where most people will see it, in the browser tab and in the repository avatar. The key proposal told the name better and its cuts disappeared below 32.

The colour is muted brass over warm bone, never pure white, with its dark theme equivalent. The brass is not used for small text: over bone it does not reach 4.5:1, so it lives in links, marks and large elements. The lightest grey admissible for small text is written down, because the classic mistake is lightening the greys until they “look refined” and leaving the interface below the threshold.

The monospace is not decoration either: the console is going to show account identifiers, native entitlement values, audit chain hashes and timestamps, and all of that compares better at a fixed width.

Three things you can check

Decisions on the record. Twelve architecture decision records, one file each, every one with the alternatives weighed and the consequences accepted.

Controls seen failing. No control is accepted until it has been seen to fail when it should. Tenant isolation is enforced by PostgreSQL row level security, and the negative tests are part of the suite.

Published standards, not invented ones. OAuth 2.x, OpenID Connect, SCIM 2.0, LDAP, Token Exchange (RFC 8693), DPoP, Rich Authorization Requests and the MCP authorization specification.

About this project

Lineward is an independent project. It is not affiliated with, endorsed by or derived from any employer or client, and it is designed entirely from public standards, open product documentation and industry literature.

All data in the project is synthetic, generated reproducibly from a fixed seed. No real personal data is used anywhere, and none should be.

Notes from this project