You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Argo CD's controller needs a narrowed ClusterRole: the containment policy alone does not hold it (#63 design step) #65
BacklogNot started: the work waits in the backlogclass:INVInnovation: a new feature, design, idea or methodstatus:openNo fix yettaskA unit of work with no user story
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.
BacklogNot started: the work waits in the backlogclass:INVInnovation: a new feature, design, idea or methodstatus:openNo fix yettaskA unit of work with no user story
Activity
Second review pass on PR #40: Argo CD convergence, a bounded prune, v…