Delegating approvals

Pass your approval duty to a colleague for a period while you are away, scope it to a place, and see how both names stay on every approval.

When the person who approves for production is on leave, approvals should not pile up and nobody should borrow a login. Delegation passes your approval duty (release:approve) to a named colleague for a period. While it is in force, they decide on the requests you could decide, as if they held the duty, and every approval they give names you both. It stops on the end date, or the moment either of you ends it.

It is not a way to give someone new powers. It adds no read access beyond the approval requests at the places it covers, it never lets anyone approve what you raised, and it holds only while you still hold the duty. To make someone an approver for good, or for a long cover, designate them with a role that holds the duty, which can carry an end date of its own.

What it covers

DutyApproving (release:approve). The bypass duty is not delegated: someone who must break glass in your absence needs release:bypass of their own.
PlaceWhere you hold the duty: the whole organization, or one team, environment, cluster, pipeline, app or deployment. You must hold the duty at the place you name now.
Who coversA member of the organization who is a Contributor or above. A Viewer cannot hold a duty (409 delegation.cannot_hold), and you cannot delegate to yourself.
PeriodFrom now (or a later start) to an end date, at most 90 days. A longer cover is a change of duty: designate the person instead.
ReasonOptional, up to 500 characters. It shows beside the approvals given under it.

A delegation is scheduled before its start, active while in force, ended when someone ends it and expired when its end passes.

What the person who covers may and may not do:

  • They see and decide the open requests at deployments inside the place, in the Approvals inbox under the My groups filter, which lists what they may decide only by covering for someone.
  • A request you raised is never theirs to approve. Nor is one you have already decided: you and the person who covers you share one vote.
  • An approval they give counts as yours. If a rule asks for a Security approval and you are on the Security team, theirs counts toward it.
  • If you lose the duty while the delegation runs, it stops working.
  • It does not lift how they are signed in. A person below Contributor cannot use it, and an API token they act through must itself allow the duty at that place.

Delegate while away

Open Approvals. At the right of the tabs, choose Delegate while away.

In Delegate to, choose the person who covers for you. The list is the organization's members other than you who are not Viewers.

In Until, pick the day you are back. The delegation lasts until the end of that day in your local time; a day that has already ended is refused.

Choose Delegate. Wardn confirms "Dana covers your approvals until 2026-12-05". The button now reads Delegated to Dana.

To end it early, open the same dialog from Delegated to Dana and choose Stop delegating.

The web app delegates your duty for the whole organization, so it works for someone who holds the duty there, such as an Owner. A team lead holds the duty on their team: delegate with the API and name the team.

Anyone may read their own: GET /delegations lists the delegations you gave or were given, newest first, and ?active=true leaves out those that ended or ran out. Both need only that you are signed in.

api "$WARDN_API_URL/api/v1/delegations?active=true" \
  | jq '.items[] | {id, from: .delegator.name, to: .delegate.name, scope: .scope.label, endsAt, status}'

End a delegation

Either person can end it, now:

api -X POST "$WARDN_API_URL/api/v1/delegations/$DELEGATION_ID/end"

The one who gave it takes the duty back; the one who was given it hands it back. Approvals already given under it stand. A delegation between two other people is not found (404 delegation.not_found), and ending one that has already ended answers 409 delegation.already_ended. The cover also ends by itself at its end date, with no one needing to remember.

What the approvals look like

An approval given under a delegation names both people. On Approvals › Releases › Review, under All approvals on this snapshot, the row reads "Dana approved" and, under For, "Chris · while away" (or Chris's reason). In the API, the approval has by (Dana), forPerson (Chris) and the delegation it rests on. In Activity, approval.approved carries onBehalfOf and the delegation id.

While Chris is away, the notification "approval requested" goes to the people who may approve now, which includes Dana (see Notifications). Giving and ending a delegation are recorded: approval.delegated and approval.delegation_ended, both visible in Activity.

What a delegation does not do

A delegation covers the duty you hold now. It does not cover a request you raised, a bypass, or a place where you do not hold the duty. It is not a login to share: Dana approves as Dana, and Activity says so. A delegation made in the web app covers the whole organization; use the API to narrow it.

Permissions

ActionPermission
Delegate your dutyrelease:approve at the place you name
List your delegations, end oneSigned in. You may end only a delegation you gave or were given.
Decide as the person who coversAn active delegation from someone who holds release:approve there

Next

On this page