flightbay

module
v0.4.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: Apache-2.0

README

Flightbay

Investigate a Kubernetes cluster you can't log in to.
The customer runs one command and sends you a redacted file.
You open it on your laptop and work through it as if the cluster were live.

Latest release CI

Install · Quick start · What it is · Guides

The Flightbay desk with a captured cluster open

Safe to send. Flightbay only reads from the cluster, redacts credentials in memory, never collects Secret values or uploads anything, and can sign and encrypt every bundle.

Install

On macOS, with Homebrew:

brew tap tjorourke/flightbay https://github.com/tjorourke/flightbay
brew install flightbay

If Homebrew asks you to trust the formula, run brew trust --formula tjorourke/flightbay/flightbay and install again.

That gives you the collector, flightbay, and the desk, flightbay-desk. On Linux and Windows, download them from the latest release (the desk runs on macOS and Linux). Whoever captures the cluster only needs flightbay. Upgrades and other options are in Install and upgrade.

Quick start

flightbay collect --context my-cluster --dry-run   # what it would read, and the RBAC it needs
flightbay collect --context my-cluster             # writes flightbay-<time>.tar.zst
flightbay ui .                                     # opens the newest capture in your browser

No cluster to hand? Open the sample, a small Istio ambient cluster with five faults planted in it:

curl -LO https://github.com/tjorourke/flightbay/raw/main/examples/sample-bundle.tar.zst
flightbay ui sample-bundle.tar.zst

What it is

Flightbay has two parts. The collector, flightbay, is a single static binary that reads the namespaces you choose and writes one redacted .tar.zst file. The desk, flightbay-desk, opens that file as a local workspace, so nobody needs access to the cluster to investigate it.

Log explorer
Every log line, searchable. Zoom into a spike, then follow a trace across pods.
k9s against a snapshot
kubectl and k9s on the snapshot. Each cluster shows up as <context>@snapshot, and changes are refused.
Scorecard
Scorecard. Security and operational checks for Kubernetes, Istio, agentgateway, kagent and kgateway, each with the YAML that fixes it.
Agent reach
Agent reach. What every AI agent can get to, the internet included, and the policy that locks it down.

The desk also shows the config Envoy, ztunnel and agentgateway had loaded, mirrors a live cluster read-only, compares two captures, scans a Git repository before anything is deployed, and gives AI agents the workspace over MCP.

Guides

Guide What's in it
Capture a cluster Send a bundle to support, choose what is collected, review, sign and encrypt it
Investigate a bundle Search, logs, findings, the Scorecard, the terminal, live clusters and MCP
Istio ambient Attachment maps, waypoints and guided changes with dry-run and undo
Flightbay Enterprise Agent reach, the Traffic map, gateway calls and fix-first priorities
Scan a repository Score manifests, Helm charts and Kustomize overlays before they ship, and gate CI
Commands Every command, and how the bundle, collector and desk work
What is collected Everything the collector reads and never reads, generated from its code
Contributing Build from source, run the tests, open a pull request

The full documentation ships inside the desk and works offline: press Docs in the sidebar.

Licence

Flightbay is in active development and licensed under the Apache License 2.0. See LICENSE.

Directories

