Skip to content

feat(k8s): audit reads the Polaris config of an environment #7891

Done

Description

@dan-petty

Problem or Motivation

devops k8s audit runs Polaris with its default checks only. A cluster has checks that do not fit it, such as replica and spread rules on a cluster with single replicas. The audit has no way to read the judgments of an environment, so its report stays long and real findings are hard to see.

Proposed Design

  • devops k8s audit takes --k8s-dir, as devops k8s lint does. When the repository that holds the environment tree has .polaris.yaml, the audit gives it to Polaris with --config and --merge-config, so the file holds only the differences from the defaults.
  • The audit names the config file that it uses, so a relaxed audit is never silent.
  • With no environment tree, or no such file, the audit runs the Polaris defaults, which stay the strict choice for each other environment.
  • The sandbox binds the file read-only, and the record of the run holds its digest.

Existing Tool Considered

Polaris reads a config file itself (--config, --merge-config). The change only names the file. No tool is built here.

Acceptance Criteria

  • An audit of an environment with .polaris.yaml runs Polaris with that file and says so.
  • An audit with no file, and an audit with no environment tree, run Polaris with no --config.
  • The dry run names the same command.

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/low
    priority/p2-medium
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 30, 2026
  4. removed
    status/in-review
    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/lowpriority/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