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.
| Source | What it gives |
|---|---|
| Organization role | Owner 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 membership | The 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. |
| Ownership | Whoever creates a team, cluster, environment, pipeline, app or deployment owns it and holds the matching owner role on it. |
| Role bindings | A 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 is403means 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.
| Role | Granted on | Holds beyond reading |
|---|---|---|
| Owner | the organization | everything, except pod:exec |
| Admin | the organization | org: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 member | a team | release:raise, deployment:sync, deployment:rollback, app:request, and reads of the team, its apps, deployments, pipelines, snapshots and guardrails |
| Team lead | a team | what a member holds, plus team:members, release:approve, remediation:approve |
| Team owner | a team | what a lead holds, plus team:manage, role:read, role:manage, app:approve |
| Cluster owner | a cluster | cluster:manage, role:manage, and operating its deployments (deployment:manage, deployment:sync, deployment:rollback, drift:adopt, drift:revert, drift:ignore) |
| Environment owner | an environment | environment:manage, role:manage, and operating its deployments |
| App owner | an app | app:manage, role:manage, and operating its deployments |
| Deployment owner | a deployment | role:manage and operating the deployment |
| Pipeline owner | a pipeline | pipeline:manage, role:manage |
| Organization reader | the 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.
| Operation | Allows |
|---|---|
GET /me | Read who you are. |
POST /me/can-i | Ask whether you hold a permission on a place. |
GET /members | List members, limited to the people you can see. |
GET /events | Open the live event stream. |
Releases and promotion
| Permission | Allows | Held by |
|---|---|---|
release:read | See 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:raise | Raise, 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:approve | Approve 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:bypass | Let 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
| Permission | Allows | Held by |
|---|---|---|
deployment:read | See 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:manage | Create, 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:sync | Apply 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:rollback | Apply an earlier snapshot again (POST .../snapshots/{snapshotId}/restore). | Owner, Team member, Team lead, Team owner, and the four place owners |
pod:exec | Ask 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
| Permission | Allows | Held by |
|---|---|---|
snapshot:read | See 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:signoff | Release or discard a held snapshot. A duty. | Owner |
Drift
| Permission | Allows | Held by |
|---|---|---|
drift:adopt | Propose taking drifted values into Git, and mark a proposal merged or dismissed. | Owner, and the four place owners |
drift:revert | Apply the running snapshot over the drift. | Owner, and the four place owners |
drift:ignore | Stop 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
| Permission | Allows | Held by |
|---|---|---|
guardrail:read | See guardrails, their versions, exceptions, freezes and the policy settings. | Owner, Team member, Team lead, Team owner, Environment owner, Organization reader |
guardrail:manage | Create, change and archive guardrails; preview what a scope reaches; create, change and cancel freezes. | Owner |
exception:manage | Add, 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
| Permission | Allows | Held by |
|---|---|---|
pipeline:read | See pipelines, their versions, apps, runs, settings and presets. | Owner, Team member, Team lead, Team owner, Pipeline owner, Organization reader |
pipeline:create | Create a pipeline, and create, change and delete presets. | Owner, Admin |
pipeline:manage | Save a new version, restore an old one, add or remove apps, change settings, archive. | Owner, Pipeline owner |
Clusters and environments
| Permission | Allows | Held by |
|---|---|---|
cluster:read | See clusters and their nodes, settings, operator, connection history, events, timeline and unmanaged namespaces. | Owner, Cluster owner, Environment owner, Organization reader |
cluster:register | Register a cluster (POST /clusters). | Owner, Admin |
cluster:manage | Change a cluster, its settings and operator; create join tokens; revoke credentials; disconnect, reconnect, set the owning team. | Owner, Cluster owner |
environment:read | See environments, their settings, pipelines, guardrails and the protected-branch guardrail. | Owner, Environment owner, Organization reader |
environment:create | Create an environment. | Owner, Admin |
environment:manage | Change an environment, its settings and its protected-branch guardrail. | Owner, Environment owner |
See Connect a cluster and Environments.
Apps and sources
| Permission | Allows | Held by |
|---|---|---|
app:read | See 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:create | Create an app, and create, change and delete a source. | Owner, Admin |
app:request | Ask for a new app for a team. A Viewer never holds it. | Team member, Team lead, Team owner |
app:approve | Approve or decline a request for an app for a team. Never your own request. | Owner, Admin, Team owner |
app:manage | Change or delete an app. | Owner, App owner |
Integrations
| Permission | Allows | Held by |
|---|---|---|
integration:manage | List integrations and their deliveries, pause and resume one, list GitHub App installations, start an install. | Owner, Admin |
See GitHub.
Secrets and registries
| Permission | Allows | Held by |
|---|---|---|
secretstore:read | See the secret stores, their settings and who may use them. Never a credential or a value. | Owner, Admin, Organization reader |
secretstore:manage | Add, change, test and remove a secret store. Never held by an agent. | Owner, Admin |
registry:read | See the registries, their images, charts and tags. | Owner, Admin, Organization reader |
registry:manage | Add, change, test and remove a registry. Never held by an agent. | Owner, Admin |
See Secret stores and Registries.
Templates and services
| Permission | Allows | Held by |
|---|---|---|
template:read | See deployment templates and their versions. | Owner, Admin, Organization reader |
template:manage | Save, edit and delete deployment templates. | Owner, Admin |
service:read | See the organization's services. | Owner, Admin, Organization reader |
service:manage | Add, change and remove services. Never held by an agent. | Owner, Admin |
See Deployment templates and Services.
Access
| Permission | Allows | Held by |
|---|---|---|
org:read | See the member summary and one person's access, ask what a person can do, and read the terminal settings. | Owner, Admin, Organization reader |
org:manage | Change the organization's deployment defaults, policy settings and terminal settings; end a terminal session. | Owner, Admin |
team:read | See teams and groups. | Owner, Team member, Team lead, Team owner, Organization reader |
team:create | Create a team. | Owner, Admin |
team:manage | Create, change and delete groups. | Owner, Team owner |
role:read | See the permission catalog, roles, role bindings, owners and who has access at a place. | Owner, Team owner, the five place owners, Organization reader |
role:create | Create, change and delete a custom role. | Owner, Admin |
role:manage | Give and revoke role bindings, set a person's role in a team, add and remove owners. | Owner, Team owner, the five place owners |
audit:read | Read Activity, export it, verify its hash chain, and read terminal sessions and their recordings. | Owner, Organization reader |
token:manage | List, create, rotate and revoke API tokens, and read their usage and calls. | Owner, Admin |
remediation:propose | Propose a fix for a person to approve. Changes nothing. | Owner, agents given it |
agent:read | See the fleet of agents, with the roles and credential references each holds. | Owner, a team lead of the agent's team, Organization reader |
agent:manage | Create, 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.