Skip to content
Install the CLI

Concept Policy, networking, and operations

Scorecard levels

Catching a misconfigured manifest on your laptop in seconds is much cheaper than debugging a failed rollout in production. When Kix evaluates a cluster, it runs two kinds of checks: always-on validation checks that fail the build when cross-resource references or selectors are broken, and policy scorecards that check security, reliability, governance, and architecture rules you can phase in at your own pace.

Single-file YAML linters inspect only one document at a time. Checking whether a container drops Linux capabilities or sets memory requests requires only one Deployment, whereas checking whether a namespace enforces a default-deny network policy requires seeing every resource in that namespace together.

To give each rule the context it needs, Kix runs scorecard rules at four scopes:

  • Manifest: One rendered Kubernetes object, such as container security contexts and probe settings.
  • Package: One active package instance and all of its resources, such as team ownership metadata or third-party annotation dependencies.
  • Namespace: Every active resource inside one Kubernetes namespace.
  • Cluster: Every active instance and resource across the entire build.

All four scopes inspect the finished manifests after Kix generates availability replicas, disruption budgets, and network policies, and after dependency resolution excludes unused optional instances. Rules grade what will deploy to Kubernetes without reporting findings on inactive services.

Adopting strict standards without blocking day one

Section titled “Adopting strict standards without blocking day one”

Turning on all built-in security, reliability, governance, and architecture rules on an existing cluster at once usually surfaces a backlog of findings. If every error-level rule blocked deployments immediately, teams would disable the policy check the first time they needed to ship an urgent fix.

Kix avoids this by separating each rule’s severity from the cluster’s enforcement cap. Each rule declares whether a finding is informational, a warning, or an error, and you can override severities or disable rules by rule name, package owner, or namespace. Separately, the cluster sets a maximum enforced severity that defaults to warning.

Keeping the cap at warning on a new or migrating cluster runs every error-level rule and shows findings in local checks and CI reports so you or your coding agent can fix them incrementally without blocking deploys. When the cluster is ready, raising the enforcement cap to error turns those rules into a strict CI gate with a one-line change.

Cross-resource validation at cluster evaluation time

Section titled “Cross-resource validation at cluster evaluation time”

Organizational standards such as memory limits or team owner fields can be phased in gradually, whereas broken Kubernetes references fail at runtime regardless of policy settings. If a Deployment mounts a missing ConfigMap, reads an undeclared Secret key, or sits behind a Service whose pod selector matches zero pods, deploying that manifest will fail.

For that reason, Kix runs separate always-on cross-resource validation checks on every build that severity caps and scorecard overrides cannot disable. Across the compiled cluster, Kix checks that referenced ServiceAccounts, ConfigMaps, Secrets, storage classes, priority classes, roles, autoscaler targets, and custom resource definitions exist. It also checks that every Secret or ConfigMap key read by a container is declared, and that Service, network policy, and disruption budget selectors match workload pods rather than zero pods or a Job.

Keeping structural validation separate from policy scorecards means you can relax policy enforcement on a development cluster and still catch broken references and selector mismatches before deploying.

Next, read Helm integration to see how Kix renders third-party Helm charts at build time and connects to existing cluster services. For the built-in rule catalog, severity overrides, and validation checks, see Scorecard and rules and Validation checks.