Skip to content

Configuration Switch Effects ​

This page enumerates every configuration switch in the repository that has a visible effect when toggled — the DOC-001 evidence inventory. For each switch the table records the config key, the default state, and what changes between off and on. The GUI-visible feature flags carry generated off/on screenshots + GIF evidence (see below); the server/agent switches are config-level (their effect is described in the row) since they have no operator-console visual change.

Conventions:

  • off / on describe the observable behavior change, not the raw byte.
  • Defaults marked (example) come from configs/*.yaml; (code) marks a code-level default (Go zero value unless noted).
  • featureFlags.* flags are absent = enabled; only an explicit false disables a domain. The control plane (API routes + dashboard menus) is trimmed by these flags; data-plane components are not governed by them.

Feature Flags (dashboard menu + API route domains) ​

These are the most user-visible switches: each toggles a product domain's menu entries in the operator console and the registration of its API routes.

KeyDefaultOff effectOn effect
featureFlags.devenabled (absent)dev menu (Dev) hidden; routes not registereddev domain (defect tracking / task scheduling) visible
featureFlags.supportenabled (absent)support menu (Support) hiddensupport domain (tickets / FAQ / feedback) visible
featureFlags.analyticsenabled (absent)analytics menu (Analytics) hiddenanalytics domain (data analysis) visible
featureFlags.opsenabled (absent)ops menus (Operations Center + Risk Control) hiddenops domain (operations center) visible
featureFlags.extensionsenabled (absent)extensions routes unregistered; no menu change (all extension pages are hideInMenu)extensions domain (extension center) routes registered

Feature flag evidence (off → on) ​

Each flag was toggled on a throwaway local server and the console sidebar captured in both states by scripts/docs/config-switch-evidence.sh (headless Chromium login → screenshot → labeled comparison + crossfade GIF). Artifacts live under docs/public/evidence/config-effects/<flag>/.

featureFlags.ops — Operations Center and Risk Control disappear together (both route groups are gated by the same canOpsRead access key):

featureFlags.ops off vs on

Toggle GIF · off · on

featureFlags.support — Support menu (客服系统):

featureFlags.support off vs on

Toggle GIF · off · on

featureFlags.analytics — Analytics menu (分析中心):

featureFlags.analytics off vs on

Toggle GIF · off · on

featureFlags.dev — Dev menu (研发):

featureFlags.dev off vs on

Toggle GIF · off · on

Server Configuration Switches ​

KeyDefaultOff effectOn effect
database.multiGamefalse (code)Single database; row-level isolation via game_idEach (game_id, env) gets its own physical database
cache.enabledfalse (code)Cache disabled; direct store accessCache layer active
cluster.enabledfalse (code)Cluster features off; standalone operationCluster membership / owner forwarding active
cluster.insecureSkipTlsfalse (code)Peer TLS verifiedPeer TLS verification skipped
cluster.allowStandaloneDegradefalse (code)Cluster required; standalone refusedStandalone degrade allowed when cluster unavailable
cluster.allowPlaintextInterconnectfalse (code)Interconnect TLS fail-closed (refuses boot if certs missing)Explicitly permit plaintext interconnect (trusted isolated intranet; degraded)
cluster.interconnectTls.enabledfalse (code)Plaintext only when allowPlaintextInterconnect: true; otherwise boot is refusedmTLS interconnect (peer-certificate identity)
cluster.interconnectTls.insecureSkipVerifyfalse (code)Peer cert verifiedPeer cert verification skipped
agentDispatch.enableHAfalse (code)HA features offHA multi-instance dispatch features active
agentDispatch.reconnection.enableAutoReconnectfalse (code)No auto-reconnectAgent auto-reconnect on drop
agentDispatch.toAgentTLS.enabledfalse (code)Plaintext to agentTLS to agent
agentDispatch.toAgentTLS.insecureSkipVerifyfalse (code)Agent cert verifiedAgent cert verification skipped
approval.allowSelfApprovefalse (example)Self-approval rejectedOperator may approve their own request
executionLog.enabledfalse (code)Execution log not writtenExecution log written per execution
descriptors.schemaDiffWarnfalse (code)Schema drift silentSchema drift logged as warning
storage.forcePathStylefalse (code)Virtual-host style (S3)Path-style object URLs
metrics.perFunctiontrue (example)Aggregated metrics onlyPer-function metrics emitted
metrics.perGameDeniesfalse (example)Per-game metrics not deniedPer-game metrics denied (off by scope)
serverStatus.enabledfalse (code)Maintenance gate bypassedAgent-probe maintenance window gate active
herald.enabledfalse (code)Pure croupier alert pageAlerts delivered via herald channels
provision.enabledfalse (code)Provisioning offProvision / destroy workflows active
backup.schedule.enabledfalse (code)No scheduled backupsScheduled backups for registered sources
vault.enabledfalse (code)Secrets inline in configSensitive credentials via vault provider

Telemetry Switches ​

KeyDefaultOff effectOn effect
telemetry.enabledfalseOTel off; zero-overhead pathOTel SDK active
telemetry.enable_tracingfalseNo tracing exportTrace spans exported
telemetry.enable_metricsfalseNo metric exportMetrics exported
telemetry.use_tlsfalsePlaintext OTLPTLS to collector
telemetry.prometheus.enabledfalsePrometheus scrape off/metrics scrape endpoint active

Authentication Provider Switches ​

Each provider's enabled gate adds/removes that identity source from the login flow. register.enabled gates self-registration.

KeyDefaultOff effectOn effect
auth.providers.local.enabledfalse (code)Local login disabledLocal username/password login enabled
auth.providers.ldap.enabledfalse (code)LDAP login disabledLDAP directory login enabled
auth.providers.ldap.startTlsfalse (code)Plain LDAPSTARTTLS upgrade
auth.providers.ldap.insecureSkipVerifyfalse (code)LDAP cert verifiedLDAP cert verification skipped
auth.providers.oidc.enabledfalse (code)OIDC login disabledOIDC single sign-on enabled
auth.providers.github.enabledfalse (code)GitHub login disabledGitHub OAuth login enabled
auth.providers.wechat.enabledfalse (code)WeChat login disabledWeChat OAuth login enabled
auth.providers.genericoauth.enabledfalse (code)Generic OAuth disabledGeneric OAuth provider enabled
auth.providers.register.enabledfalse (code)Self-registration disabledSelf-registration enabled

Agent-Side Switches ​

These live in the agent / sidecar / capture / devops / synthetics configs (configs/*-agent.example.yaml, internal/app/agent/ops_config.go).

KeyDefaultOff effectOn effect
ops.metricsEnabledfalse (example)Ops metrics offOps node metrics collected/reported
ops.allowRestartfalse (example)Agent restart refusedAgent restart permitted via ops API
ops.allowExecfalse (example)Exec refused (allowlist empty)Exec permitted within allowlist
ops.allowUpdatefalse (example)Agent update refusedAgent update permitted
ops.autoRestartfalse (example)No auto-restartAuto-restart on crash
capture.telemetry.enabledfalseCapture OTel offCapture telemetry exported
devops.telemetry.enabledfalseDevOps OTel offDevOps telemetry exported
synthetics.telemetry.enabledfalseSynthetics OTel offSynthetics telemetry exported

The agent-side telemetry switches reuse the shared telemetry block (enabled + enableMetrics + collectorUrl + useTls + serviceName); see config-agent.md for the full block and the no_otel build-tag fail-closed behavior.

Known Boundaries ​

  • Defaults are the repository example / code fallback; a deployment may override any of them via YAML / env / CLI precedence.
  • Switch keys use the canonical lowerCamelCase config contract; the shared analytics telemetry block retains its historical snake_case keys (enable_tracing, enable_metrics, use_tls, collector_url, service_name) as a compatibility surface.
  • featureFlags.extensions is route-only: all extension pages are hideInMenu, so toggling it changes no sidebar entry (verified empirically — the off/on menu labels are identical). It only registers/unregisters the extension API routes. This differs from the other four flags, which each hide a top-level menu.
  • featureFlags.ops hides both Operations Center and Risk Control: the /risk/* routes are gated by the same canOpsRead access key as /ops/*, so disabling ops removes both menus.
  • The off/on screenshots + GIFs above are generated by scripts/docs/config-switch-evidence.sh against a throwaway local SQLite server; the pipeline is re-runnable for any featureFlags.<name> and writes artifacts to docs/public/evidence/config-effects/<flag>/.
  • The remaining switches in this inventory are server/agent-side and have no operator-console visual change; their evidence is config-level (the switch's effect is described in the row), not a screenshot.