Bypass requests

Let one snapshot through the guardrails that hold it, once, with a reason: bypass directly if you hold the duty, or ask someone who does, and see how every bypass is recorded.

A bypass lets one snapshot that a guardrail holds go to one deployment anyway, once, with a reason that is recorded. It changes no rule: the next snapshot meets the guardrails again. It is for the night checkout is down and the fix has not been through everything yet.

Two people are involved, by design. Someone who holds the bypass duty (release:bypass) can bypass directly. Someone who does not can ask, and a person who holds the duty grants or declines. Whoever asks can never decide their own request.

A bypass is not an exception. An exception is a standing carve-out for a place, with an end or review date; a bypass is one snapshot, one time. A bypass is also not an approval: approvals satisfy a rule by doing what it asks, and a bypass skips the rule.

What a bypass skips

A bypass names the rules it skips. It skips every rule that holds the snapshot now unless the request names fewer (ruleIds), and each rule it names must be holding the snapshot (409 bypass.rule_not_holding otherwise). A rule it does not name still holds. That includes approvals, a freeze, the production branch rule and a stage's own rules. A request shows both lists before anyone decides:

  • What it bypasses: the requirements that hold the snapshot now, each with who set it ("Guardrail · Org freezes", "Payments › prod stage") and its status.
  • Still applies: the other requirements that apply to the snapshot and that the bypass does not skip over.

Two cases cannot be bypassed:

  • A snapshot nothing holds has nothing to bypass: 409 guardrail.not_blocked.
  • A guardrail that cannot be judged yet (a fact is unknown) is waited on, not bypassed. Wardn tries again; see Guardrails.

A snapshot that the render guard holds for review must be released first (409 guardrail.held). A bypass of a restore is separate: a restore's failed preflight is bypassed with restore:bypass, described in Restore.

Agents never bypass. An agent can propose, and a person decides. The refusal is 403 approval.person_only.

Bypass directly

If you hold release:bypass at the deployment, bypass the snapshot yourself:

api() { curl -fsS -H "Authorization: Bearer $WARDN_TOKEN" -H 'Content-Type: application/json' "$@"; }

api -X POST "$WARDN_API_URL/api/v1/deployments/$DEPLOYMENT_ID/snapshots/$SNAPSHOT_ID/bypass" -d '{
  "reason": "Hotfix for the checkout outage, INC-2041"
}'

The reason is required, up to 1,000 characters. The answer is the snapshot, now on its way to the cluster. A snapshot that was already bypassed answers 409 bypass.already_granted: a bypass is of one snapshot, once.

A hotfix release with breakglass: true does the same as part of raising the release, and needs release:bypass too. The web app's hotfix page at /releases/hotfix?snapshot=<id> offers it as the Break-glass route; nothing in the web app links to that page yet.

release:bypass is a duty. The Admin role does not hold it, and a delegation does not pass it on. Designate the people who may break glass, on the environment where it applies; see Roles and grants. Only someone who holds release:bypass can give it away.

Ask for a bypass

If you can raise a release at the deployment (release:raise, which every team member holds on the team's deployments) but do not hold the duty, ask:

api -X POST "$WARDN_API_URL/api/v1/deployments/$DEPLOYMENT_ID/snapshots/$SNAPSHOT_ID/bypass-requests" -d '{
  "reason": "Hotfix for the checkout outage, INC-2041: the fix cannot wait for a second approval"
}'

The answer is the request, in state open. Add "ruleIds": ["..."] to ask for fewer than every rule that holds the snapshot; the ids are the ruleId of the lines in a request's holds.

AnswerMeaning
409 bypass.use_directYou hold the duty here, so bypass directly.
409 guardrail.not_blockedNothing holds the snapshot.
409 bypass.already_requestedOne request is open per snapshot.
403 approval.person_onlyAgents cannot ask.

The people who hold the duty at that deployment are told (Slack posts a Grant bypass button; see Slack), and the request appears under Approvals › Bypass requests.

Decide a request

Open Approvals and choose the Bypass requests tab. The quick filters are Waiting on me, Rules I can bypass, Bypassed and Denied; Filters narrows by environment and by who asked. Each row shows the commit, the environment and deployment, what blocks it, and the reason given ("Incident" column).

Choose Review. What it bypasses lists the rules that hold the snapshot now, The request gives the reason ("Why it can't wait"), the deployment and who asked, What moves shows what changes against what the deployment runs, and Still applies lists what will keep holding it.

Under Your decision, choose Approve bypass or Deny. Denying needs a comment ("Say why you're declining it"), which the person who asked sees. Approving can carry an optional comment that is recorded with the bypass.

You can decide only if you hold release:bypass at the deployment and you did not ask. Otherwise the buttons are disabled with "You can view this, but not decide it."

With the API:

api "$WARDN_API_URL/api/v1/bypass-requests?state=open" \
  | jq '.items[] | {id, deploymentId, reason, by: .requestedBy.name, holds: [.holds[].label]}'

api -X POST "$WARDN_API_URL/api/v1/bypass-requests/$BYPASS_ID/decisions" -d '{"decision": "grant", "note": "Agreed, on call for the incident"}'
api -X POST "$WARDN_API_URL/api/v1/bypass-requests/$BYPASS_ID/decisions" -d '{"decision": "decline", "note": "Get a second approval instead"}'

Granting lets the snapshot through the guardrails once, delivers it as the person who asked, and records both people. A decline needs a note. A request is open, granted, declined or superseded: when the deployment gets a newer snapshot, an open request closes as superseded and a decision on it answers 409 approval.snapshot_changed. Ask for the new snapshot. If the snapshot is granted but cannot be handed over, you get 503 bypass.release_failed: the bypass is recorded, and the snapshot is tried again.

The list shows what holds each open request, judged once for the whole page, so it stays quick with many requests. GET /bypass-requests lists the newest 200 at deployments the caller reads, filtered by state and deploymentId.

What is recorded

Activity entryWhen
bypass.requestedSomeone asked, with the reason.
guardrail.bypassedA snapshot was let through, directly or from a request. It carries the reason, the rules skipped and who asked and who granted.
bypass.declinedA request was declined, with the note.

The same moments are events: bypass.requested and bypass.granted. The bottom of Approvals › Bypass requests lists Recent bypasses, with See in Audit to open Activity. A bypass leaves its rules in place; it is right to review how often one is used.

Who can bypass tables

The Who can bypass table in the guardrail and freeze editors is sample data: Wardn stores and shows it, and nothing reads it. Who may bypass is decided by the release:bypass duty, and a request is decided by whoever holds it.

Permissions

ActionPermission
Bypass a snapshot directly; decide a request; raise a break-glass hotfixrelease:bypass on the deployment
Ask for a bypassrelease:raise on the deployment
See bypass requestsrelease:read on the deployment

Next

Related: Guardrails, Freezes, Restore and rollback.

On this page