Skip to content

Entities & Rules

EntityEmitsFor
Serverconfig.yamlk3s server — every server flag as a YAML key
Agent<name>.config.yamlk3s agent — requires server
Registriesregistries.yamlcontainerd mirrors, auth, TLS

Config keys are the CLI flag names, verbatim: if k3s server --help shows --write-kubeconfig-mode, the declaration key is "write-kubeconfig-mode". The typed surface is generated from the pinned k3s release’s own flag definitions (v1.36.3+k3s1), so a regeneration is a reviewable diff against a known upstream.

RuleSeverityWhat it catches
K3S001errorliteral token / agent-token in source
K3S101errora literal secret reaching the build
K3S102errorliteral registry credentials in registries.yaml
K3S103erroran Agent with no server to join
K3S104warningkubeconfig written wider than 0644
K3S105warningregistry TLS verification disabled
K3S106warningtls-san missing for a declared bind/advertise address
K3S107warningdisable names a component the config also configures