Skip to content

Configuration

Kimera merges configuration from four sources. Later sources override earlier ones:

  1. src/kimera/config/default.yaml — the packaged defaults.
  2. A profile file, when one is selected.
  3. Environment variables.
  4. Runtime flags passed on the command line.

The merged result is validated against the ToolkitConfig schema before any command runs.

A profile is a YAML file under the config directory’s profiles/ folder. It can set the namespace, the target services, the exploit_mappings that bind an exploit type to a workload, and the network_topology used for NetworkPolicy generation.

-n <namespace> loads profiles/<namespace>.yaml automatically when that file exists, so one namespace keeps one set of target settings. -p <name> selects a profile explicitly and overrides the namespace match. The bundled unguard profile is the worked example.

Configuration ships inside the installed package. To supply your own profiles and checks without editing an installed package, set KIMERA_CONFIG_DIR to a directory laid out the same way. It replaces the packaged directory wholesale, so it needs its own default.yaml.

The mappings in src/kimera/config/env_mappings.yaml route these variables into the config:

Variable Overrides
KIMERA_NAMESPACE kubernetes.namespace
KIMERA_CONTEXT kubernetes.context
KIMERA_KUBECONFIG kubernetes.kubeconfig_path
KIMERA_DRY_RUN dry_run
KIMERA_DEBUG debug
KIMERA_VERBOSE verbose
KIMERA_TIMEOUT_ROLLOUT timeouts.rollout
KIMERA_TIMEOUT_STREAM timeouts.stream
KIMERA_TIMEOUT_COMMAND timeouts.command
KIMERA_LOG_LEVEL logging.level
KIMERA_LOG_FILE logging.file

Two more variables are read outside this mapping table: KIMERA_CONFIG_DIR selects the config directory, and KIMERA_LLM_PROVIDER forces a completion backend. The Helm server Deployment sets KIMERA_TARGET_NAMESPACE, but that name is in no mapping and is read nowhere in the source, so it has no effect; see Helm values.

The timeouts block sets three limits in seconds: rollout (deployment rollout wait, default 120), stream (stream read, default 1), and command (in-pod command, default 60). Override them in a profile or through the KIMERA_TIMEOUT_* variables.

Commands that call a model, such as remediation generation, pick a backend in this order:

  1. KIMERA_LLM_PROVIDER, when set, forces a backend: anthropic, litellm, or claude-cli. An unknown value, or one whose requirement is unmet, is an error rather than a silent fallback.
  2. A model identifier containing a slash (provider/model) routes through litellm.
  3. ANTHROPIC_API_KEY, when set, selects the Anthropic SDK.
  4. The signed-in claude CLI, when present on PATH.

With none of these available, the command reports that no backend is configured. The default model is claude-sonnet-4-6; litellm needs the litellm extra, and the Anthropic SDK needs the llm extra.

All product names and logos are trademarks of their respective owners, used for identification only. No endorsement is implied.