Connect an Argo CD instance
- graal Agentic Platform
- Version 0.30 (actuelle)
- Open source · Apache 2.0
- Source : graalsystems/tranibor-agents@983db67
For an organisation administrator. Procedure connector.mcp.gitops-argocd, version 1, reviewed 2026-11-26 against the vendor’s own pages. It applies to the connector type mcp/gitops-argocd.
It ships with the plugin gitops-argocd 0.1.0: its source. In the console, once the plugin is installed, it opens with How to set this up on the connector of the plugin’s server, and on Library › Plugins.
Addresses are written <api_url>, <public_url> and <org> here: the console shows the same text with your deployment’s own.
Before you start
Section intitulée « Before you start »- An Argo CD you administer, reachable over HTTPS from Tranibor’s server. The
gitopsandgitops-argocdplugins installed in your organisation (Catalogue, Plugins); its server runs in the platform, there is nothing to host. A plugin that brings a server needs a second person’s approval. - The AppProjects whose Applications Tranibor should supervise. The
projectsfield is an allow-list the server enforces on every call; the Argo CD role below is the second fence. - Tranibor never deletes or creates an Application, edits an Application’s source or destination, or changes a
project or RBAC. The one edit it makes is the auto-sync setting of an Application (
set_auto_sync), which needs theupdateright: that right is broader than the tool, since Argo CD cannot grant “update the sync policy only”. Leaveupdateout to keep Tranibor from pausing auto-sync; the other tools keep working. - Not proven: this procedure and the server were written from Argo CD’s documentation and tested against a seeded fake of its API. Nothing was run against a real Argo CD. The points the documentation did not let us confirm are listed at the end of this page.
At Argo CD
Section intitulée « At Argo CD »-
A local account with an API key. In the
argocd-cmConfigMap add the account, API key only, no login (user management doc):data:accounts.tranibor: apiKeyaccounts.tranibor.enabled: "true" -
Its rights, in
argocd-rbac-cm,policy.csv(RBAC doc). Read on the project, the right to sync it, and to pause its auto-sync. Replaceshopby your project. The syntax isp, <subject>, <resource>, <action>, <project>/<application>, allow:p, role:tranibor-read, applications, get, shop/*, allowp, role:tranibor-read, projects, get, shop, allowp, role:tranibor-sync, applications, sync, shop/*, allowp, role:tranibor-sync, applications, update, shop/*, allowp, role:tranibor-sync, applications, action/*, shop/*, denyg, tranibor, role:tranibor-readg, tranibor, role:tranibor-syncgeton applications covers every read the server makes: the application, its resource tree, managed resources, events, history and revision metadata, and the sync windows of the project.synccoverssync_applicationandrollback_application(both are operations the sync right starts). A refresh is agetwith a refresh parameter.updatecoversset_auto_sync, which patches the Application’s sync policy and one annotation (tranibor.io/paused-automated, where a pause keeps the settings it removed, so a resume restores them). Not confirmed: thatupdateis the right Argo CD checks for that patch (see the end of this page).- Do not add
delete,create,override,projectswrite rights, or*. To supervise only, leave outrole:tranibor-sync: the writes then fail with403and the reads work. - Check it:
argocd admin settings rbac can tranibor sync applications 'shop/my-app' --policy-file policy.csvanswersYes, and the same withdeleteanswersNo.
-
The token (
argocd account generate-token):Fenêtre de terminal argocd account generate-token --account tranibor --expires-in 90dShown once. Put it in your secret store. Rotation: generate a new token before the old one expires, set it in Tranibor (below), check the connector, then delete the old one with
argocd account delete-token --account tranibor <id>(the id is inargocd account get --account tranibor). A calendar reminder 7 days before expiry is cheaper than an incident.
Permissions
Section intitulée « Permissions »What the server calls, and the Argo CD right behind each:
| Tool | Argo CD right | Approval in Tranibor |
|---|---|---|
| get_provider | none (answers from the configuration) | none (read) |
| list_applications, get_application, list_resources, get_diff, list_events, get_sync_windows, get_history, get_revision_metadata, plan_sync | applications, get |
none (read) |
| refresh_application | applications, get (a refresh query parameter) |
none: a write that changes nothing in the cluster |
| sync_application | applications, sync |
required; idempotent through the platform’s action_key |
| rollback_application | applications, sync |
required; compensated by a sync back to the revision that was in force |
| set_auto_sync | applications, update |
required; compensated by set_auto_sync with the previous value |
plan_sync is a read: it compares the live state to git and lists what a sync would change. Argo CD’s
own dryRun option starts an operation that overwrites the Application’s operationState, which would
hide a lingering partial sync, so the server does not use it.
The server’s descriptor is the floor; an organisation can only make the approvals stricter.
In Tranibor
Section intitulée « In Tranibor »- Catalogue, Plugins,
gitops-argocd, Configure. base_url:https://argocd.example.com.token: the token of step 3, sealed, shown once.projects: the same project names as in the role.ca_cert, if Argo CD’s certificate is signed by a private CA.- Create a project from the template GitOps · drift under review. Put the people who
decide on a sync in the
platform-ownersgroup.
- Press Test on the connector:
get_providernames the instance and its projects,list_applicationsanswers with the allowed projects’ Applications. - Open a work item from the template naming one Application. The steward runs and posts its report.
- Approve the sync: the Application’s history gains an entry, and the steward’s verification says Synced and Healthy.
When it fails
Section intitulée « When it fails »401: the token is wrong, expired or its account is disabled (accounts.tranibor.enabled).403on a read: the role lacksapplications, geton that project; on a sync:applications, sync.- An Application is not listed: its project is not in
projects, or the role does not cover it. The server also refuses it by name, saying so. TLSerrors: Argo CD’s certificate is signed by a private CA; setca_cert.- A sync is refused as “another operation is running”: wait for it, or ask an Argo CD administrator to terminate it (this plugin has no tool for that).
- A sync is refused for a deny window: the project’s sync window denies manual syncs until it ends.
- A rollback, or a sync to a given revision, is refused: Argo CD refuses it while auto-sync is enabled; pause it with
set_auto_sync(approval), or revert in git. - A pause does not stick, or the Application flips back: another Application manages it (app-of-apps) and reverts the patch. The tool warns when it sees the tracking annotation or label.
Not confirmed in the documentation:
- The exact fields of a resource-tree node for every Kubernetes kind; the server reads only the common ones.
- That a managed resource’s
targetState,liveState,normalizedLiveStateandpredictedLiveStateare JSON texts (as the API’s swagger shows), and what they hold for a resource missing on one side. - Whether the application events endpoint answers without a resource filter on every release.
- That the
getright is enough for the project’s sync windows endpoint on every release. - That
applications, updateis the right the PATCH endpoint checks, and that it suffices (nooverride, nosync). - Whether Argo CD refuses a sync to a
revisionother than the target while auto-sync is on (the server refuses it first), and how a multi-source Application takes a singlerevision. - That a merge patch with
automated: nullremoves the setting and that an emptyautomated: {}re-enables it with the defaults, on every release. - Whether a parent Application’s self-heal reverts the patch (the server only warns).
All of these are handled defensively, and the live suite (
server/tests/live) checks them against a real instance when its environment variables are set.
| Field | What to put in it |
|---|---|
base_url |
https://argocd.example.com, the Argo CD API server, without a trailing slash |
ca_cert |
optional: the PEM of the CA that signs the server’s certificate, when it is not a public one |
projects |
the Argo CD projects whose Applications Tranibor may see and act on, for instance shop; they are the scopes of the gitops profile |
token |
the API key of the local account tranibor, typed once |
Network egress
Section intitulée « Network egress »Hosts the platform must be allowed to reach:
<argocd host>