New: Access Diff now reviews Terraform pull requests on GitHub

How it works

The five steps AccessRoot follows from connecting your environment to verifying a fix, and the concepts behind them.

AccessRoot follows access from a proposed change to the production environment and back to a fix. The product is organized around five steps: connect, map, review, verify and remediate. This page explains each step and the vocabulary that the rest of the documentation relies on.

The five steps

1. Connect

You connect the systems where access is defined and enforced. Cloud accounts (AWS, Google Cloud or Azure) are connected with read-only permissions. Repositories on GitHub or GitLab are connected for the repositories you choose, and Terraform or OpenTofu plans are read as part of the review workflow. Each connection has its own purpose and its own permissions, and you manage them under Settings › Connections.

2. Map

AccessRoot reads identity configuration, authorization policies, trust relationships and resource metadata, and builds the Access Graph: identities, roles, permissions and resources, with links to the code and the teams responsible. Where access is managed in infrastructure as code, a relationship in the graph points back to the file that defines it, for example infra/iam/data-access.tf.

3. Review

When a pull request changes infrastructure, Access Diff evaluates the proposed Terraform or OpenTofu plan against the current access model and reports which access paths would be added, removed or changed. The result appears in the pull request as a check, before anyone approves the change.

4. Verify

After deployment, Access Drift compares expected access (what your approved configuration defines) with observed access (what the cloud environment reports). A difference that changes what an identity can reach becomes a finding.

5. Remediate

When access should be narrower, Remediation prepares a targeted infrastructure change, previews its expected effect and opens it as a pull request for your team to review. After your team merges and deploys it, AccessRoot checks the observed result.

Core concepts

Access paths

An access path is a chain of relationships that lets an identity reach a resource. In the sample workspace, one path runs from the deploy.yml workflow, which federates into ci-deploy-role, which assumes data-maintenance-role, which can write to the CustomerRecords table with dynamodb:PutItem. The workflow has no direct permission on the table. The chain of role assumptions is what makes the access possible.

Proposed, current, expected and observed

These four terms describe where a piece of access comes from.

State Meaning Used by
Current The access the connected environment allows today Access Graph
Proposed The access a pull request would create if merged Access Diff
Expected The access your approved configuration defines Access Drift
Observed The access the cloud environment reports after deployment Access Drift, Remediation

Expected and observed access are different states, and AccessRoot keeps them separate. A change that was merged is not necessarily a change that was verified.

Findings

A finding is a specific access path worth reviewing, with the context needed to judge it: the identity, the resource, the permission, the source in code and the reason for its priority. Findings carry identifiers such as F-031, and they appear under Findings in the workspace. See Prioritization for how they are ordered.

Authorization, not usage

Access Diff and Access Graph describe what the policies and trust relationships allow. They do not show that an identity has used a path. Some findings include activity signals as extra context, and the absence of recent activity does not prove that a permission is unnecessary.

What reads and what writes

AccessRoot separates the permissions it uses to analyze access from the permissions it uses to take part in your engineering workflow.

Connection What AccessRoot does What it does not do
AWS, Google Cloud, Azure Reads identity configuration, policies, trust relationships and resource metadata Change cloud IAM
GitHub, GitLab Reads authorized changes, publishes access checks, and opens remediation pull requests when enabled Merge, or bypass branch protection
Terraform, OpenTofu Evaluates plans as sensitive input Apply changes
Slack, Jira Publishes findings and creates issues Change cloud IAM

One change, end to end

The sample workspace shows the full loop. Pull request #187 proposes the trust change, and Access Diff reports a critical finding on the pull request. Later, finding F-031 describes the resulting path to CustomerRecords, and Remediation proposes pull request #192 to remove ci-deploy-role from the trust policy of data-maintenance-role. The team approves and merges it, their pipeline deploys it, and AccessRoot checks that the path is no longer reachable.

To set this up in your own workspace, continue with the Quickstart.