Skip to content

Track C-0313 registry defaults and configured Rego/CEL parity #6265

Backlog

Description

@matthyx

Kubescape #6228 adds C-0313 to the Rego/CEL fixture parity harness. On Linux amd64 with Go 1.27.4, at 97924848444aed2b9c2819233559d72a36c51721, run from core:

go test ./pkg/opaprocessor/ -run '^TestRegoCELParity$/^C-0313$' -count=1 -v

The test passes with 55 pinned Rego-pass/CEL-fail disagreements in 61 cases. One example is the sandbox-containers-docker-short fixture under core/pkg/opaprocessor/testdata/regocelparity/rules/agent-runtime-image-registries/test/. The shipped Rego allow-list is empty and disables C-0313. The CEL bundle ships [gcr.io] and enforces it. Setting settings.postureControlInputs.imageRepositoryAllowList to ["gcr.io"] in the vendored Rego settings and rerunning the same command produces actual: []string(nil) at the pinned-disagreement assertion.

  • Establish the intended default for C-0313 in scans and admission, then align the libraries or document the intentional difference. The related upstream discussion in Track image-policy and CronJob label parity gaps for C-0001 and C-0075–C-0078 cel-admission-library#219 covers other image controls.
  • Add automated coverage with matching nonempty settings in both engines, including Docker Hub short names and images from an unlisted registry. Assert the intended verdicts for the representative cases so equal incorrect results fail.

Related migration tracking is #2002. WorkerPool API version support is addressed separately by kubescape/regolibrary#1015 and kubescape/cel-admission-library#217.

Activity

  1. Sashang-debug commented on Dec 5, 2026

    @Sashang-debug
    Contributor

    working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions