Manage feature flags
Feature flags are defined in code and synced by each application, then operated at run time in the
FlowCatalyst console. Every mutation increments the application’s flag revision, records an audit
entry, and pushes a wake-up event over LISTEN/NOTIFY and SSE so connected instances update
within a second.
Permissions
Section titled “Permissions”| Permission | Who holds it | What it allows |
|---|---|---|
platform:admin:flags:view |
Platform admin, read-only admin | List flags, inspect rules, overrides and history, and run the evaluation simulator |
platform:admin:flags:manage |
Platform admin (operators only) | Toggle kill switches, edit global defaults and targeting rules, set/lock/unlock/clear client overrides, and delete orphaned flags |
platform:application-service:flags:sync |
Application service account | Sync code definitions (POST /api/applications/{app}/flags/sync) |
platform:application-service:flags:read |
Application service account | Fetch snapshots (GET .../snapshot) and open SSE watch streams (GET .../watch) |
platform:application-service:flags:client-override |
Application service account | Set or clear unlocked CLIENT_MANAGED overrides on behalf of a client administrator |
Find the pages
Section titled “Find the pages”- Platform → Feature Flags (
/ui/flags): all flags across applications, with filters for Application, Status (Active,Killed,Orphaned,Past review), Governance, and search by key or description. - Flag detail (
/ui/flags/{appCode}/{key}): full controls for one flag — kill switch, global default, ordered targeting rules, per-client overrides with locks, and the evaluation simulator. - Client detail → Feature Flags tab: every flag override active for one client across all entitled applications, with quick edit, lock/unlock and clear actions.
- Application detail → Feature Flags tab: summary of an application’s declared flags, killed
count and orphaned count, linking straight to
/ui/flags?app={code}.
Emergency kill switch
Section titled “Emergency kill switch”On the flag detail page (or inline from the list), toggle Kill Switch to immediately force a flag off everywhere:
BOOLflags returnfalse.ENUMflags return their code-declared default.- Evaluation reason becomes
KILLED.
A kill switch overrides every targeting rule and every per-client override without deleting them. When the incident is resolved, clearing the kill switch restores the prior rules and overrides intact.
Global default and targeting rules
Section titled “Global default and targeting rules”Below the kill switch, set the Global default (falling back to the code default when cleared) and configure ordered Targeting rules:
- Click Add rule and give the rule a descriptive name and target value (
true/falseor one of the declaredENUMvariants). - Add one or more Clauses (
attribute,operator,values). All clauses in a rule must match (logical AND). Supported attributes areclient,principal,principalKind,tier,roleandattr.<name>. - Optionally enable a Percentage rollout (
0–100%) and choose the bucketing key (clientby default,principal, orattr.<name>). - Reorder rules top-to-bottom: the first matching rule wins.
Per-client overrides and locks
Section titled “Per-client overrides and locks”Use Client overrides to turn a flag on or off for a specific tenant (or attach client-scoped sub-rules):
- Choose a client by identifier or id.
- Pick an explicit value (
true/falseor anENUMvariant), or leave the value unset if you only want to lock the client to the global rules. - Optionally check Lock override (
locked = true):- For a
CLIENT_MANAGEDflag, locking prevents the client’s administrators from changing or clearing their override through the application’s self-service UI (403 FLAG_LOCKED). - Clear the lock when self-service control should resume.
- For a
Test before saving with the Simulator
Section titled “Test before saving with the Simulator”The Evaluate / Simulator drawer on the flag detail page evaluates the current flag state against
any test context (client, principal, principalKind, tier, roles, and custom attrs)
using the exact same evaluator that applications run in memory. It displays the resolved value, the
winning precedence reason (KILLED, CLIENT_RULE, CLIENT_OVERRIDE, GLOBAL_RULE,
GLOBAL_DEFAULT or CODE_DEFAULT), and the matching rule id if a rule matched.
Hygiene: orphaned and past-review flags
Section titled “Hygiene: orphaned and past-review flags”- Orphaned (
inCode = false): the flag was removed from the application’s latest definition sync. It stays visible so you can verify no older deployment still depends on it; once safe, delete it from the flag detail page. - Past review: a
RELEASEorEXPERIMENTflag whosereviewAfterdate has passed is highlighted in the list so teams clean up temporary toggles instead of accumulating dead branches.