New: Access Diff now reviews Terraform pull requests on GitHub

Access Graph

Trace direct and indirect access paths between identities, roles and resources, and find the configuration that defines each step.

Access Graph connects identities, roles, trust relationships, permissions and resources into one view of how access works in your connected environment. It is the model the rest of AccessRoot uses: Access Diff compares proposed changes against it, and Access Drift compares it with your approved configuration.

What the graph contains

The graph is built from the identity configuration, authorization policies, trust relationships and resource metadata that AccessRoot reads from your connected cloud accounts. It has two kinds of element.

  • Nodes are the things that hold or grant access: human identities such as an SSO user, machine identities such as a CI/CD workflow or a Lambda function, roles, and the resources at the end of a path, such as a DynamoDB table or an S3 bucket. Sensitive resources are marked.
  • Relationships connect them. Each one names the action or mechanism that makes it possible, for example federation into a role, sts:AssumeRole, s3:PutObject or dynamodb:PutItem.

Where access is managed in infrastructure as code, a relationship also records the file that defines it, with the repository and the owning team.

An example path

The sample workspace has a production account, halvorne-prod. One path in it looks like this.

Step From Relationship To
1 deploy.yml (GitHub Actions workflow) federates into (sts:AssumeRoleWithWebIdentity) ci-deploy-role
2 ci-deploy-role sts:AssumeRole data-maintenance-role
3 data-maintenance-role dynamodb:PutItem CustomerRecords (DynamoDB table)

The workflow has no permission on the table. The chain of assumptions is what makes the write possible, subject to the cloud policies and conditions that govern each request. Step 2 is defined in infra/iam/data-access.tf in halvorne/platform-infra, owned by Platform Engineering. Step 1 is defined in infra/iam/ci-oidc.tf.

The same account contains other paths that are not a problem on their own: ci-deploy-role can also write to the deploy-artifacts bucket with s3:PutObject, and the data-analyst SSO user can assume analytics-reader-role, which can run dynamodb:Query on the same table. The second path has no source file, which tells you it was created outside infrastructure as code, in this case by an SSO permission set.

Ask the three questions

Access Graph supports one investigation from either end. Use the view controls to switch between From an identity and From a resource.

What can this identity reach?

Select a developer, service account or deployment workload. The graph shows the resources it can access, including paths through assumed roles and other indirect relationships.

Who can reach this resource?

Select a production table, bucket or secret. The graph lists the identities that have a path to it, whether the path starts in the same account or crosses an account boundary. Starting from CustomerRecords, you would find data-maintenance-role and analytics-reader-role directly, and ci-deploy-role, deploy.yml and data-analyst through the roles in between.

Why is this path possible?

Select any step on a path. The detail shows the relevant action, the trust relationship or permission behind it, and the configuration context. You do not have to reconstruct the chain across several consoles.

Paths that are easy to miss

Some patterns are hard to see by reading policies one at a time.

  • Chained role assumptions: one role is trusted by another. The graph follows the chain and shows which permissions become available through it.
  • Cross-account access: a principal in one account reaches a resource through a trusted role in another. In the sample workspace, partner-sync-role in halvorne-shared can assume reporting-role, which reads the customer-exports-prod bucket with s3:GetObject.
  • Machine identity privilege: CI/CD jobs and workloads can gain strong access through deployment or automation roles. The graph shows these non-human identities next to their effective permissions.

An indirect path is not automatically a risk. The graph exists so you can understand a path and then decide.

Find where a path is defined

For access managed in infrastructure as code, follow a selected relationship to the role, trust policy or permission that defines it. The detail names the repository, the file and the owner. For ci-deploy-role assuming data-maintenance-role, that is infra/iam/data-access.tf, and the trust policy there lists the trusted roles:

resource "aws_iam_role" "data_maintenance" {
  name = "data-maintenance-role"
  assume_role_policy = jsonencode({
    Statement = [{
      Effect = "Allow"
      Action = "sts:AssumeRole"
      Principal = { AWS = [
        aws_iam_role.ci_deploy.arn,
        aws_iam_role.ops_maintenance.arn,
      ] }
    }]
  })
}

Read a path with care

  • A path shows what authorization allows. It does not show that the access was used.
  • Findings built on the graph describe context such as access, sensitivity, identity type and reachability. They are meant to help you rank paths, not to replace your judgment. See Prioritization.
  • The graph reflects the accounts, projects and subscriptions you connected. Access that leaves the connected scope cannot be followed to its end.

Next steps