What is Entitlements as Code?

A method for managing who has access to what with the habits of software teams.

A request becomes a pull request, it is approved, and each platform (Azure DevOps, GitHub, AWS, Jira) lights up as it follows Git.

In 30 seconds

Entitlements as Code is managing access the way software teams manage code.

  • Who has access to what is written down in Git, and the platforms follow it.
  • Every grant and every removal is a reviewed change, and software applies it: nobody copies it into each tool.
  • The groups are compared with Git all the time, and changes made by hand are seen as drift.
  • It is a method, not a tool: GitOps applied to entitlements, a framework, and a maturity model.

What it is

An entitlement is a specific right a person holds on a system. In practice it is a group in the identity provider that stands for one role, on one platform, in one place, and its members are the people who hold it. Entitlements as Code treats the list of who holds which entitlement as code. It is written in files in Git, every change to it is proposed and reviewed like a change to software, and the identity provider and the platforms are kept in line with what the files say.

The result is a record of access that is always current, that explains itself (who asked, why, who approved, until when) and that can be checked, reviewed and undone like any other change.

The problem it solves

Access piles up. Someone joins a project for a week and keeps the access for a year. An admin adds a colleague by hand during an incident and nobody writes it down. Requests arrive as tickets, approvals are given by whoever is available, and the change is then copied by hand into each tool. When an auditor asks who approved a grant, the answer takes days to put together, if it exists at all.

Code had the same problem once, and software teams solved it with version control and review: every change is proposed, reviewed by someone else, recorded, and easy to undo. Entitlements as Code applies the same habits to access.

The principles

An entitlement is a group in the identity provider: one role, where it applies, and who holds it. Entitlements as Code manages those groups with the four GitOps principles:

  1. Declarative. The access you want is written in files in Git, not the steps to get there.
  2. Versioned. Every change is a reviewed commit: the approval and the change are the same pull request.
  3. Applied automatically. Once approved, software applies the change; there is no hand step in between.
  4. Continuously reconciled. The groups are compared with Git all the time; anything else is drift, reported or put back.

Each principle, with why it matters and the habit it replaces: The principles. Who approves, how people ask and when access ends are practices: the framework.

Where it comes from

Entitlements as Code joins two traditions. From engineering it takes version control, code review, Infrastructure as Code and GitOps: the desired state is declared in Git and the systems are reconciled to it. From identity governance it takes least privilege, separation of duties, access requests and access reviews: the rules auditors have asked for since long before Git existed.

The full story, with sources: Where Entitlements as Code comes from.

Why "entitlements"

"Access as code" could mean network access, access policies or the authorization checks inside an application. "Entitlement" is the word identity governance uses for one specific right held by one person, which is exactly what this method manages: who holds what, who approved it, and until when.

The comparison with the neighbouring terms: Why "entitlements", not "access as code".

The framework

The lifecycle of a grant: request, approve, apply, reconcile, review and end, each change a reviewed pull request.
  • The framework: the lifecycle of a grant, the capabilities behind each step, and the scope.
  • Roles: requesters, owners, EaC admins, the IT team and auditors.
  • Maturity model: Declared, Applied, Enforced and Governed, with metrics for each level.
  • Glossary: the words used on this site.

In practice

On Microsoft Entra ID, access lives in groups and the platforms follow the groups. Entitlements as Code changes the groups only through reviewed pull requests, and watches for changes made by hand. You can apply it with tools you already run, or with Entitlements as Code by MoreThanOps, a solution built on this method.

Both routes, step by step: Entitlements as Code in practice.

Latest from the blog

  • Drift: access granted by hand in Entra

    Access added by hand in Entra is either reported, so a person decides, or put back to what Git says. And access that should end, ends.

  • Start read-only: observe first, then enforce

    Adopt Entitlements as Code on a live directory without changing it. Import what exists, observe with nothing written, then enforce one organization at a time.

  • Who approves an access request?

    The owner of a group approves who joins it, a change of owners needs two people, and the person asking never approves their own access.

All posts