Who sees what
People see what their teams, their grants and what they own give them. Only the Owner sees everything.
Wardn shows each person only what they work on. A contractor on one team does not see another team's apps, the names of every production cluster, or who works on what. The reason is practical: names of customers, clusters and projects are themselves sensitive, and a long list of things you cannot act on is noise. This is the rule that Access model explains; this page is what it means in the product.
Where reading comes from
Three things give a person read access, and they add together. Nothing takes access away.
- Their teams. Every member of a team reads the team, its apps, the deployments of those apps, its pipelines and the clusters the team owns. Contributors also sync and roll back those deployments and raise releases; Viewers only read.
- Grants. A role granted on a place reaches the place and what it contains: an environment holds its clusters, a cluster and an app hold their deployments. See Roles and grants.
- What they own. Whoever creates a cluster, environment, app, pipeline or deployment owns it, and an owner reads and runs what they own.
| Organization role | Reads |
|---|---|
| Owner | everything |
| Admin | what they own or were granted, and their teams' things. Admins manage members, so they see the member list. |
| Contributor | their teams' things, what they were granted, and what they own |
| Viewer | the same, and only reads |
An app's team is set on the app (teamId). An app with no team is read only by its owners and by people granted it.
The places
Two chains meet at every deployment, and a grant on any place in the chain reaches the deployment:
| Route | Chain | Typical person |
|---|---|---|
| Through the work | team, then app, then the app's deployments and pipelines | A developer on the Payments team reads every Payments deployment. |
| Through the place | organization, then environment, then cluster, then deployment | Platform on call, granted a cluster, reads every deployment on it whatever the app. |
A cluster belongs to exactly one environment, so a grant on an environment reaches all its clusters, including ones added later.
Examples
| Person | Holds | Sees |
|---|---|---|
| Casey, Contributor, member of Payments | Team member on Payments | Payments' apps, their deployments and pipelines. Syncs and rolls back those deployments. Nothing of Checkout's. |
| Drew, Viewer, member of Payments | Team member on Payments | The same, read only. A grant to approve is paused until Drew is raised. |
Sam, Admin, created the prod environment | Environment owner on prod | prod, its clusters and deployments, and can decide who may act there. Not the other environments. |
Riley, Contributor, granted a read-only role on the shop app | Custom role on shop | shop and its deployments, wherever they run. |
| An auditor | Organization reader | Everything, read only, and the full Activity feed. |
Reading everything
Only an Owner widens this. They can grant:
- Organization reader, a built-in role on the organization that reads everything, the full Activity feed included. Only an Owner can grant it.
- Read on chosen places, with a custom role holding read permissions, such as
app:readanddeployment:read, granted on those places.
API tokens and agents act for a person and never read more than that person. A token reaches only where its own rows and its owner's reach meet. See API tokens.
Something you cannot see does not exist for you
- Reading something out of reach answers 404, the same as something that does not exist.
- Acting on something you cannot see answers 404 too, so a refusal never confirms that it exists. Acting on something you can see but not change answers 403 with the reason.
- An organization-wide action, such as creating a cluster or managing members, answers 403: the organization is not a secret.
- Lists, counts, totals and searches include only what you can see. A list of nothing is empty, not refused, and a count never includes what you cannot see.
- A reference to something you cannot see keeps its id and loses its name (
"visible": false), so a screen can say "a deployment you can't see". This covers the source of a promotion, the parent of a preview and the origin of a snapshot. - An API token keeps its 403, so the token's record of denied calls stays accurate.
The context of a shared cluster
If you can read a deployment but not the cluster or environment it runs on, you see a limited view of that cluster or environment: its name, health, whether its operator is online, its versions, and only your own deployments there. Its settings, nodes, events and history stay hidden.
Activity and live updates
Owners and Organization readers read the whole Activity feed. Everyone else reads their own actions and the entries about the teams, apps, environments, clusters and deployments they can see; entries about roles, grants, tokens, integrations and settings are in the whole feed only. Counts, export and the live updates stream (GET /events) follow the same rule, checked as each change is sent, so a grant that ends mid-stream stops the changes at once. The check of the hash chain needs every entry, so it is for the whole feed only. An entry names its actor; one who has left is shown as "Someone who left".
People
- Everyone sees themselves, their teammates and the people attached to what they can see: owners, leads, approvers and the people in Activity.
- Someone who adds team members or grants access gets a picker that finds anyone in the organization by name or email, with their name, email, picture and organization role only, never their teams or grants.
- The full member list, with each person's access, is for those who manage members: Owners and Admins. See Members and teams.
Duties are separate from seeing
Seeing a place does not let you act on it in every way. Approving a release, signing off a snapshot, bypassing a guardrail, adding a guardrail exception and opening a terminal are duties, held by the people designated for them. An Admin does not hold them by default, and the Owner holds every one but the terminal. See Roles and grants and Terminal.
Check it
wardn can-i <permission> --scope <kind> --on <id> answers for you. For a place you cannot see it answers no, with the same reason as for a place that does not exist, so it cannot be used to probe for names. Explaining someone else's access needs org:read:
api() { curl -fsS -H "Authorization: Bearer $WARDN_TOKEN" -H 'Content-Type: application/json' "$@"; }
wardn can-i deployment:rollback --scope deployment --on "$DEPLOYMENT_ID"
api "$WARDN_API_URL/api/v1/members/$USER_ID/access" # everything a person can do, and why
api "$WARDN_API_URL/api/v1/access?kind=cluster&id=$CLUSTER_ID" # who has access to a place, and whyNext
Members and teams
Organization roles, team roles and groups.
Roles and grants
Give a person, group or team a role on a place.
On-call team, read-only
A recipe for read access without write access.
Related: Access model, API tokens, Activity and export.
Roles and grants
Read the permission list, make a custom role, and grant it to a person, group or team on the place where it should apply.
Sign-up modes
Choose who can create an account on a self-hosted install, how invitations, personal organizations and requests to join work, and what changed for installs that upgrade.