Documentation
¶
Overview ¶
Package features gates Flightbay Enterprise features.
These optional features are enabled by default. Turn them off with:
FLIGHTBAY_ENTERPRISE=0 every Enterprise feature off FLIGHTBAY_FEATURES=-reach just this one off FLIGHTBAY_ENTERPRISE=0 FLIGHTBAY_FEATURES=traffic only these on
Agent mode (AGENT=1 or FLIGHTBAY_AGENT=1) trims the desk to what matters for agents: Traffic, the agentic Scorecard, Resources and the Log explorer.
This is a product gate, not a security boundary: anything that must be protected (the hosted service, uploads) enforces its own authentication.
Index ¶
Constants ¶
const ( Priorities = "priorities" // best practices: fix-first ranking, points if fixed, severity colours Reach = "reach" // agent reach: per-agent blast radius, network paths, fixes Traffic = "traffic" // the Traffic page: ztunnel connections and agentgateway calls, and the "why was this denied?" explainer // Activity was its own feature; the agentgateway calls it covered are // now a layer of the Traffic page. The name stays so code reads well, // and FLIGHTBAY_FEATURES=activity still turns traffic on. Activity = Traffic )
Known features. Add new ones here so the UI and `flightbay-desk features` can list them.
Variables ¶
This section is empty.
Functions ¶
func AgentMode ¶
func AgentMode() bool
AgentMode reports whether the desk runs in agent mode: AGENT=1 or FLIGHTBAY_AGENT=1, or SetAgentMode.
func Set ¶
Set turns features on or off for this process (tests, --enterprise flags). Set(nil) goes back to reading the environment.
func SetAgentMode ¶
func SetAgentMode(on bool)
SetAgentMode turns agent mode on or off for this process (tests, the --agent flag).