Anchor

Who can do what, in which organization?

Anchor is the organization layer for the products you build. Organizations, users, roles, permissions and licenses sit behind one API, so a new product starts with them in place.

One hierarchy for every product.

Each product declares its own resource types: workspaces, projects, documents. Its customers are organizations, and roles apply to a whole organization or to any resource in it.

ProductYour product
OrganizationAcme
WorkspacePayments
Memberada · Editor

Product users are a directory only: sign-in stays with your identity provider.

Ask, and get the reason.

Your backend asks whether a user or an organization API key may take an action on a resource, in the OpenID AuthZEN shape. A denial is a normal answer that names why.

  • NOT_A_MEMBER: the user is not in that organization.
  • RESOURCE_NOT_IN_ORGANIZATION: the resource belongs elsewhere.
  • MISSING_PERMISSION: the role does not hold the action, with the permissions it lacks.
Access evaluation

May ada write flows in the Payments workspace?

POST /access/v1/evaluation

  • user adamember of Acme
  • workspace Paymentsin Acme
  • flows:writeheld by Editor

decision: true

Fine-grained, on OpenFGA.

Every decision comes from OpenFGA, the Zanzibar-style engine, running inside Anchor. Each product gets its own store and a model compiled from its resource types and permissions. A role held on a workspace reaches every folder and document under it.

OrganizationAcme
Workspace · ada is EditorPayments
FolderInvoices
Document · can_writeQ3 report
Roles are dataCreating or changing a role writes tuples, never a new model.
UnregisteredCheck a resource you never registered by naming its parent.
No stale cacheThe check cache is off: a write applies to the very next decision.

Shaped like your product.

Declare the containers your product has, and add a new kind the day your product grows one: projects inside workspaces, teams, boards. Up to five levels deep, folders inside folders. Draw the tree in the admin canvas or keep it in Terraform.

  • Add a new container type at any level; roles already held keep reaching down.
  • Add, rename, move or remove a resource with one call.
  • Register only what holds a role; check anything else through its nearest container.
Container types

organizationworkspacefolderdocument

Acme’s resources

  • organizationAcme
  • workspacePayments ada · Editor
  • folderInvoices
  • documentQ3 report

ada can write Q3 report: her role on Payments reaches it.

Limits you can read, decisions you keep.

Each product declares a license schema and license templates; every organization holds one license copied from a template. Your backend reports usage, and Anchor reads each limit. Anchor validates but never gates: what to block stays your product’s call.

Example limits of one organization’s license
License fieldUsage shapeLimitUsageStatus
flowsgauge5037within_limit
seatsgauge1010at_limit
runswindowed counter1,0001,180exceeded

Status is computed on read. A limit with no usage on record reads stale.

Built to sit under your products.

RolesRoles and permission strings per product, held on an organization or a resource.
API keysProduct-specific keys for your backends, with their own permissions.
DirectoryProduct users without passwords: your identity provider signs them in.
OpenAPIAn OpenAPI 3.0 contract and a Go SDK.
TerraformProducts, roles, permissions, resource types, license schemas and templates as code.
TemplatesMove organizations between license templates, or adjust one customer’s license.

Source-available.

Free for permitted uses under FSL-1.1. Each version becomes Apache 2.0 two years after release.