For the complete documentation index, see llms.txt.

Overview of roles and role-bindings in Chainguard

An overview of Chainguard's identities, roles, and role-bindings, as well as instructions for how to manage roles and role-bindings with chainctl.
  7 min read

In the context of Chainguard, an identity represents an individual user within an organization. Chainguard’s IAM model allows administrators to assign identities to specialized roles which define the level of access that an identity has to the organization’s resources. You assign a role by creating a role-binding, which is what ties an identity to a given role.

This guide serves as an overview of what roles and role-bindings are within the context of Chainguard. It also outlines how you can manage roles and role-bindings with chainctl.

Prerequisites

This guide includes several examples of how you can manage roles and role-bindings with chainctl, the Chainguard command-line tool. To set up chainctl, follow our guide on how to install chainctl if you haven’t done so already.

Roles

There are a number of built-in roles in Chainguard’s IAM model that customers can assign to identities within their organization. Most users in your organization likely have one of the following roles with broadly-defined privileges: owner, editor, viewer, or console_viewer.

owner is the role with the most privileges. An owner can create, delete, view (list), and modify (update) organizations, account associations, role-bindings, organization invitations, custom roles, role-bindings, and subscriptions.

editor is the role with read access and limited creation and modification access. An editor has all the access of the viewer role. Beyond that, an editor can create, update, and delete container repositories, edit Custom Assembly overlays, draft library build requests, and manage event subscriptions. An editor can pull images and APK packages, but can’t push them, can’t access Chainguard Libraries, and can’t grant roles or permissions.

viewer is a role that has read-only access and can pull images. That is, a viewer can list images, policies, organizations (and organization invites), records, roles and role-bindings, subscriptions, and account associations.

console_viewer is a role that has read-only access and cannot pull images. It is designed for teams that need visibility into the Chainguard Console without any image pull access. A console viewer can browse the Console — viewing organizations, roles, and group information — but has no registry.pull or apk.pull permissions. It also can’t view legal terms or run Guardener conversions or migrations. This makes it a safe option for inviting developers, auditors, or stakeholders who need awareness of your organization’s setup without the ability to pull images or APK packages.

limited_owner is the role of a Starter organization’s owner, such as a Chainguard Starter user. It combines the capabilities of the viewer role with pull token creation. It can also invite people whose email address is in the organization’s domain (an organization created with a personal email address can’t invite anyone yet), remove members, manage billing, and turn on Chainguard Checks and Chainguard Workspaces. It can’t create identities other than pull tokens or use paid features like Custom Assembly.

The remaining roles are for more specialized functions. For example, registry.pull, registry.push, and registry.pull_token_creator relate to administering a registry of Chainguard products. sandbox.user lets a member use Chainguard Checks and Chainguard Workspaces, and mcp.tool_user lets an identity call tools on Chainguard MCP servers.

The owner, editor, and viewer roles are useful for user profiles that require broad, but clearly defined capabilities. The registry, container, and library roles have limited permissions, allowing them to manage only one specific Chainguard resource. These specialized, resource-specific roles grant minimal required access.

Every role grants actions on at least one Chainguard resource. Most actions are create, list, update, or delete, and a few resources use others, such as get, accept, or call. For example, the apk.pull role grants list access for APK packages and groups, and get access to APK package content. This means identities with this role can pull the organization’s APK packages and retrieve information about the organization, but won’t have general access to the organization’s Chainguard registry access.

Chainguard’s built-in default roles serve as building blocks and can be complemented with custom roles for specific use cases. Custom roles can extend or restrict default role capabilities, and offer your organization greater flexibility, allowing you to mix default and custom roles based on your team’s structure and needs.

When assigning a role, do so based on the principle of least privilege; assign only the role needed for the identity’s function. For example, CI systems should have a role like registry.pull, not editor.

You can run chainctl iam roles list to retrieve a list of all the roles available to your organization and review each of their specific capabilities. This command lists all the built-in roles as well as any custom roles created for your organization. The next section outlines how to create and manage such custom roles.

Managing custom roles

There are two options for managing custom roles:

Manage custom roles with chainctl

You can use chainctl to create custom roles for teams or individuals in your organization, like in the following example.

chainctl iam roles create my-role

After running this command, an interactive prompt asks you to select what capabilities the new role should have and the organization under which the role should be created.

You can avoid the interactive prompt by including the --capabilities option in this command.

chainctl iam roles create new-role --capabilities=roles.list

This example creates a new role named new-role in your organization. The new role can only list roles in the organization.

chainctl selects your organization automatically when you belong to only one. If you have access to more than one organization or folder, it prompts you to choose; add --parent=<organization> to skip the prompt.

You can also grant multiple capabilities to a custom role with one command, as in this example:

chainctl iam roles create puller-role --capabilities=apk.list,groups.list,manifest.list,manifest.metadata.list,record_signatures.list,repo.list,sboms.list,tag.list,vuln.list

This example command creates a role named puller-role that has the following capabilities:

  • apk.list
  • groups.list
  • manifest.list
  • manifest.metadata.list
  • record_signatures.list
  • repo.list
  • sboms.list
  • tag.list
  • vuln.list

This essentially combines the capabilities of the registry.pull and apk.pull roles, allowing any identities bound to this role to be able to pull both Chainguard Containers and APKs.

You can also use chainctl to delete custom roles.

chainctl iam roles delete new-role

Note that you cannot delete any of the built-in roles. Attempting to do so returns an error.

Manage custom roles in the Chainguard Console

In addition to using chainctl to manage roles, you can also create, view, and edit custom roles directly in the Chainguard Console.

Create a custom role

  1. In the Chainguard Console, navigate to Settings > Roles.
  2. Click Create role.
  3. Enter a name and optional description for the new role.
  4. Select the capabilities you want the role to include.
  5. Click Create.

After creating a role, you can attach it to a user. Learn more under Managing role-bindings.

Edit an existing custom role

  1. Navigate to Settings > Roles.
  2. Find the role you want to modify and click Edit.
  3. Add or remove capabilities as needed.
  4. Click Update.

Note: Changes to a custom role take effect immediately for all identities currently bound to that role. You can’t edit built-in roles.

Both the Console and chainctl operate on the same underlying roles and role-bindings; changes made in either place are immediately reflected everywhere.

Managing role-bindings

Manage role bindings with chainctl

You can assign a role — and all of its capabilities — to a given user by creating a role-binding and tying it to that user’s identity.

You can run a command like the following example to create a role-binding.

chainctl iam role-bindings create

This starts an interactive prompt where you can enter the appropriate details for this new role-binding. Specifically, you’ll be prompted to specify the identity to bind, the role you want the identity bound to, and the organization that the role-binding should belong to.

To avoid the interactive prompt, add these details to the command by including the --identity and --role options.

chainctl iam role-bindings create --identity=example-id --role=viewer

This example creates a role-binding for the identity example-id with the built-in viewer role in your organization.

Note that in order to use the --identity option like this, you need to know the identity’s UIDP. You can find a list of all your identities’ UIDPs by running chainctl iam identities ls. The UIDPs appear in the ID column of the output.

Manage role bindings in the Chainguard Console

  1. In the Chainguard Console, navigate to Settings > Users.
  2. Click Create role binding.
  3. Select a user and the role you want to attach to the user.
  4. Click Create.

Learn more

You can create a Chainguard identity for an automation system (such as Buildkite or GitHub Actions) to assume. This process involves choosing a role for the assumable identity and then creating a role-binding for it. Check out our overview of assumable identities — as well as our collection of assumable identity examples — to learn more.

If you’d like to learn more about Chainguard’s IAM model and structures, we encourage you to read our Overview of the Chainguard IAM model.

Last updated: 2026-11-10 18:15