Skip to content

Argo CD's controller needs a narrowed ClusterRole: the containment policy alone does not hold it (#63 design step) #65

Open

Description

@ephico2real2

Part of #28

Why

What is wrong. PR #40 adds argocd.controllerServiceAccount, which binds the cmapi-deliverer-managed-only ValidatingAdmissionPolicy to Argo CD's application controller (Opus's second pass, F5, proven on a throwaway kube-apiserver 1.35.6 for the kinds the policy lists). With the upstream install's ClusterRole (* on *) the controller can delete the policy itself, so the policy is not a containment. An AppProject is enforced by Argo CD, not by the API server.

Where. The Argo CD design step under #63: a narrowed ClusterRole for the controller (namespaces, the kinds the renderer emits, nothing on admissionregistration.k8s.io), with the policy on top.

Acceptance criteria

  • oc auth can-i delete validatingadmissionpolicies --as=system:serviceaccount:cmapi-argocd:<controller> is no, shown by a new test in deploy/tests/, not written yet
  • The attack set runs against the real controller identity and each attack is refused, shown by cmapi/tests/service/test_second_pass.py::test_the_policy_can_contain_argo_cds_controller for the policy, and a new test on a kind cluster for the real identity, not written yet

Tasks

  • Write the narrowed ClusterRole for the controller.
  • Bind the policy to the controller identity.
  • Run the attack set on kind with Argo CD installed (Wave 2).

Definition of done

  • Mockup approved, or the work has no screen and no API shape
  • Draft pull request open
  • Build: tests fail before the change and pass after it
  • Review ruled
  • Merged with its proof
  • Released on the default branch

Class

INV. The narrowed ClusterRole is a new security control.

Source

How to prove. oc auth can-i delete validatingadmissionpolicies --as=system:serviceaccount:cmapi-argocd:<controller> is no; the attack set from tests/service/test_second_pass.py run against the real controller identity.

Activity

  1. added a commit that references this issue on Nov 5, 2026
  2. added
    Backlog
    class:INV
    status:open
    task
    on Nov 13, 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

    Backlogclass:INVstatus:opentask

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions