Skip to content

fix(trivy): remove obsolete bootstrap manifests and expose real grants #6019

Done

Description

@SDAChess

User Story

As a cluster operator running OpenShell on Kubernetes, I need deployment scans to identify resources OpenShell actually deploys and keep real namespace permissions visible.

Description

Remove the two obsolete K3s HelmChart bootstrap manifests under deploy/kube/. The built-in cluster bootstrap that consumed them was removed in #1221, and the repository has no remaining consumers. Removing these leftovers resolves their KSV-0037 findings without adding an exception.

Remove the existing KSV-0056 exception for namespace Roles. Service and NetworkPolicy creation are required but real capabilities, so keep them visible without changing RBAC. Verify that an unrelated kube-system Pod and a NetworkPolicy-creating Role remain findings, and print the observed findings when that regression fails.

Context

Follow-up to #6013 / #6014. This removes unused bootstrap assets and corrects scanner policy; it does not redesign Kubernetes RBAC, runtime identities, or credential architecture. The broader permission boundary remains in #6010.

Definition of Done

  • Delete both unused HelmChart manifests without introducing a KSV-0037 exception.
  • Keep real namespace networking privileges visible to scans.
  • Preserve detection of an unrelated kube-system Pod and NetworkPolicy-creating Role.
  • Print useful diagnostics when the scanner assertions fail.
  • Pass offline scanner regressions, shell checks and full-profile differential scans.

Activity

  1. changed the title [-]fix(trivy): distinguish HelmChart configuration from workloads[/-] [+]fix(trivy): remove obsolete bootstrap manifests and expose real grants[/+] on Nov 27, 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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions