Skip to content

Configuration reference

Capsem combines built-in defaults, user settings, and corporate constraints. The service owns the effective policy supplied to each VM’s workers.

Files

InputFormatPurpose
~/.capsem/settings.tomlTOMLUser preferences, provider/MCP settings, plugins, and rule-file selections.
/etc/capsem/corp.toml, then ~/.capsem/corp.tomlTOMLAdministrator constraints and reporting configuration. System corporate entries win conflicts.
[rule_files].enforcementPath to TOMLUser enforcement rules.
[rule_files].sigmaPath to YAMLUser detection rules.
[corp_rule_files].enforcementPath to TOMLAdministrator enforcement rules.
[corp_rule_files].sigmaPath to YAMLAdministrator detection rules.
vm/active_policy.tomlGenerated TOMLEffective policy prepared by the service; do not edit it.

CAPSEM_CORP_CONFIG selects one exclusive corporate file instead of the two standard corporate paths.

Relative rule-file paths are resolved from their containing configuration file. CAPSEM_HOME and CAPSEM_RUN_DIR relocate installation/runtime paths for isolated installations; they do not select a remote SDK endpoint.

Application preferences

KeyTypeDefault
app.auto_updateBooleantrue
app.notificationsBooleantrue
app.start_service_at_loginBooleantrue
appearance.themeString"system"
appearance.font_sizeNumber14
appearance.reduced_motionBooleanfalse

These preferences do not grant worker permissions or override security rules.

Runtime policy

SectionContract
rule_filesUser enforcement and Sigma file references.
corp_rule_filesCorporate enforcement/Sigma file references and reporting endpoints.
providers / mcpConfigured provider/server identities and scoped rules.
profiles.rulesUser rule group; see Enforcement rules.
corp.rulesCorporate rule group; cannot be minted by a user rule file.
imagesCatalog selection, permitted fetch sources, and admitted images. Corporate image policy replaces the user’s section.
networkRouter, DNS, supported upstream ports, and capture bounds.
managed_sessionsService-owned temporary VM lease/cleanup limits.
pluginsPlugin mode and detection level; plugin decisions may tighten enforcement.

Built-in defaults load first, user settings overlay them, and corporate constraints take precedence. A user cannot create corporate priority by setting a negative number or marking a rule locked. Invalid corporate policy refuses security admission; the settings UI remains available for repair.

Each runtime receives an acknowledged policy revision. Proxy reloads install one immutable revision for routing, DNS, plugins, provider identity, and response processing. Credential admission checks both the acknowledged runtime policy and current policy.

Validation and schema

Terminal window
capsem-admin settings validate ~/.capsem/settings.toml --json
capsem-admin enforcement validate ~/.capsem/access-rules.toml --source user --json
capsem-admin detection validate ~/.capsem/detection.yaml --source user --json

Use --source corp when validating administrator rules. Shape validation does not prove that a rule will allow the intended operation: test its effective decision in a VM.

The checked-in settings JSON Schema defines the settings shape. The configuration types and rule types define runtime policy contracts. UI metadata describes controls; it does not decide runtime behavior.