Quickstart
Watch GuardBee catch a policy that looks right and isn’t, on a disposable local cluster. About ten minutes, most of it Cilium starting up. No cluster of your own needed.
You need: GuardBee installed, plus mise, Docker, kind, helm and kubectl on your PATH.
1. Start the lab cluster
git clone https://github.com/tchellomello/guardbee.git
cd guardbee
mise run lab-up
A kind cluster with Cilium and Hubble Relay, running three workloads: webapp talks to postgres, and prometheus scrapes postgres’s metrics exporter. The kubelet health-checks postgres too.
2. Judge a policy that looks correct
This candidate locks postgres down to “just the app”. It was never applied; GuardBee reads it as a file:
guardbee verdict -n postgres --last 50 lab/candidates/looks-correct.yaml
Judging 1 candidate rule(s) from looks-correct.yaml against 0
live rule(s) already in postgres, using 50 sampled flows.
NEWLY_DROPPED observability/prometheus-xxxxx -> postgres/postgres-xxxxx
TCP:9187 (currently allowed; this candidate would start blocking it)
NEWLY_DROPPED reserved:host -> postgres/postgres-xxxxx
TCP:5432 (currently allowed; this candidate would start blocking it)
(seen 16x in this sample)
50 flows sampled: 15 unchanged, 17 newly dropped, 0 newly
allowed, 0 not simulated, 18 reply (skipped)
17 real flow(s) would BREAK if this candidate merged as-is —
review the NEWLY_DROPPED rows above before shipping it.
It allows webapp, and silently breaks the Prometheus scrape and the kubelet’s health probe (reserved:host). Exact counts depend on your sample; the two rows don’t.
3. Judge the fix
guardbee verdict -n postgres --last 50 lab/candidates/merge-ready.yaml
Judging 1 candidate rule(s) from merge-ready.yaml against 0
live rule(s) already in postgres, using 50 sampled flows.
50 flows sampled: 31 unchanged, 0 newly dropped, 0 newly
allowed, 0 not simulated, 19 reply (skipped)
4. See it in the browser
guardbee ui
Open http://127.0.0.1:4747, go to Verdict, and run the same two candidates. The broken flows are red dashed edges on the graph, and + Add to Policy on a NEWLY_DROPPED row writes the missing rule for you.
When you’re done, mise run lab-down deletes the cluster. Nothing else on your machine was touched.
Next
| To | Read |
|---|---|
| The same story with the UI’s editor and more detail | Lab |
Go deeper on the same cluster: connectivity tests, L7 rules, toFQDNs |
Lab extras |
| Run it against your own cluster | Run on your cluster |
| Fail pull requests that would break real traffic | Gate PRs in CI |