Path Synopsis
cmd
flightbay command
Command flightbay is the customer-side collector.
Command flightbay is the customer-side collector.
flightbay-desk command
Command flightbay-desk opens a Flightbay bundle for investigation: a web UI, a read-only Kubernetes API for kubectl/k9s/stern, and a terminal.
Command flightbay-desk opens a Flightbay bundle for investigation: a web UI, a read-only Kubernetes API for kubectl/k9s/stern, and a terminal.
Package docs embeds the documentation so flightbay-desk can serve it at /docs with no network access.
Package docs embeds the documentation so flightbay-desk can serve it at /docs with no network access.
internal
ambient
Package ambient explains ambient configuration using captured evidence and generates narrowly scoped configuration plans.
Package ambient explains ambient configuration using captured evidence and generates narrowly scoped configuration plans.
analyze
Package analyze turns captured evidence into findings.
Package analyze turns captured evidence into findings.
apiserver
Package apiserver serves a workspace as a read-only Kubernetes API, so kubectl, k9s and stern work against a snapshot as if it were a cluster.
Package apiserver serves a workspace as a read-only Kubernetes API, so kubectl, k9s and stern work against a snapshot as if it were a cluster.
bundle
Package bundle writes and reads Flightbay bundles: a plain tar stream, compressed with zstd and optionally wrapped in age encryption.
Package bundle writes and reads Flightbay bundles: a plain tar stream, compressed with zstd and optionally wrapped in age encryption.
cli
Package cli holds the testable parts of the flightbay and flightbay-desk commands: policy flags, bundle inspection and extraction, and the small desk client behind the fbq and fbfind shell helpers.
Package cli holds the testable parts of the flightbay and flightbay-desk commands: policy flags, bundle inspection and extraction, and the small desk client behind the fbq and fbfind shell helpers.
clidoc
Package clidoc renders a cobra command tree as one Markdown reference page for the docs (docs/site/content/reference/cli-*.md).
Package clidoc renders a cobra command tree as one Markdown reference page for the docs (docs/site/content/reference/cli-*.md).
collect
Package collect reads a Kubernetes cluster through the resolved collection policy, redacts in memory and streams the result into a bundle.
Package collect reads a Kubernetes cluster through the resolved collection policy, redacts in memory and streams the result into a bundle.
diff
Package diff compares objects across clusters or across two bundles from the same customer (before and after), with metadata noise removed and absence judged against coverage rather than assumed.
Package diff compares objects across clusters or across two bundles from the same customer (before and after), with metadata noise removed and absence judged against coverage rather than assumed.
features
Package features gates Flightbay Enterprise features.
Package features gates Flightbay Enterprise features.
flows
Package flows turns observed traffic from any source into one normalised record: agentgateway and Envoy access logs, CoreDNS query logs, and flow logs exported from a CNI or a cloud network (Cilium Hubble, Calico, AWS, GCP and Azure VPC flow logs, or a generic CSV / JSON Lines file).
Package flows turns observed traffic from any source into one normalised record: agentgateway and Envoy access logs, CoreDNS query logs, and flow logs exported from a CNI or a cloud network (Cilium Hubble, Calico, AWS, GCP and Azure VPC flow logs, or a generic CSV / JSON Lines file).
importer
Package importer streams a bundle into a workspace.
Package importer streams a bundle into a workspace.
logs
Package logs parses captured container log lines into structured records and evaluates the Flightbay log query language.
Package logs parses captured container log lines into structured records and evaluates the Flightbay log query language.
mcp
Package mcp exposes an open Flightbay workspace to AI agents as a Model Context Protocol server over stdio.
Package mcp exposes an open Flightbay workspace to AI agents as a Model Context Protocol server over stdio.
meshdiag
Package meshdiag understands diagnostic output from Envoy, ztunnel and agentgateway config dumps, istiod debug endpoints and certificates.
Package meshdiag understands diagnostic output from Envoy, ztunnel and agentgateway config dumps, istiod debug endpoints and certificates.
policy
Package policy resolves what a customer allows Flightbay to collect.
Package policy resolves what a customer allows Flightbay to collect.
posture
Package posture scores a snapshot against security and operational checks for the agentic stack (agentgateway, kagent, agentregistry, MCP) and Istio ambient, and says what to change.
Package posture scores a snapshot against security and operational checks for the agentic stack (agentgateway, kagent, agentregistry, MCP) and Istio ambient, and says what to change.
reach
Package reach works out, for every agent in a snapshot, everything it can reach on the network and everything those destinations can reach on its behalf: the agent's real blast radius.
Package reach works out, for every agent in a snapshot, everything it can reach on the network and everything those destinations can reach on its behalf: the agent's real blast radius.
redact
Package redact removes credentials from Kubernetes objects and log text before anything is written to a Flightbay bundle.
Package redact removes credentials from Kubernetes objects and log text before anything is written to a Flightbay bundle.
review
Package review turns a captured bundle into the bundle a customer agrees to send: whole namespaces, resource types, objects, log streams, log lines, diagnostic and flow files taken out, extra patterns and fields redacted, and the result signed again with a ledger of what was removed.
Package review turns a captured bundle into the bundle a customer agrees to send: whole namespaces, resource types, objects, log streams, log lines, diagnostic and flow files taken out, extra patterns and fields redacted, and the result signed again with a ledger of what was removed.
scan
Package scan builds a Flightbay bundle from a code repository instead of a live cluster: plain manifests, Helm charts, Kustomize overlays and the Argo CD and Flux objects that point at them.
Package scan builds a Flightbay bundle from a code repository instead of a live cluster: plain manifests, Helm charts, Kustomize overlays and the Argo CD and Flux objects that point at them.
server
Package server is the flightbay-desk HTTP server: the JSON API behind the web UI, the embedded UI itself, the fake kube-apiserver mounted at /k8s/ and a real terminal over a websocket.
Package server is the flightbay-desk HTTP server: the JSON API behind the web UI, the embedded UI itself, the fake kube-apiserver mounted at /k8s/ and a real terminal over a websocket.
sign
Package sign creates and checks the Ed25519 signatures on Flightbay bundles and collection policies.
Package sign creates and checks the Ed25519 signatures on Flightbay bundles and collection policies.
solodocs
Package solodocs holds links to upstream product documentation, so the Scorecard, Agent reach and the analyzer can link each result to the page that explains the feature.
Package solodocs holds links to upstream product documentation, so the Scorecard, Agent reach and the analyzer can link each result to the page that explains the feature.
store
Package store holds an imported workspace in memory.
Package store holds an imported workspace in memory.
store/duckdb
Package duckdb links DuckDB into the workspace store.
Package duckdb links DuckDB into the workspace store.
store/sqldriver
Package sqldriver is the hook between the workspace store and DuckDB.
Package sqldriver is the hook between the workspace store and DuckDB.
upgrade
Package upgrade installs checksum-verified binaries from Flightbay releases.
Package upgrade installs checksum-verified binaries from Flightbay releases.
scripts
scorecard-checks command
Command scorecard-checks regenerates docs/site/content/desk/scorecard-checks.md from the check definitions in internal/posture.
Command scorecard-checks regenerates docs/site/content/desk/scorecard-checks.md from the check definitions in internal/posture.
screenshots command
Command screenshots retakes the desk screenshots in docs/images.
Command screenshots retakes the desk screenshots in docs/images.
Package web embeds the Flightbay desk UI.
Package web embeds the Flightbay desk UI.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL