Skip to content

Pin pod-security policy behaviour before its policy format migration #5143

Description

@devantler

🤖 Generated by the Agentic Engineer

Description

Before rewriting the pod-security policy for #4996, pin what it decides today. Its only fixture checks three provider Deployments for the pod-level seccomp rule. Nothing pins the container hardening checks (privilege escalation, privileged, non-root, dropped capabilities), init or ephemeral containers, the container seccomp override, the namespace exemptions, or which workload kinds the policy judges. A rewrite could change any of those without a test noticing.

This is a test-first slice of the already-started migration. It leaves the policy and its enforcement settings unchanged.

Tasks

  • Pin allowed and rejected Pods for each of the three rules, including init and ephemeral containers and a container-level non-root requirement.
  • Cover the namespace exemptions with an otherwise-rejected Pod in an exempt namespace and the same Pod outside it.
  • Record which controller kinds the policy judges through its generated rules (Deployment, StatefulSet, DaemonSet, ReplicaSet, Job, CronJob).
  • Prove that weakening each rule makes its expected denial results fail, and pass the policy fixture and evaluation gates in CI.

Priority High; service class Risk reduction. This supplies the behaviour baseline required before the pod-security rewrite, with bounded test-only effort. Part of #4996.

Activity

  1. added theissue type on Oct 20, 2026
  2. moved this to 🏃🏻‍♂️ In Progress in 🌊 Project Boardon Oct 20, 2026
  3. added a commit that references this issue on Oct 20, 2026
  4. moved this from 🏃🏻‍♂️ In Progress to 👀 In Review in 🌊 Project Boardon Oct 20, 2026
  5. moved this from 👀 In Review to ✅ Done in 🌊 Project Boardon Oct 21, 2026
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

    Fields

    Priority

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions