Skip to content

feat(k8s): replace Popeye with Polaris in the cluster audit #7872

Description

@dan-petty

Problem or Motivation

Popeye is not actively maintained. Checked on 2026-11-30 in derailed/popeye:

  • The newest release is v0.22.1, of 2025-01-28.
  • The newest commit on the default branch is of 2025-04-14.

devops k8s audit, the agent tool scan_popeye and the scanner registry use it.

Proposed Solution

Replace Popeye with Polaris (FairwindsOps/polaris, Apache-2.0, release v10.2.7 of 2026-11-25) in one pull request, with no compatibility alias.

  • A PolarisScanner adapter replaces PopeyeScanner. The command is polaris audit --format json --only-show-failed-tests, with --context and --namespace when given. A check of severity danger is a HIGH finding. A check of severity warning is a MEDIUM finding.
  • The sandbox profile kube-api stays. Only Polaris can select it.
  • The agent tool scan_popeye becomes scan_polaris.
  • Each live reference to Popeye in source, tests, specifications and documents goes. The changelog, archived OpenSpec changes and recorded evaluation inputs keep their text.
  • The devtools image ships Polaris in place of Popeye (an issue of dan-petty/devtools).

Premise Evidence

Read-only runs on one cluster with 5 nodes and about 220 pods, on 2026-11-30:

Tool Time Result
Polaris 10.2.7 6 s direct, 8.5 s in the kube-api sandbox Workload, network policy and RBAC checks
Trivy 0.76.2 k8s 50 s Security checks only, no probe checks
kor 0.7.1 253 s Unused resources only

Polaris exits 1 with no report when a list request is forbidden, the context does not exist, the namespace does not exist or the API server does not answer. So the audit can fail closed.

Known Difference

Polaris audits configuration. It does not report these Popeye findings: a pod in a failed phase, a service with no endpoint, a selector that matches nothing, a CronJob that did not run, and usage above a resource request.

Existing Tool Considered

Polaris, Trivy, kor and Kubescape. Kubescape is a security posture scanner that downloads its control frameworks, and the sandbox profile reaches only the Kubernetes API server. No tool is built here.

Acceptance Criteria

  • devops k8s audit runs Polaris in the sandbox and shows its failed checks.
  • devops k8s audit exits 1 and reports no pass when Polaris did not run.
  • A search of src/, tests/, docs/ and openspec/specs/ finds no live use of Popeye.

Activity

  1. added
    type/feature
    on Nov 30, 2026
  2. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor
  3. added
    scope/k8s
    source/agent
    status/new
    value/medium
    effort/medium
    priority/p2-medium
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 30, 2026
  4. removed
    status/in-progress
    owner/agent
    on Nov 30, 2026
  5. devops-cli-service commented on Nov 30, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-30 20:54 UTC

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

    effort/mediumpriority/p2-mediumscope/k8ssource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions