Skip to content

ACM — Access Connectivity

This guide is split into three parts, and you are on Short info. Continue with the tutorial or browse the samples.

ACM answers: who may access a screen, operation or data resource, and under which conditions?

Use it when access rules must be reviewed consistently across personas, screens and domain/data resources. Start with two roles, one resource, an allowed request and a denied request. Specify defaults and ownership conditions explicitly. Coverage of rules is useful, but it is different from evidence that an application enforces them.

  • Treating screen visibility as the complete authorization boundary.
  • Leaving missing-rule defaults or conflicting-rule behavior implicit.
  • Reporting rule coverage as if it proved a deployed endpoint enforces access.

Role-based access control has a formal lineage including Ferraiolo and Kuhn’s 1992 NIST paper. Attribute-based conditions add context such as ownership. ACM is ContextBrew’s authored access layer referencing other models; it is not itself the RBAC standard or an independent model of the business domain.

An access matrix makes omissions visible, while predicates handle conditions a role alone cannot express. Review both allow and deny cases, including a user attempting to reach another user’s resource. Never infer a secure default from an unconfigured matrix cell. Exported policy must be evaluated in the intended engine and connected to the application’s enforcement point. OPA’s policy-testing guide illustrates why authorization examples need executable assertions beyond a visual matrix.

Application-local checks are straightforward but can drift across endpoints. OPA, Cedar and Cerbos are policy-engine choices with their own semantics; an ACM export needs target-specific validation. SCM shows available navigation and USM supplies persona context, but neither alone defines authorization.

Model Captures ACM uses it for
SCM Screens + routes ACM screen rows
DDD Aggregates ACM aggregate access
CBRL Requirements ACM requirement access
DSM Tables ACM data-access predicates
USM Personas ACM roles (default RBAC)
  1. RBAC (default) — USM personas become roles; the matrix starts green.
  2. ABAC — conditional predicates (WHEN resource.owner_id == principal.id).
  3. Aspect — aspect predicates (WHEN @security(level: "critical")).

Every ACM rule carries one of: ALLOW, DENY, or CONDITIONAL (with a predicate).

The matrix is a completion gate — a screen with no rule blocks recipes from shipping. ACM tracks the open gap as one of the seven weighted completeness dimensions.

Stored as models/acm.json. See the acm schema page for the normative JSON Schema and committed sample files.