Skip to content

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.

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
  • 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}.

On the flag detail page (or inline from the list), toggle Kill Switch to immediately force a flag off everywhere:

  • BOOL flags return false.
  • ENUM flags 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.

Below the kill switch, set the Global default (falling back to the code default when cleared) and configure ordered Targeting rules:

  1. Click Add rule and give the rule a descriptive name and target value (true/false or one of the declared ENUM variants).
  2. Add one or more Clauses (attribute, operator, values). All clauses in a rule must match (logical AND). Supported attributes are client, principal, principalKind, tier, role and attr.<name>.
  3. Optionally enable a Percentage rollout (0–100%) and choose the bucketing key (client by default, principal, or attr.<name>).
  4. Reorder rules top-to-bottom: the first matching rule wins.

Use Client overrides to turn a flag on or off for a specific tenant (or attach client-scoped sub-rules):

  1. Choose a client by identifier or id.
  2. Pick an explicit value (true/false or an ENUM variant), or leave the value unset if you only want to lock the client to the global rules.
  3. Optionally check Lock override (locked = true):
    • For a CLIENT_MANAGED flag, 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.

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.

  • 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 RELEASE or EXPERIMENT flag whose reviewAfter date has passed is highlighted in the list so teams clean up temporary toggles instead of accumulating dead branches.