Roles

Roles define the concrete permissions granted to users, they reference a policy and optionally provide parameters that specify what resources that policy applies to.

A role with the policy pull and the parameters repo: mycustomer, image: * grants the ability to pull any images from the repo mycustomer in your registry
e.g. MY_SUBDOMAIN.ctr.dev/mycustomer/*

Creating a role

  • Dashboard under Access > Manage roles > Create role.
  • API with POST /api/v1/iam/{project_id}/roles
  • Also a guided flow for creating identities with push/pull roles is available on the Registry dashboard page under Pull an image or Push an image.

Listing roles

Updating roles

Deleting a role

Assign role membership

Remove role membership

List role members

Searching roles

Searching roles allows you to find all roles that grant policies with parameter values. Results will contain roles that grant at least the configured access. i.e. If you search for pull policy roles with repo: foo it will also return all pull policy roles with repo: * (since that is inclusive of the searched permissions)