Skip to content

Releases

v1.20.4-7

Choose a tag to compare

@tchellomello tchellomello released this 26 Nov 08:14

Highlights

Works with Cilium in kube-system out of the box (#54, #56):

  • --hubble-namespace (default kube-system, Cilium's own Helm and cilium install default) sets where hubble-relay is found and cilium-config is read, on every command that reaches relay. Previously this was hard-coded to cilium-system, so on most clusters flows, blame and verdict couldn't find relay, and HTTP requests were never judged.
  • --hubble-addr on every relay command (#56). policies, ui and version now take it too, alongside flows, blame and verdict. Dialing relay's Service directly (e.g. --hubble-addr hubble-relay.kube-system.svc:80) now really lets you drop the pods get/list + pods/portforward rules from kubernetes/rbac.yaml.
  • Shell completions cover --hubble-addr plus flags that were missing: --to-fqdn, --http-*, verdict's CI gate flags, and --templates-dir.

Upgrade note: if Cilium is installed in cilium-system, pass --hubble-namespace cilium-system. The default is now kube-system. The relay Role in kubernetes/rbac.yaml also moved to kube-system; re-apply it, or edit the namespace to match your install.

Docs (#47, #49, #50, #52, #53, #55): the README is now a landing page; the docs site has a three-column layout with light/dark theme; there are new Quickstart, CI and FAQ guides and a how-it-works diagram; the Lab is split into the core story and Lab extras; and accuracy fixes came out of a docs audit.

Engine: Cilium v1.20.4 (unchanged).

What's Changed

  • feat: --hubble-namespace, defaulting to Cilium's own kube-system (#54)
  • fix: --hubble-addr on every command that reaches hubble-relay (#56)
  • docs: trim README into a landing page (#47)
  • docs: readable three-column layout and light/dark theme (#49)
  • docs: landing page shows the product first, then tells the story (#50)
  • docs: accuracy fixes found in the docs audit (#52)
  • docs: quickstart, CI and FAQ guides; how-it-works diagram; regrouped nav (#53)
  • docs: split the Lab into the core story and Lab extras (#55)

Full Changelog: v1.20.4-6...v1.20.4-7

v1.20.4-6

Choose a tag to compare

@tchellomello tchellomello released this 25 Nov 14:02
fd0b027

Highlights

Security hardening (#35, #36, #37, #38, #39):

  • UI server. Non-probe JSON POST bodies are size-bounded (MaxBytesReader, #35). Cross-site requests (Sec-Fetch-Site: cross-site/same-site) are refused, frame and nosniff headers are set, and the server has read-header and idle timeouts (#38).
  • Markdown output. Verdict markdown cells render as inert code spans, so flow data can't inject markup (#36).
  • Connectivity tests. Hex/octal host spellings are refused, and Service references require the cluster domain (#39).
  • Supply chain (#37). GitHub Actions are pinned to commit SHAs, CI runs with a least-privilege token, and release tarballs carry signed build-provenance attestations: gh attestation verify <tarball> --repo tchellomello/guardbee.

Verdict gate (#40):

  • Policies wrapped in a List document are now judged (expanded the way kubectl does), so they can't slip past --fail-on-dropped unjudged. Skipped documents, such as a Kubernetes NetworkPolicy, are named under "Not judged" in table, markdown and JSON (skippedDocuments).

Docs: walkthrough videos now live on the docs-media release instead of the repo.

Engine: Cilium v1.20.4 (unchanged).

What's Changed

  • ui: bound non-probe JSON POST bodies (#35)
  • verdict: render markdown cells as inert code spans (#36)
  • ci: pin actions to SHAs, least-privilege token, provenance attestation (#37)
  • ui: refuse cross-site requests, add frame/nosniff headers and server timeouts (#38)
  • probes: refuse hex/octal host spellings; require cluster domain for Service refs (#39)
  • verdict: judge policies inside List documents; report skipped documents (#40)
  • ci: bump mise-action, checkout, kind-action, install-nix-action, upload-artifact, action-gh-release (#41–#46)

Full Changelog: v1.20.4-5...v1.20.4-6

Documentation Media Assets

Choose a tag to compare

@tchellomello tchellomello released this 25 Nov 01:53
b581111

Walkthrough video assets referenced by the GuardBee documentation (kept outside git to keep clones and Nix flake fetches lean).

v1.20.4-5

Choose a tag to compare

@tchellomello tchellomello released this 24 Nov 23:41
4bc08cd

Highlights

L7-aware verdicts — HTTP, DNS, and L7_CHANGED (#26, #29):

  • Rules compared (L7_CHANGED). Traffic that stays allowed at L4 while its L7 proxy rules change is reported as L7_CHANGED with before/after rules (--fail-on-l7, exit code 5).
  • Per-request DNS & HTTP judging. For traffic already behind Cilium's DNS proxy or Envoy, GuardBee judges every recorded DNS query (using Cilium's matchpattern semantics) and HTTP request (against Envoy's translated rules, labelled matched by GuardBee, not Envoy), flagging regressions as NEWLY_DROPPED with the exact query or request named. Reads cilium-config once to disable HTTP judging when URL-query redaction is enabled (kubernetes/rbac.yaml adds get on cilium-config).
  • L7 flow filters. Shared across CLI and UI: --http-method, --http-path, --http-status, --to-fqdn, plus an L7 requests quick filter.
  • Policy Editor safety. Policies using L7 HTTP/DNS, SNI/TLS, Envoy listeners, or toFQDNs are kept verbatim instead of being lossily rewritten by the L4 visual model.

toFQDNs candidate simulation (#31, #32):

  • New or modified toFQDNs selectors (not yet present in any live policy) are matched against Hubble's destination_names using Cilium's own regex and label derivation; flows without DNS history that a candidate would drop are marked NOT_SIMULATED rather than guessed.
  • World/CIDR rows now display their DNS names directly (e.g. reserved:world (api.github.com) in CLI/markdown/UI, destinationNames in JSON), and warn when a toFQDNs policy has no rules.dns.

Connectivity tests & UI workflow polish (#24, #25, #27, #30, #33):

  • Per-run connectivity tests & Service picker. Each Verdict run card owns its own Connectivity tests panel bound to that run's frozen candidate/scope (including stopped live --follow runs), with cluster Service autocomplete that auto-fills ports (kubernetes/rbac.yaml adds list on services).
  • Stricter probe & UI safety. External non-Service hostnames are refused with 422 before injection; DNS-rebinding guard (rebindingGuard) now protects every UI endpoint, and localhost redirects to the numeric loopback address when --enable-probes is active.
  • Verdict → Policy Editor & unified console design. Added Edit in Policy Editor directly from Verdict candidates and aligned headings, grids, and colors across all four tabs.

Docs & self-paced Lab (#29, #31, #34):

  • Added Lab Steps 6 (L7 HTTP & DNS) and 7 (toFQDNs), validated in lab-validate, and refreshed the landing-page demo walkthrough video using the live Lab scenario.

Engine: Cilium v1.20.4 (unchanged).

What's Changed

  • Refuse external hostnames in connectivity tests; redirect localhost (#24)
  • UI: one design language across all four tabs (#25)
  • verdict: L7-aware verdicts (L7_CHANGED, DNS and HTTP request verdicts, L7 filters) (#26)
  • UI: Edit in Policy Editor, Service picker, connectivity tests per run (#27)
  • lab: validate per-request L7 verdicts; Lab guide step for L7 policies (#29)
  • UI: a stopped live run can run connectivity tests (#30)
  • verdict: judge toFQDNs candidates against Hubble's destination_names (#31)
  • verdict: name a world/CIDR destination's DNS names on its row (#32)
  • ui: DNS-rebinding guard on every endpoint; audit cleanups (#33)
  • Update demo class video (#34)

Full Changelog: v1.20.4-4...v1.20.4-5

v1.20.4-4

Choose a tag to compare

@tchellomello tchellomello released this 21 Nov 21:54
191314b

Highlights

Connectivity tests in Verdict (#23): send real TCP or UDP traffic from a workload Pod and see whether the candidate policy would allow it, next to what Hubble actually observed. Opt-in only: guardbee ui --enable-probes.

  • Vetted image catalog. Probe images come from a server-side catalog: the built-in, digest-pinned probes/images.yaml (netshoot for TCP+UDP, busybox for TCP), a replacement via --probe-images-file, or a single --probe-image. The browser picks an entry by id and can never supply an image reference.
  • Graphical results. A live stepper (authorize → capture → inject → run → collect → simulate) streams progress, and a path diagram shows source → policy gate → destination, with blocked links stopping at a ✕. Notes are short coded titles that expand on click; the evidence (observed flows, candidate simulation) is collapsed by default.
  • Fewer false INCONCLUSIVE results. Flows are correlated through Kubernetes Services (ClusterIP → EndpointSlice backends, socket-LB aware), and the FQDN/L7 and node-availability gates are scoped to the namespaces and nodes on the probe's path instead of the whole cluster.
  • Restricted by design. The ephemeral container runs as UID 65532 with a read-only root filesystem and all capabilities dropped. Workload labels are never changed, the candidate is never applied, and Pods are never deleted or restarted. See docs/guide/tcp-probes.md and kubernetes/probes-rbac.yaml.
  • Better --debug. Logs each flow's correlation reason, the probe container's output, and a Hubble flow summary.
  • One graph style across tabs. The Verdict and Flows graphs use the connectivity test's path look. Only links whose verdict changed, or that touch the selected node, are animated, and reduced-motion users see static dashes.

Verdict CI additions (#22, refs #10): --fail-on-allowed (exit 4), --per-policy judging, several candidate files or - for stdin, non-policy documents skipped with a warning, and --hubble-addr host:port to dial hubble-relay directly with no port-forward.

Also: hubble-relay port-forwarding now prefers a Ready replica, docs screenshots are regenerated in the light theme (mise run docs-screenshots), and the self-paced Lab adds a connectivity-test step that lab-validate checks in CI.

Engine: Cilium v1.20.4 (unchanged).

What's Changed

  • verdict: --fail-on-allowed, per-policy judging, multi-file/stdin input, --hubble-addr (#10) by @tchellomello in #22
  • Add policy-aware TCP/UDP connectivity tests to Verdict by @tchellomello in #23

Full Changelog: v1.20.4-3...v1.20.4-4

v1.20.4-3

Choose a tag to compare

@tchellomello tchellomello released this 15 Nov 16:15
b468018

Highlights

guardbee blame: which live policy allowed or denied real traffic (#18). For a pod or namespace, each Hubble policy-verdict event shows its direction and the policy Cilium's own agent attributed it to: allowed by CNP:ns/name, denied by CCNP:name, or default deny: no policy rule allows it. Nothing is simulated, and nothing is guessed when Hubble attached no policy.

$ guardbee blame postgres/postgres-
… INGRESS  webapp/webapp-… -> postgres/postgres-0  TCP:5432  allowed by CNP:postgres/postgres-allow-webapp
… INGRESS  reserved:world -> postgres/postgres-0   TCP:5432  denied by CCNP:lockdown
  • --format table|json|markdown, -f to follow live.
  • New hubble-compatible filters on flows, blame and verdict: --pod (source or destination) and --type (e.g. policy-verdict).
  • UI Flows tab: Direction and Decided by columns; ✎ CNP/✎ CCNP badges open the live policy in the Policy Editor; Policy verdicts quick filter, Either side → Pod and Event type fields.

Engine: Cilium v1.20.4 (unchanged).

What's Changed

Full Changelog: v1.20.4-2...v1.20.4-3

v1.20.4-2

Choose a tag to compare

@tchellomello tchellomello released this 15 Nov 06:46
b5597ed

What's Changed

  • Nix flake: install GuardBee on NixOS / Home Manager / nix profile by @tchellomello in #15
  • Release tarballs ship shell completions; README versioning update by @tchellomello in #16
  • UI: fix lost typing, save pasted policies, cap graph size, show version by @tchellomello in #17
  • Flow filters for flows and verdict (CLI + UI), live Flows tab, Verdict layout by @tchellomello in #19
  • End-to-end UI tests in CI, coverage ratchet (+2 UI fixes they found) by @tchellomello in #21

Full Changelog: v1.20.4-1...v1.20.4-2

v1.20.4-1

Choose a tag to compare

@tchellomello tchellomello released this 15 Nov 03:48
6acd380

Built against and validated with Cilium v1.20.4's own pkg/policy engine. This is the first release under the Cilium-tracking version scheme (v<cilium-version>-<n>); earlier releases were v0.0.x.

What's Changed

Engine

  • Embedded Cilium engine bumped v1.20.2 → v1.20.4. compat-scan found no removed fields and no new deprecations. Its only findings (fromRequires/toRequires) are already rejected by the existing compat gate. Brings in Cilium's own dependency updates (k8s.io 0.36.5, grpc, otel). (#14)

New

  • guardbee version also shows the Cilium version running on your cluster (via hubble-relay), naming the kube context it asked:
    guardbee v1.20.4-1
    cilium engine 1.20.4 (pinned)
    cilium cluster 1.20.4 (context: my-cluster)
    
    It flags major/minor skew from the engine, lists every version during a rolling upgrade, and says unknown when hubble-relay can't be reached. The cluster call is capped at 5s. --client skips it. (#14)

For maintainers

  • mise run bump-cilium vX.Y.Z [--lab] performs the mechanical part of a Cilium bump: it runs compat-scan, moves all version pins and runs check. A new test fails if go.mod, the engine constant and the lab's Cilium version ever disagree. (#14)
  • mise run lab-validate, and a new CI lab job on every PR, run the built binary against a real Cilium in a disposable kind cluster and assert the lab guide's verdicts. (#14)

Full Changelog: v0.0.7...v1.20.4-1

v0.0.7

Choose a tag to compare

@tchellomello tchellomello released this 12 Nov 20:38
568336f

What's Changed

  • verdict: CI mode (exit codes, --min-flows, --format json|markdown, --replace-existing) by @tchellomello in #11
  • verdict: show how long a run took, in the CLI and the UI by @tchellomello in #12
  • verdict: show which kubeconfig context a run judged, in the CLI and the UI by @tchellomello in #13

Full Changelog: v0.0.6...v0.0.7

v0.0.6

Choose a tag to compare

@tchellomello tchellomello released this 12 Nov 00:28
61fdda8

What's Changed

  • Verdict: Allow/Deny exceptions, saved-policy workspace, destination filter by @tchellomello in #8
  • Fix --last returning N per node, and the stream's candidate rule count by @tchellomello in #9

Full Changelog: v0.0.5...v0.0.6