Interactive engineering lab

Create, upsert and update: which permission each request needs

Create, upsert and update: which permission each request needs. Replay the Argo CD 3.6.3 fix on a synthetic repository record.

By Sandeep Belgavi · Published 2026-11-27

Synthetic fixtures computed locally. No model or production service is contacted.

Experiment workspace

Decision trace

    The question this experiment answers

    Which permission does a repository create, upsert or update need, and what does the stored record look like afterwards? The model follows the handler described in Argo CD advisory GHSA-mfgm-4p7x-3ccr: before v3.6.3 a create with upsert replaced an existing, different repository after checking only create; from v3.6.3 the upsert goes through the update handler.

    Change one assumption at a time

    Start from the vulnerable preset and change one control: the version, the grants, whether upsert is set, whether a repository is already stored, or the operation. The request box holds the fields the caller sends, one per line, such as proxy http://proxy.attacker.test:3128 or insecure true. Fields you leave out are cleared by a replace, which is the second half of the advisory's impact.

    Expected outcomes

    Argo CD 3.6.2 with only create and upsert set: allowed, Replaced, proxy and insecure changed, username and password cleared. The same request on 3.6.3: denied with PermissionDenied after checking create and then update, nothing changed. A caller with create and update on 3.6.3: allowed. A new repository URL: Created with only create in both versions. A different stored repository without upsert: InvalidArgument. These match the companion Python model.

    Read the table and the trace

    The table shows each repository field as stored before the request, as requested, and as stored afterwards, and whether it was set, changed, cleared or left unchanged. The trace shows the order of checks, which is the point of the advisory: in the vulnerable version the update check never happens on the upsert branch.

    Reset and export

    Reset inputs restores the selected preset and recomputes. Export JSON downloads the inputs, every field row, the decision and the trace, which you can use as a test fixture for your own create-or-replace routes.

    Limits

    A behavioural model written from the advisory and the v3.6 backport commit, not Argo CD code; no server is contacted and the repository is synthetic. Argo CD matches RBAC policies on project and repository URL patterns; the model reduces that to four grant choices. Write repositories follow the same path in the advisory and also need a passing connection test, which is not modelled. Upgrade to v3.6.3, v3.5.9 or v3.4.15 rather than relying on this model.

    Views are my own and do not represent any employer, past or present.