Skip to content

ci(p5): run kyverno test in static-gates with a self-test (DRF-67) - #74

Merged
EurusDevSec merged 1 commit into
mainfrom
hoang/drf-67-kyverno-test-ci
Nov 24, 2026
Merged

EurusDevSec merged 1 commit into
mainfrom
hoang/drf-67-kyverno-test-ci

Conversation

@EurusDevSec

Copy link
Copy Markdown
Owner

Why

DRF-67 asks for kyverno test PASS in CI. Until now the 14 L1 cases in gitops/tests/kyverno/ only ran locally.

What

  • gitops/tests/kyverno_test.sh: runs kyverno test in reg.kyverno.io/kyverno/kyverno-cli v1.20.0 pinned by digest (same digest as docs/evidence/p5/P5-T1_PINS_20261122.md), --network none, repo mounted read-only.
    • Passes only on Test Summary: N tests passed and 0 tests failed with N >= 1 and exit 0.
    • Self-test: copies policies and cases, flips the first result: pass to fail, and requires that run to fail.
  • .github/workflows/static-gates.yml: new job kyverno on ubuntu-24.04 (the gitops job runs in a Python container without Docker).
  • SPEC-P5 P5-T2.2 A note and an appendix in docs/runbooks/P5_L2_KIND_KYVERNO.md with the one-line rerun.

Verification (local, Claude)

  • bash gitops/tests/kyverno_test.sh: 14 passed 0 failed; self-test 11 passed 3 failed → PASS kyverno test and self-test.
  • bash gitops/check.sh: PASS. bash gitops/tests/check_guards.sh: 77/77.
  • Not yet verified: the job on GitHub runners (this PR's CI).

No AWS, no credential, no secret referenced.

🤖 Generated with Claude Code

New job `kyverno` runs gitops/tests/kyverno_test.sh: the L1 cases in
gitops/tests/kyverno/ inside the pinned kyverno-cli v1.20.0 image (by
digest, no network, repo read-only). It passes only on "N passed and 0
failed" with N >= 1, then flips one expectation in a copy and requires
that run to fail. Local: 14/14, self-test 11 passed 3 failed.

SPEC-P5 P5-T2.2 note and the Kyverno runbook appendix updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings November 24, 2026 15:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@EurusDevSec
EurusDevSec merged commit d2f09cf into main Nov 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants