Preview

Permissions

Every permission an API operation checks, what it allows, and which built-in roles hold it.

Every operation in the reference names the one permission it checks. This page lists them all, so you can work out what an API token needs, or why a call answers 403. A permission is a key in the form resource:action, such as deployment:sync.

Read Roles and grants first if roles and scopes are new to you, and the access model for the reasoning behind them.

How a check works

A call is allowed when something the caller holds grants the permission at the place the call touches. The sources add together and nothing denies, so the order never matters.

SourceWhat it gives
Organization roleOwner holds every permission everywhere, except pod:exec, which is only for people named for terminals (anyone who may manage a deployment opens one anyway). Admin holds a short list of create and manage permissions (below). Contributor and Viewer hold nothing across the organization.
Team membershipThe built-in Team member role on each team the person belongs to. It is worked out from membership on every check, so leaving a team removes it at once.
OwnershipWhoever creates a team, cluster, environment, pipeline, app or deployment owns it and holds the matching owner role on it.
Role bindingsA role given to a person, group or team on a place, optionally with an end date.

A grant on a place reaches that place and everything inside it. A grant on an environment reaches its clusters, and a grant on a cluster reaches its deployments.

Three rules decide most surprises:

  • A Viewer only reads. A Viewer is refused every permission that does not end in :read, whatever they were granted. The grants return when the organization role is raised.
  • Reading is least privilege. A read of something outside the caller's reach answers 404, as if it did not exist, and lists hold only what the caller can see. A refusal that is 403 means the caller can see the thing but may not do this to it.
  • A token never does more than its owner. An API token holds only the permission keys on the places it was made with, applied on top of what its owner holds at that moment.

Use POST /me/can-i to ask whether you hold a permission on a place and why not. POST /members/{userId}/can-i asks the same of another person.

Roles that hold permissions

The permission tables below use these names.

RoleGranted onHolds beyond reading
Ownerthe organizationeverything, except pod:exec
Adminthe organizationorg:read, org:manage, role:create, team:create, cluster:register, environment:create, app:create, app:approve, pipeline:create, integration:manage, agent:manage, token:manage, secretstore:read, secretstore:manage, registry:read, registry:manage, template:read, template:manage, service:read, service:manage
Team membera teamrelease:raise, deployment:sync, deployment:rollback, app:request, and reads of the team, its apps, deployments, pipelines, snapshots and guardrails
Team leada teamwhat a member holds, plus team:members, release:approve, remediation:approve
Team ownera teamwhat a lead holds, plus team:manage, role:read, role:manage, app:approve
Cluster ownera clustercluster:manage, role:manage, and operating its deployments (deployment:manage, deployment:sync, deployment:rollback, drift:adopt, drift:revert, drift:ignore)
Environment owneran environmentenvironment:manage, role:manage, and operating its deployments
App owneran appapp:manage, role:manage, and operating its deployments
Deployment ownera deploymentrole:manage and operating the deployment
Pipeline ownera pipelinepipeline:manage, role:manage
Organization readerthe organization*:read: every read, and nothing else. Only an Owner can grant it.

The place owner roles also hold the reads of what they own and what is inside it. An Admin holds no reads across the organization: they read what they own, create or were granted.

Custom roles can hold any key in the tables below, or a pattern: * for everything, *:read for every read, or resource:* for every action on a resource. A custom role never holds more than the person who made it. A pattern never matches pod:exec.

Any signed-in caller

authenticated is not a permission anyone is granted. Every signed-in caller passes it, and the operations that use it show only what the caller may see.

OperationAllows
GET /meRead who you are.
POST /me/can-iAsk whether you hold a permission on a place.
GET /membersList members, limited to the people you can see.
GET /eventsOpen the live event stream.

Releases and promotion

PermissionAllowsHeld by
release:readSee releases, the release calendar, approval requests and bypass requests (GET /releases, GET /approvals, GET /bypass-requests).Owner, Team member, Team lead, Team owner, App owner, Pipeline owner, Organization reader
release:raiseRaise, steer, roll back and restore a release (POST /releases and its /actions, /rollbacks, /restores), plan one, promote a snapshot to a deployment (POST /deployments/{deploymentId}/promotions) and ask for a bypass (POST .../snapshots/{snapshotId}/bypass-requests).Owner, Team member, Team lead, Team owner
release:approveApprove or decline an approval request (POST /approvals/{approvalId}/decisions), and delegate the duty while away (POST /delegations). A duty: an Admin does not hold it.Owner, Team lead and Team owner on their team, and anyone granted a role that has it
release:bypassLet a snapshot through the guardrails that hold it, once (POST .../snapshots/{snapshotId}/bypass), decide a bypass request (POST /bypass-requests/{bypassRequestId}/decisions) and raise a break-glass hotfix. A duty.Owner, and anyone granted a role that has it

release:raise is the permission a promotion needs. A team's members hold it on the team's deployments. Agents never hold the approve or bypass duty, whatever they are granted: the operations refuse them with 403 approval.person_only. Listing and ending your own delegations (GET /delegations, POST /delegations/{delegationId}/end) need only that you are signed in, and linking a GitHub login to a member, which decides who may not approve a push, needs integration:manage.

Deployments

PermissionAllowsHeld by
deployment:readSee deployments and everything about them: state, settings, resources, pods, logs, events, drift, diffs, jobs, secret references, previews and timelines.Owner, Team member, Team lead, Team owner, Cluster owner, Environment owner, App owner, Deployment owner, Organization reader
deployment:manageCreate, change and delete a deployment; add and remove its apps; change its delivery settings and secret references.Owner, Cluster owner, Environment owner, App owner, Deployment owner
deployment:syncApply the deployment's snapshot again, restart a pod, approve or reject a held prune.Owner, Team member, Team lead, Team owner, and the four place owners
deployment:rollbackApply an earlier snapshot again (POST .../snapshots/{snapshotId}/restore).Owner, Team member, Team lead, Team owner, and the four place owners
pod:execAsk for a terminal in a pod and attach to it, by name. A duty held only by a grant that names it. Anyone who holds deployment:manage on a deployment may also open a terminal in it, unless its environment allows named people only.Nobody by default, not even Owner

pod:exec is designated on purpose. A wildcard never matches it, so a person holds it only when someone with the power to grant it gives them a role that lists it. It is the way in for an environment set to Named people only, and it is never implied for agents, service accounts or API tokens, whatever they can deploy. Terminal sessions are recorded, and reading them needs audit:read (Terminal).

Snapshots

PermissionAllowsHeld by
snapshot:readSee a deployment's snapshots, their history, promotions, settings and qualification, and the preflight of a restore.Owner, Team member, Team lead, Team owner, the four place owners, Organization reader
snapshot:signoffRelease or discard a held snapshot. A duty.Owner

Drift

PermissionAllowsHeld by
drift:adoptPropose taking drifted values into Git, and mark a proposal merged or dismissed.Owner, and the four place owners
drift:revertApply the running snapshot over the drift.Owner, and the four place owners
drift:ignoreStop reporting a field as drift, and report it again.Owner, and the four place owners

Reading drift needs deployment:read. See Drift.

Guardrails, exceptions and freezes

PermissionAllowsHeld by
guardrail:readSee guardrails, their versions, exceptions, freezes and the policy settings.Owner, Team member, Team lead, Team owner, Environment owner, Organization reader
guardrail:manageCreate, change and archive guardrails; preview what a scope reaches; create, change and cancel freezes.Owner
exception:manageAdd, change, review and end a guardrail exception. A duty.Owner

An Admin does not hold guardrail:manage or exception:manage. These go to whoever is designated, with a custom role. See Guardrails, Exceptions and Freezes.

Pipelines

PermissionAllowsHeld by
pipeline:readSee pipelines, their versions, apps, runs, settings and presets.Owner, Team member, Team lead, Team owner, Pipeline owner, Organization reader
pipeline:createCreate a pipeline, and create, change and delete presets.Owner, Admin
pipeline:manageSave a new version, restore an old one, add or remove apps, change settings, archive.Owner, Pipeline owner

Clusters and environments

PermissionAllowsHeld by
cluster:readSee clusters and their nodes, settings, operator, connection history, events, timeline and unmanaged namespaces.Owner, Cluster owner, Environment owner, Organization reader
cluster:registerRegister a cluster (POST /clusters).Owner, Admin
cluster:manageChange a cluster, its settings and operator; create join tokens; revoke credentials; disconnect, reconnect, set the owning team.Owner, Cluster owner
environment:readSee environments, their settings, pipelines, guardrails and the protected-branch guardrail.Owner, Environment owner, Organization reader
environment:createCreate an environment.Owner, Admin
environment:manageChange an environment, its settings and its protected-branch guardrail.Owner, Environment owner

See Connect a cluster and Environments.

Apps and sources

PermissionAllowsHeld by
app:readSee apps and sources, which pipeline carries an app, and the apps no pipeline carries.Owner, Team member, Team lead, Team owner, App owner, Organization reader
app:createCreate an app, and create, change and delete a source.Owner, Admin
app:requestAsk for a new app for a team. A Viewer never holds it.Team member, Team lead, Team owner
app:approveApprove or decline a request for an app for a team. Never your own request.Owner, Admin, Team owner
app:manageChange or delete an app.Owner, App owner

Integrations

PermissionAllowsHeld by
integration:manageList integrations and their deliveries, pause and resume one, list GitHub App installations, start an install.Owner, Admin

See GitHub.

Secrets and registries

PermissionAllowsHeld by
secretstore:readSee the secret stores, their settings and who may use them. Never a credential or a value.Owner, Admin, Organization reader
secretstore:manageAdd, change, test and remove a secret store. Never held by an agent.Owner, Admin
registry:readSee the registries, their images, charts and tags.Owner, Admin, Organization reader
registry:manageAdd, change, test and remove a registry. Never held by an agent.Owner, Admin

See Secret stores and Registries.

Templates and services

PermissionAllowsHeld by
template:readSee deployment templates and their versions.Owner, Admin, Organization reader
template:manageSave, edit and delete deployment templates.Owner, Admin
service:readSee the organization's services.Owner, Admin, Organization reader
service:manageAdd, change and remove services. Never held by an agent.Owner, Admin

See Deployment templates and Services.

Access

PermissionAllowsHeld by
org:readSee the member summary and one person's access, ask what a person can do, and read the terminal settings.Owner, Admin, Organization reader
org:manageChange the organization's deployment defaults, policy settings and terminal settings; end a terminal session.Owner, Admin
team:readSee teams and groups.Owner, Team member, Team lead, Team owner, Organization reader
team:createCreate a team.Owner, Admin
team:manageCreate, change and delete groups.Owner, Team owner
role:readSee the permission catalog, roles, role bindings, owners and who has access at a place.Owner, Team owner, the five place owners, Organization reader
role:createCreate, change and delete a custom role.Owner, Admin
role:manageGive and revoke role bindings, set a person's role in a team, add and remove owners.Owner, Team owner, the five place owners
audit:readRead Activity, export it, verify its hash chain, and read terminal sessions and their recordings.Owner, Organization reader
token:manageList, create, rotate and revoke API tokens, and read their usage and calls.Owner, Admin
remediation:proposePropose a fix for a person to approve. Changes nothing.Owner, agents given it
agent:readSee the fleet of agents, with the roles and credential references each holds.Owner, a team lead of the agent's team, Organization reader
agent:manageCreate, change, pause and resume agents, and point their credentials at secrets.Owner, Admin, a team lead of the agent's team

The place owners are the cluster, environment, app, deployment and pipeline owners. role:manage on a place lets its owner decide who else may act there, but only for permissions the owner holds themselves.

See Roles and grants, Members and teams, Activity and export and API tokens.

In the role editor but not checked by an operation

The role editor also lists remediation:read, remediation:approve, remediation:rules, restore:bypass, cluster:exec, and team:members. No operation in the API declares them as its permission. They belong to remediation and to checks made inside other operations, which are described where they apply: Restore and rollback for restore:bypass, and Roles and grants for the rest.

Preview

Permission keys can still be added or split before the first stable release. List the current catalog at any time with GET /permissions.

Next

On this page